[dpdk-stable] [PATCH 19.11] net/netvsc: manage VF port under read/write lock
Luca Boccassi
bluca at debian.org
Thu Dec 17 10:28:10 CET 2020
On Tue, 2020-12-15 at 19:04 -0800, Long Li wrote:
> From: Stephen Hemminger <stephen at networkplumber.org>
>
> [ upstream commit 81938ebb542f1ce19254f58705583a7f48a95216 ]
>
> With multiple channels, the primary channel may receive notification
> that VF has been added or removed while secondary channel is in
> process of doing receive or transmit. Resolve this race by converting
> existing vf_lock to a reader/writer lock.
>
> Users of lock (tx/rx/stats) acquire for read, and actions like
> add/remove acquire it for write.
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> Signed-off-by: Long Li <longli at microsoft.com>
> ---
> drivers/net/netvsc/hn_ethdev.c | 2 +-
> drivers/net/netvsc/hn_rxtx.c | 8 ++-
> drivers/net/netvsc/hn_var.h | 10 ++--
> drivers/net/netvsc/hn_vf.c | 99 ++++++++++++++++------------------
> 4 files changed, 59 insertions(+), 60 deletions(-)
Thank you, applied.
--
Kind regards,
Luca Boccassi
More information about the stable
mailing list