net/netvsc: fix warning when VF is removed
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 19 May 2020 16:52:27 +0000 (09:52 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 28 May 2020 15:57:07 +0000 (17:57 +0200)
commitc6854a41266a962d1f013065db7828517b246fef
tree0c05ea986d76950c800fa932d38b60ae282722ff
parentb757deb8e352b85fca8fc487269b1f5e70117633
net/netvsc: fix warning when VF is removed

The code to unset owner of VF device was changing port to invalid
value before calling unset.

Fixes: 4a9efcddaddd ("net/netvsc: fix VF support with secondary process")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/netvsc/hn_vf.c