Re: [PATCH v5 4/4] net/af_packet: add software checksum offload support

Scott Mitchell
2026-02-03T08:20:57Z

gcc warnings are resolved when built with Depends-on patch
(https://patches.dpdk.org/project/dpdk/patch/20260202044841.90945-2-scott.k.mitch1@gmail.com/).
Did I indicate the dependency correctly (reference
https://doc.dpdk.org/guides/contributing/patches.html#patch-dependencies),
and is CI expected to apply dependent patches before the current patch
series?

../lib/net/rte_net.c:672:28: error: taking address of packed member of
‘struct rte_udp_hdr’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
672 | l4_cksum = &rte_pktmbuf_mtod_offset(mbuf,
struct rte_udp_hdr *,
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
673 | l4_offset)->dgram_cksum;
| ~~~~~~~~~~~~~~~~~~~~~~~
../lib/net/rte_net.c:675:28: error: taking address of packed member of
‘struct rte_tcp_hdr’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
675 | l4_cksum = &rte_pktmbuf_mtod_offset(mbuf,
struct rte_tcp_hdr *, l4_offset)->cksum;
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~