Re: [PATCH] net/netvsc: fix mtu_set in netvsc devices

2024-07-03 Thread Alexander Skorichenko
Thanks. >> With this patch, do you see other problems with VPP? No further problems were noticed and MTU can be set to custom values. - Alexander Skorichenko On Wed, Jul 3, 2024 at 2:35 AM Long Li wrote: > Thank you, Alexander. > > > > The patch looks good to me. With t

Re: [PATCH] net/netvsc: fix mtu_set in netvsc devices

2024-07-02 Thread Alexander Skorichenko
reinit() in the patch: if (dev->data->rx_queues[0] != NULL) ... Because of the difference between rx/tx queues described above, it's probably safer to extend the condition to check both rx and tx separately if (dev->data->rx_queues[0] != NULL && dev->data->

[PATCH] net/netvsc: fix mtu_set in netvsc devices

2024-06-30 Thread Alexander Skorichenko
Prevent segfault in hn_reinit() caused by changing the MTU for an incompletely initialized device. Signed-off-by: Alexander Skorichenko --- drivers/net/netvsc/hn_ethdev.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/net/netvsc/hn_ethdev.c b