Re: [PATCH net-next v3 1/3] vsock: move SOL_SOCKET options to vsock_sol_socket_setsockopt()

From: Stefano Garzarella

Date: Wed Oct 21 2026 - 05:38:40 EST


On Fri, Oct 16, 2026 at 02:27:14PM +0100, David Carlier wrote:
SO_ZEROCOPY is handled inline in vsock_connectible_setsockopt(). Move it
to a helper with a switch on optname, so other SOL_SOCKET options can be
added as new cases. The value parsing goes to its own helper too, so each
option can do its own checks before it.

No functional change.

Signed-off-by: David Carlier <devnexen@xxxxxxxxx>
---
net/vmw_vsock/af_vsock.c | 90 +++++++++++++++++++++++++++++-----------
1 file changed, 65 insertions(+), 25 deletions(-)

Reviewed-by: Stefano Garzarella <sgarzare@xxxxxxxxxx>