RE: [PATCH 1/6] ip_frag: remove use of unaligned variable

2024-10-17 Thread Konstantin Ananyev
> If compiling with -Waddress-of-packed-member, we get a warning about the > use of the unaligned uint64_t value which is used to copy 8 bytes from > ip_hdr to the key. Replace this unaligned assignment with an equivalent > 8-byte constant-sized memcpy, allowing the compiler to choose optimal >

Re: [PATCH 1/6] ip_frag: remove use of unaligned variable

2024-10-17 Thread Stephen Hemminger
On Thu, 17 Oct 2024 15:22:08 +0100 Bruce Richardson wrote: > If compiling with -Waddress-of-packed-member, we get a warning about the > use of the unaligned uint64_t value which is used to copy 8 bytes from > ip_hdr to the key. Replace this unaligned assignment with an equivalent > 8-byte constan

[PATCH 1/6] ip_frag: remove use of unaligned variable

2024-10-17 Thread Bruce Richardson
If compiling with -Waddress-of-packed-member, we get a warning about the use of the unaligned uint64_t value which is used to copy 8 bytes from ip_hdr to the key. Replace this unaligned assignment with an equivalent 8-byte constant-sized memcpy, allowing the compiler to choose optimal instructions