bus/vmbus: skip non-network devices
authorStephen Hemminger <sthemmin@microsoft.com>
Thu, 6 Jun 2019 00:37:46 +0000 (17:37 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 27 Jun 2019 21:13:57 +0000 (23:13 +0200)
commitb11b76c22c55c06cabd113a04d7c92bdc3f18aa7
tree109c6190fb60d19e586c80f0b2a6a0925d7156e0
parente0f4a0ed4237e273b78728b7c7a3bf71d2d5218f
bus/vmbus: skip non-network devices

The vmbus scan code can just skip non-network devices.
More importantly, this fixes the bug where some vmbus devices
don't have all the attributes (like monitor_id) and a single
failure would cause the scan to break the loop.

Fixes: 831dba47bd36 ("bus/vmbus: add Hyper-V virtual bus support")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
drivers/bus/vmbus/linux/vmbus_bus.c