Re: [PATCH v8 27/29] lib/net: replace packed attributes

2025-01-08 Thread Andre Muezerie
On Wed, Jan 08, 2025 at 01:01:23PM +0100, David Marchand wrote: > On Tue, Dec 31, 2024 at 7:40 PM Andre Muezerie > wrote: > > diff --git a/lib/net/rte_ip6.h b/lib/net/rte_ip6.h > > index 992ab5ee1f..92558a124a 100644 > > --- a/lib/net/rte_ip6.h > > +++ b/lib/net/rte_ip6.h > > @@ -358,7 +358,7 @@ e

Re: [PATCH v8 27/29] lib/net: replace packed attributes

2025-01-08 Thread David Marchand
On Tue, Dec 31, 2024 at 7:40 PM Andre Muezerie wrote: > diff --git a/lib/net/rte_ip6.h b/lib/net/rte_ip6.h > index 992ab5ee1f..92558a124a 100644 > --- a/lib/net/rte_ip6.h > +++ b/lib/net/rte_ip6.h > @@ -358,7 +358,7 @@ enum rte_ipv6_mc_scope { > RTE_IPV6_MC_SCOPE_ORGLOCAL = 0x08, >

[PATCH v8 27/29] lib/net: replace packed attributes

2024-12-31 Thread Andre Muezerie
MSVC struct packing is not compatible with GCC. Replace macro __rte_packed with __rte_packed_begin to push existing pack value and set packing to 1-byte and macro __rte_packed_end to restore the pack value prior to the push. Macro __rte_packed_end is deliberately utilized to trigger a MSVC compile