RE: [PATCH net-next] net/ncsi: support unaligned payload size in NC-SI cmd handler

2019-09-12 Thread Ben Wei
Hi David, > That is right. It is necessary to adjust the len for padding on both places. > > Thanks, > Justin > > > > > > 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

RE: [PATCH net-next] net/ncsi: support unaligned payload size in NC-SI cmd handler

2019-09-03 Thread Justin.Lee1
That is right. It is necessary to adjust the len for padding on both places. Thanks, Justin > > > 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 checks

RE: [PATCH net-next] net/ncsi: support unaligned payload size in NC-SI cmd handler

2019-09-02 Thread Ben Wei
> > 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 tr

Re: [PATCH net-next] net/ncsi: support unaligned payload size in NC-SI cmd handler

2019-09-02 Thread David Miller
From: Ben Wei Date: Mon, 2 Sep 2019 02:46:52 + > 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