Re: [PATCH v6 0/4] af_packet correctness, performance, cksum

Scott Mitchell
2026-02-06T04:45:36Z

> Why are the header structures marked packed, that is bogus, BSD and Linux don't do it.
> Windows probably does but Windows code seems to love packed even when it is not necessary.

Agreed. I'm not sure why rte_udp_hdr and rte_tcp_hdr are marked as packed.

> This is failing compile on FreeBsd

I forgot to carry the "Depends-on: patch-160679 ("eal: add
__rte_may_alias and __rte_aligned to unaligned typedefs")"
(https://patches.dpdk.org/project/dpdk/patch/20260202044841.90945-2-scott.k.mitch1@gmail.com/)
forward from previous patches. I also see this failure locally with
GCC without the Depends-on patch applied. I expect it will resolve on
FreeBsd once this patch is applied and I can rebase this patch.