]> git.baikalelectronics.ru Git - kernel.git/commit
net/ncsi : Add payload to be 32-bit aligned to fix dropped packets
authorKumar Thangavel <kumarthangavel.hcl@gmail.com>
Mon, 22 Nov 2021 16:38:18 +0000 (22:08 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Nov 2021 11:53:17 +0000 (11:53 +0000)
commit9379ac21e9312f916488bd10cdf9f002fa62c5f2
tree55ab3c0c818b4adf3a125ff65341803b797d4005
parent7993004bba08e7650fb6ed06113b6f29fd22ae50
net/ncsi : Add payload to be 32-bit aligned to fix dropped packets

Update NC-SI command handler (both standard and OEM) to take into
account of payload paddings in allocating skb (in case of payload
size is not 32-bit aligned).

The checksum field follows payload field, without taking payload
padding into account can cause checksum being truncated, leading to
dropped packets.

Fixes: 6958290cb1f1 ("net/ncsi: Add NCSI OEM command support")
Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com>
Acked-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ncsi/ncsi-cmd.c