Re: [PATCH net-next v14 03/12] vsock: add netns support to virtio transports

From: Stefano Garzarella

Date: Tue Jan 13 2026 - 09:37:58 EST


On Mon, Jan 12, 2026 at 07:11:12PM -0800, Bobby Eshleman wrote:
From: Bobby Eshleman <bobbyeshleman@xxxxxxxx>

Add netns support to loopback and vhost. Keep netns disabled for
virtio-vsock, but add necessary changes to comply with common API
updates.

This is the patch in the series when vhost-vsock namespaces actually
come online.

Signed-off-by: Bobby Eshleman <bobbyeshleman@xxxxxxxx>
---
Changes in v14:
- fixed merge conflicts in drivers/vhost/vsock.c

Changes in v13:
- do not store or pass the mode around now that net->vsock.mode is
immutable
- move virtio_transport_stream_allow() into virtio_transport.c
because virtio is the only caller now

Changes in v12:
- change seqpacket_allow() and stream_allow() to return true for
loopback and vhost (Stefano)

Changes in v11:
- reorder with the skb ownership patch for loopback (Stefano)
- toggle vhost_transport_supports_local_mode() to true

Changes in v10:
- Splitting patches complicates the series with meaningless placeholder
values that eventually get replaced anyway, so to avoid that this
patch combines into one. Links to previous patches here:
- Link: https://lore.kernel.org/all/20251111-vsock-vmtest-v9-3-852787a37bed@xxxxxxxx/
- Link: https://lore.kernel.org/all/20251111-vsock-vmtest-v9-6-852787a37bed@xxxxxxxx/
- Link: https://lore.kernel.org/all/20251111-vsock-vmtest-v9-7-852787a37bed@xxxxxxxx/
- remove placeholder values (Stefano)
- update comment describe net/net_mode for
virtio_transport_reset_no_sock()
---
drivers/vhost/vsock.c | 38 ++++++++++++++++-------
include/linux/virtio_vsock.h | 5 +--
net/vmw_vsock/virtio_transport.c | 13 ++++++--
net/vmw_vsock/virtio_transport_common.c | 54 +++++++++++++++++++--------------
net/vmw_vsock/vsock_loopback.c | 14 +++++++--
5 files changed, 84 insertions(+), 40 deletions(-)

LGTM!

Reviewed-by: Stefano Garzarella <sgarzare@xxxxxxxxxx>