From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C5543A0524 for ; Fri, 5 Feb 2021 12:22:16 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF8664067B; Fri, 5 Feb 2021 12:22:16 +0100 (CET) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by mails.dpdk.org (Postfix) with ESMTP id C76D34067B for ; Fri, 5 Feb 2021 12:22:15 +0100 (CET) Received: by mail-wr1-f47.google.com with SMTP id a1so7283151wrq.6 for ; Fri, 05 Feb 2021 03:22:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IpIyoQs4dgtMWkBEPaZPXIu5dV/A+eZV1bFox1aWOqA=; b=HAhw6MuS26X8J3AJojjT1wUt4t1tSbQCCNYXIhTHIMZl8K3Fs+saEEnYZcfsmG95l4 S689IJ7bIGLKx9TRbKCeCA7G+8p7uV9tqnhK9wAFIG39qxw7asNFGLrn/LHC9cU7wgsb 33CbydmddXyxqvQi1uS9IVnDwZERGcHIyS4a1rL9wnH50Ie1h9HmF8hgTMrz/Z1iz37p ohzAmqNDf7e9CrTp2dmO9hW6M7dG47vU9LdiByn2qyJ/GR8fgYIC8NhyuY5Jfc1gD/VI GGdXX/CYAfKHBd3LlU2WHhC544A46eLfs7dM4r0MWZEn1b7XT01UepIqJib4Dg8gTDLi BCTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IpIyoQs4dgtMWkBEPaZPXIu5dV/A+eZV1bFox1aWOqA=; b=YHtkDvG8+Bi8r8wEdYaw4FoU9rHFhPS1cLnD/dP7DsrXFk7o8A8zI/hHJFb96s1Tl8 BOTnNuXyi+rQ8VHcijZzNqr7vBIo9BdDXHJyvnhNjsZSRq+kYhDjoJevV5ienZN8HvGz QjUuZgYZSr/yaeAUtmHzDDkKJYqqsgoGvjzZV9cicMswlf+ikI0d6+RVH0bXQ7SiJzam XhpRWj7QNu8MaA2d745itJpce7mSQEHMdI0gjvJxdO4/0Quh8fa/a4zDcWgbz1N3BNNM f13eAt/o080rf/US6AejUfpUcXCrz+6zAJoJ3eAFIqGUJxlBhyJ68dXkSV7hJ0GkMaMB t+YA== X-Gm-Message-State: AOAM532O0YQ0XVggeSRlgk3u21Mpl/HVftQs0pyeeiW2ke21HstDKifw G+qSlQk0b2xvvWh7HNZPHT0= X-Google-Smtp-Source: ABdhPJx8p1zK9BO/ofNrIZYRkQ++yXg8de6fgLSWNxm8AniZZXE1SCVgbSixuq/jfK65T7P5M1vE6w== X-Received: by 2002:a5d:6092:: with SMTP id w18mr4465687wrt.75.1612524135623; Fri, 05 Feb 2021 03:22:15 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id w4sm12411838wrt.69.2021.02.05.03.22.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 03:22:14 -0800 (PST) From: luca.boccassi@gmail.com To: Long Li Cc: dpdk stable Date: Fri, 5 Feb 2021 11:15:37 +0000 Message-Id: <20210205111920.1272063-51-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210205111920.1272063-1-luca.boccassi@gmail.com> References: <20210205111920.1272063-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/netvsc: ignore unsupported packet on sync command' has been queued to stable release 20.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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" Hi, FYI, your patch has been queued to stable release 20.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/07/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/e97bb2a91151415c939cfeb9eff73c5724625408 Thanks. Luca Boccassi --- >From e97bb2a91151415c939cfeb9eff73c5724625408 Mon Sep 17 00:00:00 2001 From: Long Li Date: Fri, 11 Dec 2020 12:48:21 -0800 Subject: [PATCH] net/netvsc: ignore unsupported packet on sync command [ upstream commit 0a4533facb49b0ca0d7520fee09270a82017e8fe ] On netvsc initialization, the host VSP may send a NVS_TYPE_TXTBL_NOTE packet while executing a VSP command synchronously. Instead of returning an error, ignore this packet as we don't use it for DPDK. Signed-off-by: Long Li --- drivers/net/netvsc/hn_nvs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/netvsc/hn_nvs.c b/drivers/net/netvsc/hn_nvs.c index eeb82ab9ee..03b6cc1551 100644 --- a/drivers/net/netvsc/hn_nvs.c +++ b/drivers/net/netvsc/hn_nvs.c @@ -97,8 +97,13 @@ __hn_nvs_execute(struct hn_data *hv, hdr = (struct hn_nvs_hdr *)buffer; /* Silently drop received packets while waiting for response */ - if (hdr->type == NVS_TYPE_RNDIS) { + switch (hdr->type) { + case NVS_TYPE_RNDIS: hn_nvs_ack_rxbuf(chan, xactid); + /* fallthrough */ + + case NVS_TYPE_TXTBL_NOTE: + PMD_DRV_LOG(DEBUG, "discard packet type 0x%x", hdr->type); goto retry; } -- 2.29.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-02-05 11:18:31.579464106 +0000 +++ 0051-net-netvsc-ignore-unsupported-packet-on-sync-command.patch 2021-02-05 11:18:28.774690503 +0000 @@ -1 +1 @@ -From 0a4533facb49b0ca0d7520fee09270a82017e8fe Mon Sep 17 00:00:00 2001 +From e97bb2a91151415c939cfeb9eff73c5724625408 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 0a4533facb49b0ca0d7520fee09270a82017e8fe ] + @@ -11,2 +12,0 @@ - -Cc: stable@dpdk.org