From: Gaetan Rivet Date: Mon, 23 Apr 2018 23:54:46 +0000 (+0200) Subject: net/vdev_netvsc: do not reference devargs list X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=efbeaee040003781930286cfea69da9bf67398ce;p=dpdk.git net/vdev_netvsc: do not reference devargs list This list should not be used by drivers. Use the public API instead. Signed-off-by: Gaetan Rivet Acked-by: Thomas Monjalon --- diff --git a/drivers/net/vdev_netvsc/vdev_netvsc.c b/drivers/net/vdev_netvsc/vdev_netvsc.c index f7102d768a..8b85711d4b 100644 --- a/drivers/net/vdev_netvsc/vdev_netvsc.c +++ b/drivers/net/vdev_netvsc/vdev_netvsc.c @@ -796,7 +796,7 @@ vdev_netvsc_scan_callback(__rte_unused void *arg) struct rte_devargs *devargs; struct rte_bus *vbus = rte_bus_find_by_name("vdev"); - TAILQ_FOREACH(devargs, &devargs_list, next) + RTE_EAL_DEVARGS_FOREACH("vdev", devargs) if (!strcmp(devargs->name, VDEV_NETVSC_DRIVER_NAME)) return; dev = (struct rte_vdev_device *)vbus->find_device(NULL,