Re: [dpdk-dev] [PATCH] net: fix checksum on big endian CPUs

2020-07-10 Thread Olivier Matz
On Fri, Jul 10, 2020 at 02:20:08PM +0200, Morten Brørup wrote: > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Hongzhi Guo > > Sent: Friday, July 10, 2020 1:43 PM > > > > With current code, the checksum of odd-length buffers is wrong on > > big endian CPUs: the last byte is not properly s

Re: [dpdk-dev] [PATCH] net: fix checksum on big endian CPUs

2020-07-10 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Hongzhi Guo > Sent: Friday, July 10, 2020 1:43 PM > > With current code, the checksum of odd-length buffers is wrong on > big endian CPUs: the last byte is not properly summed to the > accumulator. > > Fix this by left-shifting the remaining