kni: reduce interface name size
authorMichael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
Fri, 15 Nov 2019 13:03:28 +0000 (14:03 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 19 Nov 2019 21:00:32 +0000 (22:00 +0100)
commitb8a0415008a699283e76a23cc2e4c09f02ee118e
tree288ccf5425a6b1b612ada5d632d522402f8312a3
parent84191ddeb53dcabb2567422ebf4612dea14d2471
kni: reduce interface name size

The name in rte_kni_device_info is passed to the kernel, which allows
interface names with at most 16 bytes (IFNAMSIZ). rte_kni_alloc with a
longer name currently trigger a kernel BUG in alloc_netdev_mqs in
net/core/dev.c. Reduce RTE_KNI_NAMESIZE to prevent this situation.

Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linux/eal/include/rte_kni_common.h