Re: [PATCH v8] hash: add XOR32 hash function

2023-07-10 Thread Bili Dong
Thanks for the suggestion! It's fixed in the latest version. On Thu, Jul 6, 2023 at 1:08 PM Stephen Hemminger wrote: > On Thu, 29 Jun 2023 17:33:00 + > Bili Dong wrote: > > > + > > +/** > > + * The following bytes access helper functions are expected to work > > + * without any particular i

Re: [PATCH v8] hash: add XOR32 hash function

2023-07-06 Thread Stephen Hemminger
On Thu, 29 Jun 2023 17:33:00 + Bili Dong wrote: > + > +/** > + * The following bytes access helper functions are expected to work > + * without any particular input buffer alignment requirements. > + */ > + Probably need to avoid users getting tempted to use these helpers ad exported API's?

[PATCH v8] hash: add XOR32 hash function

2023-06-29 Thread Bili Dong
An XOR32 hash is needed in the Software Switch (SWX) Pipeline for its use case in P4. We implement it in this patch so it could be easily registered in the pipeline later. Signed-off-by: Bili Dong --- v8: * Removed unnecessary helper function. (re Vladimir Medvedkin ) v7: * Simplified byte orde