Re: [PATCH v2 2/2] net: have checksum routines accept unaligned data

2022-07-11 Thread Mattias Rönnblom
On 2022-07-11 11:53, Olivier Matz wrote: > Hi, > > On Fri, Jul 08, 2022 at 02:56:08PM +0200, Mattias Rönnblom wrote: >> __rte_raw_cksum() (used by rte_raw_cksum() among others) accessed its >> data through an uint16_t pointer, which allowed the compiler to assume >> the data was 16-bit aligned. Th

Re: [PATCH v2 2/2] net: have checksum routines accept unaligned data

2022-07-11 Thread Olivier Matz
Hi, On Fri, Jul 08, 2022 at 02:56:08PM +0200, Mattias Rönnblom wrote: > __rte_raw_cksum() (used by rte_raw_cksum() among others) accessed its > data through an uint16_t pointer, which allowed the compiler to assume > the data was 16-bit aligned. This in turn would, with certain > architectures and

Re: [PATCH v2 2/2] net: have checksum routines accept unaligned data

2022-07-08 Thread Ferruh Yigit
On 7/8/2022 1:56 PM, Mattias Rönnblom wrote: __rte_raw_cksum() (used by rte_raw_cksum() among others) accessed its data through an uint16_t pointer, which allowed the compiler to assume the data was 16-bit aligned. This in turn would, with certain architectures and compiler flag combinations, res

[PATCH v2 2/2] net: have checksum routines accept unaligned data

2022-07-08 Thread Mattias Rönnblom
__rte_raw_cksum() (used by rte_raw_cksum() among others) accessed its data through an uint16_t pointer, which allowed the compiler to assume the data was 16-bit aligned. This in turn would, with certain architectures and compiler flag combinations, result in code with SIMD load or store instruction