Re: [dpdk-dev] [PATCH v2] kni: reduce interface name size

2019-11-19 Thread David Marchand
On Fri, Nov 15, 2019 at 2:30 PM Ferruh Yigit wrote: > On 11/15/2019 1:03 PM, Michael Pfeiffer wrote: > > 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 i

Re: [dpdk-dev] [PATCH v2] kni: reduce interface name size

2019-11-15 Thread Ferruh Yigit
On 11/15/2019 1:03 PM, Michael Pfeiffer wrote: > 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_NAMESI

[dpdk-dev] [PATCH v2] kni: reduce interface name size

2019-11-15 Thread Michael Pfeiffer
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 P