Skip to content
Commit ac132852 authored by Kumar Thangavel's avatar Kumar Thangavel Committed by David S. Miller
Browse files

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: fb4ee675

 ("net/ncsi: Add NCSI OEM command support")
Signed-off-by: default avatarKumar Thangavel <thangavel.k@hcl.com>
Acked-by: default avatarSamuel Mendoza-Jonas <sam@mendozajonas.com>
Reviewed-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 619ca0d0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment