# Re: \[PATCH net-next 1/6\] vsock: constify the transport in vsock\_for\_each\_connected\_socket()

- From: Stefano Garzarella \<sgarzare@redhat.com\>
- Date: 2026-09-15 15:42:26 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/09/17580598
- Thread: https://ratatoskr.run/virtualization/2026/09/17501255/t.md

```text
On Wed, Sep 02, 2026 at 04:00:47PM -0700, Bobby Eshleman wrote:
>From: Bobby Eshleman <bobbyeshleman@meta.com>
>
>Allow const transports to be passed too. The function only compares the
>pointer against vsk->transport, which is itself const, and never writes
>through it.
>
>No functional change.
>
>Signed-off-by: Bobby Eshleman <bobbyeshleman@meta.com>
>---
> include/net/af_vsock.h   | 2 +-
> net/vmw_vsock/af_vsock.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>

```
