]> 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)
commit3b52577469c6e76fb3fcbe199593b61d14f91a47
tree55ab3c0c818b4adf3a125ff65341803b797d4005
parentcba3db94881cd22423316e26219b28f303477092
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: ee912e175a52 ("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