net/netvsc: reset mbuf port on VF Rx
authorStephen Hemminger <sthemmin@microsoft.com>
Tue, 30 Apr 2019 18:12:16 +0000 (11:12 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
commit05bfd4b49184c33cede032b680436dddb0083016
treea60bfff87c0bed88a5466e1c5d2b57d3c0457614
parent273168f150078efdd30f12e272973951c611d816
net/netvsc: reset mbuf port on VF Rx

Redo the receive logic to set m->port on packets received on VF.

When using VF, still need to check for packets and completions
arriving on the VMBus path even if application is not doing bursting
(ie n_rx == 0).

Also, fix comment.

Fixes: dc7680e8597c ("net/netvsc: support integrated VF")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
drivers/net/netvsc/hn_rxtx.c