net/ring: avoid hard-coded length
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 23 Apr 2019 16:53:33 +0000 (09:53 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
commit1af59f5ddacaf9287f81e20b49207f28ecbb0e56
treea697d02b93c4519cda246498b203eb3b1039748f
parent869bf6d222bb05502bd5b508eb1cfed4e7d2623b
net/ring: avoid hard-coded length

Don't hard code string length in two place; use sizeof() instead.
Ring name should use RTE_RING_NAMESIZE.

Fixes: 96cb19521147 ("net/ring: use EAL APIs in PMD specific API")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/ring/rte_eth_ring.c