net/ring: fix ring device creation via devargs
authorFerruh Yigit <ferruh.yigit@intel.com>
Wed, 31 Aug 2016 16:51:11 +0000 (17:51 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Oct 2016 13:38:55 +0000 (15:38 +0200)
commit1d3b7940dbc61bb6091b02e379da0536f9b87bf1
tree4390b9a7baab5b5883c03592720ff5795670eb13
parent7bc8e9a227ccbc649c2d230f0ee92ee58b1cb955
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 <ferruh.yigit@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/net/ring/rte_eth_ring.c