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

2022-07-08 Thread Morten Brørup
> From: Bruce Richardson [mailto:bruce.richard...@intel.com] > Sent: Friday, 8 July 2022 16.10 > > On Fri, Jul 08, 2022 at 01:52:12PM +, Mattias Rönnblom wrote: > > On 2022-07-08 15:02, Morten Brørup wrote: > > >> From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] > > >> Sent: Frida

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

2022-07-08 Thread Bruce Richardson
On Fri, Jul 08, 2022 at 01:52:12PM +, Mattias Rönnblom wrote: > On 2022-07-08 15:02, Morten Brørup wrote: > >> From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] > >> Sent: Friday, 8 July 2022 14.44 > >> > >> On 2022-07-07 23:44, Morten Brørup wrote: > From: Mattias Rönnblom [ma

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

2022-07-08 Thread Mattias Rönnblom
On 2022-07-08 15:02, Morten Brørup wrote: >> From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] >> Sent: Friday, 8 July 2022 14.44 >> >> On 2022-07-07 23:44, Morten Brørup wrote: From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] Sent: Thursday, 7 July 2022 20.35 F

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

2022-07-08 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] > Sent: Friday, 8 July 2022 14.44 > > On 2022-07-07 23:44, Morten Brørup wrote: > >> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > >> Sent: Thursday, 7 July 2022 20.35 > >> > >> From: Mattias Rönnblom > >> > >> __rte_raw_ck

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

2022-07-08 Thread Mattias Rönnblom
On 2022-07-07 23:44, Morten Brørup wrote: >> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] >> Sent: Thursday, 7 July 2022 20.35 >> >> From: Mattias Rönnblom >> >> __rte_raw_cksum() (used by rte_raw_cksum() among others) accessed its >> data through an uint16_t pointer, which allowed the co

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

2022-07-07 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > Sent: Thursday, 7 July 2022 20.35 > > From: 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.