[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190902.120300.174900457187536042.davem@davemloft.net>
Date: Mon, 02 Sep 2019 12:03:00 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: benwei@...com
Cc: sam@...dozajonas.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, openbmc@...ts.ozlabs.org
Subject: Re: [PATCH net-next] net/ncsi: support unaligned payload size in
NC-SI cmd handler
From: Ben Wei <benwei@...com>
Date: Mon, 2 Sep 2019 02:46:52 +0000
> 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.
>
> Signed-off-by: Ben Wei <benwei@...com>
If you have to align and add padding, I do not see where you are
clearing out that padding memory to make sure it is initialized.
You do comparisons with 'payload' but make adjustments to 'len'.
The logic is very confusing.
Powered by blists - more mailing lists