Re: [PATCH] net/9p: add vsock transport

From: skvarlamatus

Date: Thu Jun 25 2026 - 11:16:45 EST


Thank you all for reviewing this patch and sorry for the
late reply. I am already working on a v2.

I wanted to ask you about your opinions on the issue with
port number truncation. The port number is parsed from mount
options as u16, which is sufficient for TCP, but vsock uses u32.

I see two ways to resolve this. One is adding a new command line
option for vsock only that would be stored in a u32. The other is
changing the type of the port variable to u32, and adding a range
check for TCP.

Personally, I would lean towards the second option.

--
Matus