Re: [RFC 1/6] net: extend ubuf_info callback to ops structure

David Ahern
2024-04-13T17:17:35Z

On 4/12/24 6:55 AM, Pavel Begunkov wrote:
> We'll need to associate additional callbacks with ubuf_info, introduce
> a structure holding ubuf_info callbacks. Apart from a more smarter
> io_uring notification management introduced in next patches, it can be
> used to generalise msg_zerocopy_put_abort() and also store
> ->sg_from_iter, which is currently passed in struct msghdr.
>
> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
> ---
> drivers/net/tap.c | 2 +-
> drivers/net/tun.c | 2 +-
> drivers/vhost/net.c | 8 ++++++--
> include/linux/skbuff.h | 19 +++++++++++--------
> io_uring/notif.c | 8 ++++++--
> net/core/skbuff.c | 17 +++++++++++------
> 6 files changed, 36 insertions(+), 20 deletions(-)
>

Reviewed-by: David Ahern <dsahern@kernel.org>