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

Stephen Hemminger stephen at networkplumber.org
Fri Nov 15 17:23:28 CET 2019


On Fri, 15 Nov 2019 12:41:07 +0100
Michael Pfeiffer <michael.pfeiffer at tu-ilmenau.de> 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_NAMESIZE to prevent this situation.
> 
> Signed-off-by: Michael Pfeiffer <michael.pfeiffer at tu-ilmenau.de>

Why not kill the NAMESIZE define in KNI and use the kernel one.


More information about the dev mailing list