Re: [PATCH net-next] vsock/virtio: remove unnecessary call to `virtio_transport_get_ops`
From: Luigi Leonardi
Date: Tue Apr 07 2026 - 12:26:46 EST
On Tue, Apr 07, 2026 at 07:16:24PM +0300, Arseniy Krasnov wrote:
07.04.2026 17:31, Luigi Leonardi wrote:
`virtio_transport_send_pkt_info` gets all the transport information
from the parameter `t_ops`. There is no need to call
`virtio_transport_get_ops()`.
Hm, one more suggestion, but not in this patch: may be we can also remove 'struct vsock_sock *vsk' argument
from 'virtio_transport_send_pkt_info()', because it is also included in 'virtio_vsock_pkt_info *info' ?
Yep, good catch!
Thanks,
Luigi