Re: [Patch net v3] vsock/virtio: fix variables initialization during resuming

2025-02-14 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Fri, 14 Feb 2025 09:22:00 +0800 you wrote: > When executing suspend to ram twice in a row, > the `rx_buf_nr` and `rx_buf_max_nr` increase to three times vq->num_free. > Then after virtqueue_get_buf and `rx_buf_nr` decre

Re: [Patch net v3] vsock/virtio: fix variables initialization during resuming

2025-02-14 Thread Stefano Garzarella
On Fri, Feb 14, 2025 at 09:22:00AM +0800, Junnan Wu wrote: When executing suspend to ram twice in a row, the `rx_buf_nr` and `rx_buf_max_nr` increase to three times vq->num_free. Then after virtqueue_get_buf and `rx_buf_nr` decreased in function virtio_transport_rx_work, the condition to fill rx

Re: [Patch net v3] vsock/virtio: fix variables initialization during resuming

2025-02-14 Thread Michael S. Tsirkin
On Fri, Feb 14, 2025 at 09:22:00AM +0800, Junnan Wu wrote: > When executing suspend to ram twice in a row, > the `rx_buf_nr` and `rx_buf_max_nr` increase to three times vq->num_free. > Then after virtqueue_get_buf and `rx_buf_nr` decreased > in function virtio_transport_rx_work, > the condition to

Re: [Patch net v3] vsock/virtio: fix variables initialization during resuming

2025-02-14 Thread Luigi Leonardi
On Fri, Feb 14, 2025 at 09:22:00AM +0800, Junnan Wu wrote: When executing suspend to ram twice in a row, the `rx_buf_nr` and `rx_buf_max_nr` increase to three times vq->num_free. Then after virtqueue_get_buf and `rx_buf_nr` decreased in function virtio_transport_rx_work, the condition to fill rx

[Patch net v3] vsock/virtio: fix variables initialization during resuming

2025-02-13 Thread Junnan Wu
When executing suspend to ram twice in a row, the `rx_buf_nr` and `rx_buf_max_nr` increase to three times vq->num_free. Then after virtqueue_get_buf and `rx_buf_nr` decreased in function virtio_transport_rx_work, the condition to fill rx buffer (rx_buf_nr < rx_buf_max_nr / 2) will never be met. It