Displaying 1 result from an estimated 1 matches for "pages_in_iov".
2023 Sep 04
0
[PATCH net-next v7 4/4] vsock/virtio: MSG_ZEROCOPY flag support
...o test case where
>zerocopy will fallback to copy!
>
>I'll fix it and add new test!
yep, I agree!
>
>>
>> Can we also mention in the commit description why this is need only for
>> virtio_tranport and not for vhost and loopback?
>>
>>> +??????? int pages_in_iov = iov_iter_npages(iov_iter, MAX_SKB_FRAGS);
>>> +??????? int pages_to_send = min(pages_in_iov, MAX_SKB_FRAGS);
>>> +
>>> +??????? return t_ops->can_msgzerocopy(pages_to_send);
>>> +??? }
>>> +
>>> +??? return true;
>>> +}
>>>...