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 AFA74A04DB; Fri, 11 Dec 2020 08:52:59 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 15032AC9B; Fri, 11 Dec 2020 08:52:58 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by dpdk.org (Postfix) with ESMTP id 7B55CAC9A; Fri, 11 Dec 2020 08:52:55 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1004) id B15FE20B717A; Thu, 10 Dec 2020 23:52:54 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B15FE20B717A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com; s=default; t=1607673174; bh=ScojcJ7Pv3uspbOMnUmxNZgS3QzRpKY37QAaW3f7PRU=; h=From:To:Cc:Subject:Date:From; b=ezfFlZmWbCdkKoDk/Xp0Qigp9hoEqLBl4ZSBZTjtf3CHw87IOOxd5TmzAzpyaftdf BD3W5PYhohBgefAQqmDkSBGTxIm9QP9bSNur7x6lKPn0Czq+tv6QYnHjcjspHpco8M ffVmT+JrKwhhKWGYmOgEihOw6E2nu431OhKGZ7CQ= From: Long Li To: Stephen Hemminger Cc: dev@dpdk.org, Long Li , stable@dpdk.org Date: Thu, 10 Dec 2020 23:52:44 -0800 Message-Id: <1607673164-3683-1-git-send-email-longli@linuxonhyperv.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH] net/netvsc: ignore NVS_TYPE_TXTBL_NOTE while executing a sync command X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Long Li On netvsc initialization, the host VSP may send a NVS_TYPE_TXTBL_NOTE packet while executing a VSP command synchronously. Ignore this packet as we don't use it for DPDK. Cc: stable@dpdk.org 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 a0ee7d8bfa..b6aa07cc5f 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(NOTICE, "discard packet type %x", hdr->type); goto retry; } -- 2.25.1