[PATCH 03/15] net: pack structures when building with MSVC

Stephen Hemminger stephen at networkplumber.org
Mon Oct 7 03:14:41 CEST 2024


On Wed, 20 Mar 2024 14:05:59 -0700
Tyler Retzlaff <roretzla at linux.microsoft.com> wrote:

> Add __rte_msvc_pushpack(1) to all __rte_packed structs to cause packing
> when building with MSVC.
> 
> Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
> ---
>  lib/net/rte_arp.h      | 2 ++
>  lib/net/rte_dtls.h     | 1 +
>  lib/net/rte_esp.h      | 2 ++
>  lib/net/rte_ether.h    | 1 +
>  lib/net/rte_geneve.h   | 1 +
>  lib/net/rte_gre.h      | 4 ++++
>  lib/net/rte_gtp.h      | 5 +++++
>  lib/net/rte_ib.h       | 1 +
>  lib/net/rte_icmp.h     | 3 +++
>  lib/net/rte_ip.h       | 4 ++++
>  lib/net/rte_l2tpv2.h   | 4 ++++
>  lib/net/rte_macsec.h   | 2 ++
>  lib/net/rte_mpls.h     | 1 +
>  lib/net/rte_pdcp_hdr.h | 4 ++++
>  lib/net/rte_ppp.h      | 1 +
>  lib/net/rte_sctp.h     | 1 +
>  lib/net/rte_tcp.h      | 1 +
>  lib/net/rte_tls.h      | 1 +
>  lib/net/rte_udp.h      | 1 +
>  lib/net/rte_vxlan.h    | 2 ++

This no longer applies, need to rebase this series.
Address the comments from Bruce in previous patch as well.


More information about the dev mailing list