From: Martin KaFai Lau <martin.lau@linux.dev>
To: Kuniyuki Iwashima <kuniyu@google.com>
Cc: Alexei Starovoitov <ast@kernel.org>,
Andrii Nakryiko <andrii@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
John Fastabend <john.fastabend@gmail.com>,
Stanislav Fomichev <sdf@fomichev.me>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Neal Cardwell <ncardwell@google.com>,
Willem de Bruijn <willemb@google.com>,
Mina Almasry <almasrymina@google.com>,
Roman Gushchin <roman.gushchin@linux.dev>,
Kuniyuki Iwashima <kuni1840@gmail.com>,
bpf@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH bpf-next/net 2/6] net: Allow opt-out from global protocol memory accounting.
Date: Tue, 14 Oct 2025 16:12:38 -0700 [thread overview]
Message-ID: <c05e9b2c-ae5f-4607-821e-37f71b1dd1bb@linux.dev> (raw)
In-Reply-To: <20251007001120.2661442-3-kuniyu@google.com>
On 10/6/25 5:07 PM, Kuniyuki Iwashima wrote:
> diff --git a/include/net/sock.h b/include/net/sock.h
> index 60bcb13f045c..5cf8de6b6bf2 100644
> --- a/include/net/sock.h
> +++ b/include/net/sock.h
> @@ -118,6 +118,7 @@ typedef __u64 __bitwise __addrpair;
> * @skc_reuseport: %SO_REUSEPORT setting
> * @skc_ipv6only: socket is IPV6 only
> * @skc_net_refcnt: socket is using net ref counting
> + * @skc_bypass_prot_mem:
While it needs a respin, maybe useful to add comment on "@skc_bypass_prot_mem"
> * @skc_bound_dev_if: bound device index if != 0
> * @skc_bind_node: bind hash linkage for various protocol lookup tables
> * @skc_portaddr_node: second hash linkage for UDP/UDP-Lite protocol
> @@ -174,6 +175,7 @@ struct sock_common {
> unsigned char skc_reuseport:1;
> unsigned char skc_ipv6only:1;
> unsigned char skc_net_refcnt:1;
> + unsigned char skc_bypass_prot_mem:1;
> int skc_bound_dev_if;
> union {
> struct hlist_node skc_bind_node;
next prev parent reply other threads:[~2025-10-14 23:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-07 0:07 [PATCH bpf-next/net 0/6] bpf: Allow opt-out from sk->sk_prot->memory_allocated Kuniyuki Iwashima
2025-10-07 0:07 ` [PATCH bpf-next/net 1/6] tcp: Save lock_sock() for memcg in inet_csk_accept() Kuniyuki Iwashima
2025-10-10 14:19 ` Eric Dumazet
2025-10-07 0:07 ` [PATCH bpf-next/net 2/6] net: Allow opt-out from global protocol memory accounting Kuniyuki Iwashima
2025-10-09 23:11 ` Shakeel Butt
2025-10-10 14:23 ` Eric Dumazet
2025-10-14 23:12 ` Martin KaFai Lau [this message]
2025-10-14 23:24 ` Kuniyuki Iwashima
2025-10-07 0:07 ` [PATCH bpf-next/net 3/6] net: Introduce net.core.bypass_prot_mem sysctl Kuniyuki Iwashima
2025-10-09 23:13 ` Shakeel Butt
2025-10-10 14:24 ` Eric Dumazet
2025-10-07 0:07 ` [PATCH bpf-next/net 4/6] bpf: Support bpf_setsockopt() for BPF_CGROUP_INET_SOCK_CREATE Kuniyuki Iwashima
2025-10-07 0:07 ` [PATCH bpf-next/net 5/6] bpf: Introduce SK_BPF_BYPASS_PROT_MEM Kuniyuki Iwashima
2025-10-07 0:07 ` [PATCH bpf-next/net 6/6] selftest: bpf: Add test for sk->sk_bypass_prot_mem Kuniyuki Iwashima
2025-10-14 23:09 ` Martin KaFai Lau
2025-10-14 23:23 ` Kuniyuki Iwashima
2025-10-07 1:10 ` [PATCH bpf-next/net 0/6] bpf: Allow opt-out from sk->sk_prot->memory_allocated Roman Gushchin
2025-10-09 18:28 ` Martin KaFai Lau
2025-10-10 0:21 ` Shakeel Butt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c05e9b2c-ae5f-4607-821e-37f71b1dd1bb@linux.dev \
--to=martin.lau@linux.dev \
--cc=almasrymina@google.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=kuni1840@gmail.com \
--cc=kuniyu@google.com \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=roman.gushchin@linux.dev \
--cc=sdf@fomichev.me \
--cc=willemb@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).