[EXTERNAL] [Patch v2] net/mana: use mana_local_data for tracking usage data for primary process
Stephen Hemminger
stephen at networkplumber.org
Wed Feb 19 19:35:55 CET 2025
On Wed, 19 Feb 2025 12:47:11 +0000
Wei Hu <weh at microsoft.com> wrote:
> >
> > -/* Shared data between primary/secondary processes */ struct
> > mana_shared_data {
> > - rte_spinlock_t lock;
> > - int init_done;
> > - unsigned int primary_cnt;
> > - unsigned int secondary_cnt;
> > + rte_atomic32_t secondary_cnt;
> > };
The DPDK has converted to using the C11 atomic's so this should use
that (i.e RTE_ATOMIC() etc) instead of the older atomic primitives.
More information about the stable
mailing list