[PATCH 1/6] ip_frag: remove use of unaligned variable
Stephen Hemminger
stephen at networkplumber.org
Thu Oct 17 18:26:22 CEST 2024
On Thu, 17 Oct 2024 15:22:08 +0100
Bruce Richardson <bruce.richardson at intel.com> 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 constant-sized memcpy, allowing the compiler to choose optimal
> instructions to do the assignment.
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
More information about the dev
mailing list