On 2020/11/13 下午9:47, Stefano Garzarella wrote:
In some cases, it may be useful to provide a way to skip a number
of bytes in a vringh_iov.
In order to keep vringh_iov consistent, let's reuse vringh_iov_xfer()
logic and skip bytes when the ptr is NULL.
Signed-off-by: Stefano Garzarella <sgarzare@xxxxxxxxxx>
---
I'm not sure if this is the best option, maybe we can add a new
function vringh_iov_skip().
Suggestions?
I might be worth to check whether we can convert vringh_iov to use iov iterator then we can use iov_iterator_advance() here.