[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221021091404.58d244af@kernel.org>
Date: Fri, 21 Oct 2022 09:14:04 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Pavel Begunkov <asml.silence@...il.com>
Cc: Jens Axboe <axboe@...nel.dk>, Paolo Abeni <pabeni@...hat.com>,
"David S . Miller" <davem@...emloft.net>, io-uring@...r.kernel.org,
netdev@...r.kernel.org, Stefan Metzmacher <metze@...ba.org>
Subject: Re: [PATCH for-6.1 1/3] net: flag sockets supporting msghdr
originated zerocopy
On Fri, 21 Oct 2022 11:16:39 +0100 Pavel Begunkov wrote:
> We need an efficient way in io_uring to check whether a socket supports
> zerocopy with msghdr provided ubuf_info. Add a new flag into the struct
> socket flags fields.
>
> Cc: <stable@...r.kernel.org> # 6.0
> Signed-off-by: Pavel Begunkov <asml.silence@...il.com>
> ---
> include/linux/net.h | 1 +
> net/ipv4/tcp.c | 1 +
> net/ipv4/udp.c | 1 +
> 3 files changed, 3 insertions(+)
>
> diff --git a/include/linux/net.h b/include/linux/net.h
> index 711c3593c3b8..18d942bbdf6e 100644
> --- a/include/linux/net.h
> +++ b/include/linux/net.h
> @@ -41,6 +41,7 @@ struct net;
> #define SOCK_NOSPACE 2
> #define SOCK_PASSCRED 3
> #define SOCK_PASSSEC 4
> +#define SOCK_SUPPORT_ZC 5
Acked-by: Jakub Kicinski <kuba@...nel.org>
Any idea on when this will make it to Linus? If within a week we can
probably delay:
https://lore.kernel.org/all/dc549a4d5c1d2031c64794c8e12bed55afb85c3e.1666287924.git.pabeni@redhat.com/
and avoid the conflict.
Powered by blists - more mailing lists