net/vdev_netvsc: fix device probing error flow
authorLong Li <longli@microsoft.com>
Thu, 22 Oct 2020 08:11:34 +0000 (01:11 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:05 +0000 (23:35 +0100)
commit702b27d3fc4b82643d08d4b072e6d61b6d73e6be
treea000a601830467786602fe6dcff65b2303faa3d8
parent4c6dea0c0b23d29b6c4d21cde4574ded287c1ac9
net/vdev_netvsc: fix device probing error flow

If a device probe fails, the alarm is canceled and will no longer work
for previously probed devices.

Fix this by checking if alarm is necessary at the end of each device
probe.  Reset the alarm if there are vdev_netvsc_ctx created.

Fixes: e7dc5d7becc5 ("net/vdev_netvsc: implement core functionality")
Cc: stable@dpdk.org
Signed-off-by: Long Li <longli@microsoft.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/vdev_netvsc/vdev_netvsc.c