All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Wei Hu <weh@microsoft.com>
Cc: "longli@linuxonhyperv.com" <longli@linuxonhyperv.com>,
	"dev@dpdk.org" <dev@dpdk.org>,
	"stable@dpdk.org" <stable@dpdk.org>,
	Long Li <longli@microsoft.com>
Subject: Re: [EXTERNAL] [Patch v2] net/mana: use mana_local_data for tracking usage data for primary process
Date: Wed, 19 Feb 2025 10:35:55 -0800	[thread overview]
Message-ID: <20250219103555.7e44aa91@hermes.local> (raw)
In-Reply-To: <OSQP153MB1307B222A37066A4D6746147BBC52@OSQP153MB1307.APCP153.PROD.OUTLOOK.COM>

On Wed, 19 Feb 2025 12:47:11 +0000
Wei Hu <weh@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.
	

  reply	other threads:[~2025-02-19 18:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-18 20:59 [Patch v2] net/mana: use mana_local_data for tracking usage data for primary process longli
2025-02-19 12:47 ` [EXTERNAL] " Wei Hu
2025-02-19 18:35   ` Stephen Hemminger [this message]
2025-02-20 23:32     ` Long Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250219103555.7e44aa91@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=longli@linuxonhyperv.com \
    --cc=longli@microsoft.com \
    --cc=stable@dpdk.org \
    --cc=weh@microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.