From: Kevin Traynor <ktraynor@redhat.com>
To: Chengwen Feng <fengchengwen@huawei.com>, stable@dpdk.org
Cc: lihuisong@huawei.com, haijie1@huawei.com
Subject: Re: [PATCH 20.11] net/hns3: fix traffic management thread safety
Date: Thu, 23 Nov 2023 10:49:16 +0000 [thread overview]
Message-ID: <56aa5dde-140a-b8d7-e49a-3693e22983a5@redhat.com> (raw)
In-Reply-To: <20231116123455.36816-1-fengchengwen@huawei.com>
On 16/11/2023 12:34, Chengwen Feng wrote:
> [ upstream commit 69901040975bff8a38edfc47aee727cadc87d356 ]
>
> The driver-related TM (traffic management) info is implemented through
> the linked list. The following threads are involved in the read and
> write of the TM info:
>
> 1. main thread: invokes the rte_tm_xxx() API family to modify or read.
> 2. interrupt thread: will read TM info in reset recover process.
>
> Currently, thread safety protection of TM info is implemented only in
> the following operations:
> 1. some of the rte_tm_xxx() API's implementation.
> 2. reset recover process.
>
> Thread safety risks may exist in other scenarios, so fix by make sure
> all the rte_tm_xxx() API's implementations protected by hw.lock.
>
> Fixes: c09c7847d892 ("net/hns3: support traffic management")
>
> Signed-off-by: Chengwen Feng<fengchengwen@huawei.com>
> Signed-off-by: Dongdong Liu<liudongdong3@huawei.com>
> ---
> drivers/net/hns3/hns3_tm.c | 173 ++++++++++++++++++++++++++++++++-----
> 1 file changed, 150 insertions(+), 23 deletions(-)
Applied to 21.11 branch. Thanks for backporting.
prev parent reply other threads:[~2023-11-23 10:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-16 12:34 Chengwen Feng
2023-11-16 15:27 ` Luca Boccassi
2023-11-17 1:02 ` fengchengwen
2023-11-23 10:49 ` Kevin Traynor [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=56aa5dde-140a-b8d7-e49a-3693e22983a5@redhat.com \
--to=ktraynor@redhat.com \
--cc=fengchengwen@huawei.com \
--cc=haijie1@huawei.com \
--cc=lihuisong@huawei.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).