[PATCH] net/kni: initialize rte_kni_conf to 0 before using it
Ferruh Yigit
ferruh.yigit at intel.com
Thu Mar 3 12:31:32 CET 2022
On 3/3/2022 2:18 AM, Harold Huang wrote:
> When kni driver calls eth_kni_start to start device, some fields such as
> min_mtu and max_mtu of rte_kni_conf are not initialized. It will cause
> kni_ioctl_create create a kni netdevice with a random min_mtu and max_mtu
> value. This is unexpected and sometimes we could not change the kni
> device mtu with ip link command.
>
> Fixes: ff1e35fb5f83 ("kni: calculate MTU from mbuf size")
> Cc: stable at dpdk.org
> Signed-off-by: Harold Huang <baymaxhuang at gmail.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
Applied to dpdk-next-net/main, thanks.
More information about the stable
mailing list