Re: [PATCH] net/kni: initialize rte_kni_conf to 0 before using it

2022-03-04 Thread Ferruh Yigit
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 sometime

Re: [PATCH] net/kni: initialize rte_kni_conf to 0 before using it

2022-03-03 Thread Ferruh Yigit
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 sometime

Re: [PATCH] net/kni: initialize rte_kni_conf to 0 before using it

2022-03-02 Thread Harold Huang
On Thu, Mar 3, 2022 at 2:16 AM Ferruh Yigit wrote: > > On 3/2/2022 12:33 PM, 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

Re: [PATCH] net/kni: initialize rte_kni_conf to 0 before using it

2022-03-02 Thread Ferruh Yigit
On 3/2/2022 12:33 PM, 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 in some