net/netvsc: ignore NVS_TYPE_TXTBL_NOTE while executing a sync command
PATCH v2 1/1 net/netvsc: ignore NVS_TYPE_TXTBL_NOTE while executing a sync command
From: Long Li <[email protected]>
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 <[email protected]>
--- drivers/net/netvsc/hn_nvs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/net/netvsc/hn_nvs.c +6 -1
@@ -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; }
Signature · 1 line
2.25.1
Ferruh Yigit
AppliedQuoted 10 lines · Long Li
From: Long Li <[email protected]>
On netvsc initialization, the host VSP may send a
NVS_TYPE_TXTBL_NOTEpacket 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 <[email protected]>
Applied to dpdk-next-net/main, thanks.