[PATCH 1/2] vsock/virtio: Move rx_buf_nr and rx_buf_max_nr initialization position

2025-02-06 Thread Junnan Wu
ut initializing rx_buf_nr and rx_buf_max_nr, the rx_buf_max_nr increased to three times vq->num_free, at this time, in function virtio_transport_rx_work, the conditions to fill rx buffer (rx_buf_nr < rx_buf_max_nr / 2) can't be met. Signed-off-by: Ying Gao Signed-off-by: Junnan Wu ---

[PATCH 2/2] vsock/virtio: Don't reset the created SOCKET during s2r

2025-02-06 Thread Junnan Wu
be reset. Signed-off-by: Ying Gao Signed-off-by: Junnan Wu --- net/vmw_vsock/virtio_transport.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.c index 9eefd0fba92b..9df609581755 100644 --- a/net/vmw_vs