From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id 02A305F62 for ; Wed, 21 Mar 2018 00:20:39 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id a20so19479188wmd.1 for ; Tue, 20 Mar 2018 16:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=2/gGkq4eT7u5iMFbVFROd+y1sDaf7Voh86uBxn4P1ts=; b=IvPGqd7e7xGkyMp+6M/yZVlqvBvQdHuPJ0wkDoNADRfuZDHylRdXYcMA85HxjeKLqg WVPODoHsa1QPBcPs2EYs7KXcuXV8IEZPUzWqZJtJTPuzCbvY/4mWNaPNjGyn5NGLe+Se +JJejtHMmIzgB6y1NpWnWkiqXCMylYLhjFWSpMbR/oBi25ekjSqDtFc6nlPvuDxe53Q+ ERxM4B72EzVbe1uXS83p7zAVnZ/dsb3ubA+BKLCwueAvLNK/7PqGmT99Y0F4nm4ySICV d0Gt6NYhqrhAXudEJdv6xppY233ER2LC13gz3ftewcabHTWjzK6eme6ZLcgaaaChT80S LPyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=2/gGkq4eT7u5iMFbVFROd+y1sDaf7Voh86uBxn4P1ts=; b=gfvk7/0W0z1cTPeIGGXKBs6S50q5A1p7TJ3LbomfCXzL+atOxPybE2qPrBVxnzOxMd +IV9UibYpOc052IjONFSh7isB0qo8eCuKVxBE0TPAe6zHeMvvB5L8PgNl/fejc4s6HGY YrGMAfS89maagWUfgxEsxDH8mXJNNVSPeMoyQ5spVQXpP4nNI3y/RKL4gH7ARozqH4GB 05CB8QyYgPhB8yaNNx6NdRO2pA5LK//ma03hi02AWz+nq48MrDjGqllQPTXd/R/C2Un+ 5CuRWI5iP7dMXaXMtdluKGrLv2PMtXgtG0sMlXdJh7n+vR9oKd1p33YTdPpRny/DgKUg SRSg== X-Gm-Message-State: AElRT7FS2e5vkj8/ccUxDQk4XxxGteK/uSrc1bX4sf4D7PJYn12slDk4 M+DTDTaWUMExoCOGn0OTVP59CaLP X-Google-Smtp-Source: AG47ELtCBU0gpqLH9XoILG2UDswvRmaEWTk1EbFSrLHzSqHlcjzV9gn0QWqJh2CkIXeM+sIPje0rNA== X-Received: by 10.28.229.210 with SMTP id c201mr1065850wmh.154.1521588039275; Tue, 20 Mar 2018 16:20:39 -0700 (PDT) Received: from bidouze.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id m135sm3983479wma.2.2018.03.20.16.20.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Mar 2018 16:20:38 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 21 Mar 2018 00:20:06 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v3 05/10] net/vdev_netvsc: do not reference devargs list X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2018 23:20:40 -0000 This list should not be used by drivers. Use the public API instead. Signed-off-by: Gaetan Rivet --- drivers/net/vdev_netvsc/vdev_netvsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/vdev_netvsc/vdev_netvsc.c b/drivers/net/vdev_netvsc/vdev_netvsc.c index cbf4d590a..b0bbce750 100644 --- a/drivers/net/vdev_netvsc/vdev_netvsc.c +++ b/drivers/net/vdev_netvsc/vdev_netvsc.c @@ -733,7 +733,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, -- 2.11.0