From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 02B04A09F0 for ; Thu, 17 Dec 2020 10:28:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EC080C9F6; Thu, 17 Dec 2020 10:28:13 +0100 (CET) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by dpdk.org (Postfix) with ESMTP id A9666C9F6 for ; Thu, 17 Dec 2020 10:28:12 +0100 (CET) Received: by mail-wr1-f51.google.com with SMTP id a12so25807699wrv.8 for ; Thu, 17 Dec 2020 01:28:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=1gbGVOPBTS4wtcYvn9UDWO1//IiqfSqUc3iRSj6bJUY=; b=o/BQY4bCC2rOgMK402UN5yVDimuxFMI9/Z3fSpbxx1/Hn4ru8ianCYnrA5Yb4TxTxL e4lbDj0Oty9SUWwVFVrfOZnttKzQCXHXnPtRr/7zRpG0AMI1WAF3QndmtrScyRzDlCLm KdouIVyjsoxwcPzRENewNlwAHkifBDCvP0ClHQAPuCtflXSB5EE7iqptIA6eNIEfNnau frhF9evidwK4tEjRtbw8pv0ySh1dqAfS6MPoeuCDuPWVWQ5hT/QKukBTeX1OZqKJ2tWS q5BsTrsY86ZcJNVol14oJKLR+Z+QjuTVztvyn8V3p+SqmdlMk+3W5jNZZ9vpVfQwG7jY lpVA== X-Gm-Message-State: AOAM533BJDcU0pLpBAoSf9fKE6DFpZ2XP+3+pHLNILK2uKtO3KaaedgQ oAzQQvWXNQGW27qgv9g0YBqtTCtO6AYVzA== X-Google-Smtp-Source: ABdhPJxnaKMEPFyxq0NU8Y5Wm9BbSzcy6Na6ji+kmYa+XxYVJWxRxmqGThR9z/pURbZyWgosT6gF6w== X-Received: by 2002:adf:8145:: with SMTP id 63mr10912913wrm.8.1608197291514; Thu, 17 Dec 2020 01:28:11 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id k10sm7115297wrq.38.2020.12.17.01.28.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Dec 2020 01:28:10 -0800 (PST) Message-ID: <528a5ce07a4b2b96100934e64ff7e4254b8f3866.camel@debian.org> From: Luca Boccassi To: Long Li , stable@dpdk.org Cc: Stephen Hemminger , Long Li Date: Thu, 17 Dec 2020 09:28:10 +0000 In-Reply-To: <1608087878-7407-1-git-send-email-longli@linuxonhyperv.com> References: <1608087878-7407-1-git-send-email-longli@linuxonhyperv.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.30.5-1.2 MIME-Version: 1.0 Subject: Re: [dpdk-stable] [PATCH 19.11] net/netvsc: manage VF port under read/write lock X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Tue, 2020-12-15 at 19:04 -0800, Long Li wrote: > From: Stephen Hemminger >=20 > [ upstream commit 81938ebb542f1ce19254f58705583a7f48a95216 ] >=20 > 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. >=20 > Users of lock (tx/rx/stats) acquire for read, and actions like > add/remove acquire it for write. >=20 > Signed-off-by: Stephen Hemminger > Signed-off-by: Long Li > --- > 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. --=20 Kind regards, Luca Boccassi