ethdev: check for invalid device name
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 14 Mar 2019 16:20:47 +0000 (09:20 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 21 Mar 2019 18:27:51 +0000 (19:27 +0100)
commit0366137722a0826325c3da324ef80c7adffac722
treed10559532da7011db8ebc2d650640e22a989a39c
parentcf6a73fc3fb774477feea692e90d2976a8f91cd8
ethdev: check for invalid device name

Do not allow creating an Ethernet device with a name over the
allowed maximum (or zero length).
This is safer than silently truncating which is what happens now.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Ali Alnubani <alialnu@mellanox.com>
lib/librte_ethdev/rte_ethdev.c