search for: can_msgzerocopy

Displaying 1 result from an estimated 1 matches for "can_msgzerocopy".

2023 Sep 04
0
[PATCH net-next v7 4/4] vsock/virtio: MSG_ZEROCOPY flag support
...>>> +??? if (iov_iter->count > max_to_send) >>> +??????? return false; >>> + >>> +??? /* Check that transport can send data in zerocopy mode. */ >>> +??? t_ops = virtio_transport_get_ops(info->vsk); >>> + >>> +??? if (t_ops->can_msgzerocopy) { >> >> So if `can_msgzerocopy` is not implemented, we always return true after >> this point. Should we mention it in the .can_msgzerocopy documentation? > >Ops, this is my mistake, I must return 'false' in this case. Seems I didn't >catch this problem with...