Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vsock/virtio: remove unnecessary call to `virtio_transport_get_ops`

`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()`.

Remove it.

Acked-by: Arseniy Krasnov <avkrasnov@salutedevices.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://patch.msgid.link/20260408-remove_parameter-v2-1-e00f31cf7a17@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Luigi Leonardi and committed by
Jakub Kicinski
00667926 5758be28

-2
-2
net/vmw_vsock/virtio_transport_common.c
··· 60 60 return false; 61 61 62 62 /* Check that transport can send data in zerocopy mode. */ 63 - t_ops = virtio_transport_get_ops(info->vsk); 64 - 65 63 if (t_ops->can_msgzerocopy) { 66 64 int pages_to_send = iov_iter_npages(iov_iter, MAX_SKB_FRAGS); 67 65