Re: [PATCH net-next v4 3/7] vsock: pass the netns to ->has_remote_cid()
From: Stefano Garzarella
Date: Wed Oct 21 2026 - 06:16:17 EST
On Tue, Oct 20, 2026 at 06:15:06PM -0700, Bobby Eshleman wrote:
The transports only use the socket to find its network namespace. Pass
the namespace instead, so that a later patch can ask whether a CID is
taken in a namespace without necessarily having a socket on hand. This
will help with avoiding CID collisions when devices move between
namespaces.
No functional change.
Signed-off-by: Bobby Eshleman <bobbyeshleman@xxxxxxxx>
---
drivers/vhost/vsock.c | 4 +---
include/net/af_vsock.h | 2 +-
net/vmw_vsock/af_vsock.c | 6 ++++--
net/vmw_vsock/virtio_transport.c | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
Reviewed-by: Stefano Garzarella <sgarzare@xxxxxxxxxx>