From: Long Li Date: Fri, 11 Dec 2020 20:48:21 +0000 (-0800) Subject: net/netvsc: ignore unsupported packet on sync command X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0a4533facb49b0ca0d7520fee09270a82017e8fe;p=dpdk.git net/netvsc: ignore unsupported packet on sync command 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. Cc: stable@dpdk.org Signed-off-by: Long Li --- 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; }