ethdev: report error on ring name truncation
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Thu, 17 Jan 2019 14:13:54 +0000 (14:13 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Jan 2019 08:47:26 +0000 (09:47 +0100)
commite1e1c08a53faecd6504a063b08dc5616135a773d
treefe68bf8c81669e5fc804e81a22d44a716d8514a0
parent48670ed6f77adb44e696eb2b97592e25a2889fb6
ethdev: report error on ring name truncation

Currently this api doesn't report error if name is
truncated and so user is not sure about uniqueness
of name. This change reports error to help user.

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
lib/librte_ethdev/rte_ethdev.c