net/vdev_netvsc: fix device detection error check
authorMatan Azrad <matan@mellanox.com>
Mon, 5 Feb 2018 12:48:22 +0000 (12:48 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Feb 2018 18:56:04 +0000 (19:56 +0100)
commitf99b4b07a68133d73b7ed9134d931098ca633e3d
tree973cb0190a8631ab3758118c7f8f01d7d56f6e66
parentd4b13b7ccd123793d5df3f66547b05ab7cf854e0
net/vdev_netvsc: fix device detection error check

The vdev_netvsc driver does periodic detection of PCI devices matched
to the netvsc existed interfaces.

When it finds a match, the PCI address is written to the pipe of the
associated fail-safe PMD instance and a positive value is returned to
the periodic check which is wrongly considered as error.

Change the check to consider only a negative value as error.

Fixes: e7dc5d7becc5 ("net/vdev_netvsc: implement core functionality")

Signed-off-by: Matan Azrad <matan@mellanox.com>
drivers/net/vdev_netvsc/vdev_netvsc.c