On Fri, Apr 26, 2024 at 11:05:02AM +0200, Mattias Rönnblom wrote:
> Cache align Rx and Tx queue struct to avoid false sharing.
>
> The RX struct happens to be 64 bytes on x86_64 already, so cache
> alignment has no effect there, but it does on 32-bit ISAs.
>
> The TX struct is 56 bytes on x86_64.
>
> Both structs keep counters, and in the RX case they are updated even
> for empty polls.
>
> v3: Move __rte_cache_aligned directive to a MSVC-compatible location.
>
> Fixes: 364e08f2bbc0 ("af_packet: add PMD for AF_PACKET-based virtual devices")
> Cc: [email protected]
>
> Signed-off-by: Mattias Rönnblom <[email protected]>
> ---
Acked-by: Tyler Retzlaff <[email protected]>- Re: [PATCH] net/af_packet: cac... Ferruh Yigit
- Re: [PATCH] net/af_packet: cache align Rx/Tx structs Ferruh Yigit
- Re: [PATCH] net/af_packet: cache align Rx/Tx struct... Mattias Rönnblom
- Re: [PATCH] net/af_packet: cache align Rx/Tx st... Ferruh Yigit
- Re: [PATCH] net/af_packet: cache align Rx/T... Mattias Rönnblom
- [PATCH] net/af_packet: cache align Rx/Tx structs Mattias Rönnblom
- Re: [PATCH] net/af_packet: cache align Rx/Tx struct... Ferruh Yigit
- Re: [PATCH] net/af_packet: cache align Rx/Tx st... Mattias Rönnblom
- [PATCH v3] net/af_packet: cache align Rx/Tx structs Mattias Rönnblom
- RE: [PATCH v3] net/af_packet: cache align Rx/Tx... Morten Brørup
- Re: [PATCH v3] net/af_packet: cache align Rx/Tx... Tyler Retzlaff
- Re: [PATCH v3] net/af_packet: cache align R... Ferruh Yigit
- Re: [PATCH] net/af_packet: cache align Rx/Tx structs Patrick Robb

