Re: [PATCH net] vsock/virtio: fix `rx_bytes` accounting for stream sockets

2025-06-12 Thread Stefano Garzarella
On Thu, Jun 12, 2025 at 04:55:14PM +0800, Xuewei Niu wrote: On Thu, 12 Jun 2025 at 10:21, Xuewei Niu wrote: > > > On Thu, 12 Jun 2025 at 08:50, Xuewei Niu wrote: > > > > > > > On Thu, Jun 12, 2025 at 01:32:01PM +0800, Xuewei Niu wrote: > > > > > No comments since last month. > > > > > > > > > >

Re: [PATCH net] vsock/virtio: fix `rx_bytes` accounting for stream sockets

2025-06-12 Thread Xuewei Niu
> On Thu, 12 Jun 2025 at 10:21, Xuewei Niu wrote: > > > > > On Thu, 12 Jun 2025 at 08:50, Xuewei Niu wrote: > > > > > > > > > On Thu, Jun 12, 2025 at 01:32:01PM +0800, Xuewei Niu wrote: > > > > > > No comments since last month. > > > > > > > > > > > > The patch [1], which adds SIOCINQ ioctl suppo

Re: [PATCH net] vsock/virtio: fix `rx_bytes` accounting for stream sockets

2025-06-12 Thread Stefano Garzarella
On Thu, 12 Jun 2025 at 10:21, Xuewei Niu wrote: > > > On Thu, 12 Jun 2025 at 08:50, Xuewei Niu wrote: > > > > > > > On Thu, Jun 12, 2025 at 01:32:01PM +0800, Xuewei Niu wrote: > > > > > No comments since last month. > > > > > > > > > > The patch [1], which adds SIOCINQ ioctl support for vsock, de

Re: [PATCH net] vsock/virtio: fix `rx_bytes` accounting for stream sockets

2025-06-12 Thread Xuewei Niu
> On Thu, 12 Jun 2025 at 08:50, Xuewei Niu wrote: > > > > > On Thu, Jun 12, 2025 at 01:32:01PM +0800, Xuewei Niu wrote: > > > > No comments since last month. > > > > > > > > The patch [1], which adds SIOCINQ ioctl support for vsock, depends on > > > > this > > > > patch. Could I get more eyes on

Re: [PATCH net] vsock/virtio: fix `rx_bytes` accounting for stream sockets

2025-06-12 Thread Stefano Garzarella
On Thu, 12 Jun 2025 at 08:50, Xuewei Niu wrote: > > > On Thu, Jun 12, 2025 at 01:32:01PM +0800, Xuewei Niu wrote: > > > No comments since last month. > > > > > > The patch [1], which adds SIOCINQ ioctl support for vsock, depends on this > > > patch. Could I get more eyes on this one? > > > > > > [

Re: [PATCH net] vsock/virtio: fix `rx_bytes` accounting for stream sockets

2025-06-11 Thread Michael S. Tsirkin
On Thu, Jun 12, 2025 at 01:32:01PM +0800, Xuewei Niu wrote: > No comments since last month. > > The patch [1], which adds SIOCINQ ioctl support for vsock, depends on this > patch. Could I get more eyes on this one? > > [1]: > https://lore.kernel.org/lkml/bbn4lvdwh42m2zvi3rdyws66y5ulew32rchtz3kxi

Re: [PATCH net] vsock/virtio: fix `rx_bytes` accounting for stream sockets

2025-06-11 Thread Xuewei Niu
> On Thu, Jun 12, 2025 at 01:32:01PM +0800, Xuewei Niu wrote: > > No comments since last month. > > > > The patch [1], which adds SIOCINQ ioctl support for vsock, depends on this > > patch. Could I get more eyes on this one? > > > > [1]: > > https://lore.kernel.org/lkml/bbn4lvdwh42m2zvi3rdyws66y

Re: [PATCH net] vsock/virtio: fix `rx_bytes` accounting for stream sockets

2025-06-11 Thread Xuewei Niu
No comments since last month. The patch [1], which adds SIOCINQ ioctl support for vsock, depends on this patch. Could I get more eyes on this one? [1]: https://lore.kernel.org/lkml/bbn4lvdwh42m2zvi3rdyws66y5ulew32rchtz3kxirqlllkr63@7toa4tcepax3/#t Thanks, Xuewei

Re: [PATCH net] vsock/virtio: fix `rx_bytes` accounting for stream sockets

2025-05-26 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Paolo Abeni : On Wed, 21 May 2025 14:17:05 +0200 you wrote: > From: Stefano Garzarella > > In `struct virtio_vsock_sock`, we maintain two counters: > - `rx_bytes`: used internally to track how many bytes have been read. > This supports

[PATCH net] vsock/virtio: fix `rx_bytes` accounting for stream sockets

2025-05-21 Thread Stefano Garzarella
From: Stefano Garzarella In `struct virtio_vsock_sock`, we maintain two counters: - `rx_bytes`: used internally to track how many bytes have been read. This supports mechanisms like .stream_has_data() and sock_rcvlowat(). - `fwd_cnt`: used for the credit mechanism to inform available receive