From: Ferruh Yigit Date: Wed, 31 Aug 2016 16:51:11 +0000 (+0100) Subject: net/ring: fix ring device creation via devargs X-Git-Tag: spdx-start~5532 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1d3b7940dbc61bb6091b02e379da0536f9b87bf1;p=dpdk.git net/ring: fix ring device creation via devargs Using nodeaction devarg lets creating multiple ring eth devices: "eth_ring0,nodeaction=R0:0:CREATE,nodeaction=R1:0:CREATE" Trying to create all devices with same name fails. Since first part of the nodeaction devarg is name (in above sample R0,R1), this name field can be used as eth dev name. Fixes: 61934c0956d4 ("ring: convert to use of PMD_REGISTER_DRIVER and fix linking") Signed-off-by: Ferruh Yigit Acked-by: Bruce Richardson --- diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index b91f222942..954d14f9c9 100644 --- a/drivers/net/ring/rte_eth_ring.c +++ b/drivers/net/ring/rte_eth_ring.c @@ -557,7 +557,7 @@ rte_pmd_ring_probe(const char *name, const char *params) goto out_free; for (info->count = 0; info->count < info->total; info->count++) { - ret = eth_dev_ring_create(name, + ret = eth_dev_ring_create(info->list[info->count].name, info->list[info->count].node, info->list[info->count].action); if ((ret == -1) &&