patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Luca Boccassi <luca.boccassi@gmail.com>
To: longli@linuxonhyperv.com
Cc: stable@dpdk.org
Subject: Re: [Patch 22.11] net/mana: fix multi-process tracking
Date: Thu, 13 Mar 2025 00:06:05 +0000	[thread overview]
Message-ID: <CAMw=ZnSAK_nu2K51wKo-Cpxvxexax6AueHQqSv1a83pU_JAqyQ@mail.gmail.com> (raw)
In-Reply-To: <1741818796-591-1-git-send-email-longli@linuxonhyperv.com>

On Wed, 12 Mar 2025 at 22:33, <longli@linuxonhyperv.com> wrote:
>
> From: Long Li <longli@microsoft.com>
>
> [ upstream commit 57aa3ec91ecf13ab2f11e4dc0dc74c50a2afa0cc ]
>
> The driver uses mana_shared_data for tracking usage count for primary
> process. This is not correct as the mana_shared_data is allocated
> by the primary and is meant to track usage of secondary process by the
> primary process. And it creates a race condition when the device is
> removed because the counter is no longer available if this shared
> memory is freed.
>
> Move the usage count tracking to mana_local_data and fix the race
> condition in mana_pci_remove().
>
> Fixes: 517ed6e2d590 ("net/mana: add basic driver with build environment")
> Cc: stable@dpdk.org
>
> Signed-off-by: Long Li <longli@microsoft.com>
> ---
>  drivers/net/mana/mana.c | 100 ++++++++++++++++++++++------------------
>  drivers/net/mana/mana.h |   6 +--
>  drivers/net/mana/mp.c   |   2 +-
>  3 files changed, 58 insertions(+), 50 deletions(-)

Thanks, applied

      reply	other threads:[~2025-03-13  0:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-12 22:33 longli
2025-03-13  0:06 ` Luca Boccassi [this message]

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='CAMw=ZnSAK_nu2K51wKo-Cpxvxexax6AueHQqSv1a83pU_JAqyQ@mail.gmail.com' \
    --to=luca.boccassi@gmail.com \
    --cc=longli@linuxonhyperv.com \
    --cc=stable@dpdk.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).