From: Miao Xu <miaxu@meta.com>
To: Eric Dumazet <edumazet@google.com>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
David Ahern <dsahern@kernel.org>, Martin Lau <kafai@meta.com>
Cc: <netdev@vger.kernel.org>, <bpf@vger.kernel.org>,
Miao Xu <miaxu@meta.com>
Subject: [PATCH net-next v3 0/3] Add new args into tcp_congestion_ops' cong_control
Date: Wed, 1 May 2024 21:23:15 -0700 [thread overview]
Message-ID: <20240502042318.801932-1-miaxu@meta.com> (raw)
This patchset attempts to add two new arguments into the hookpoint
cong_control in tcp_congestion_ops. The new arguments are inherited
from the caller tcp_cong_control and can be used by any bpf cc prog
that implements its own logic inside this hookpoint.
Please review. Thanks a lot!
Changelog
=====
v2->v3:
- Fixed the broken selftest caused by the new arguments.
- Renamed the selftest file name and bpf prog name.
v1->v2:
- Split the patchset into 3 separate patches.
- Added highlights in the selftest prog.
- Removed the dependency on bpf_tcp_helpers.h.
Miao Xu (3):
tcp: Add new args for cong_control in tcp_congestion_ops
bpf: tcp: Allow to write tp->snd_cwnd_stamp in bpf_tcp_ca
selftests/bpf: Add test for the use of new args in cong_control
include/net/tcp.h | 2 +-
net/ipv4/bpf_tcp_ca.c | 6 +-
net/ipv4/tcp_bbr.c | 2 +-
net/ipv4/tcp_input.c | 2 +-
.../selftests/bpf/progs/bpf_cc_cubic.c | 206 ++++++++++++++++++
.../selftests/bpf/progs/bpf_tracing_net.h | 10 +
.../selftests/bpf/progs/tcp_ca_kfunc.c | 6 +-
7 files changed, 227 insertions(+), 7 deletions(-)
create mode 100644 tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
--
2.43.0
next reply other threads:[~2024-05-02 4:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-02 4:23 Miao Xu [this message]
2024-05-02 4:23 ` [PATCH net-next v3 1/3] tcp: Add new args for cong_control in tcp_congestion_ops Miao Xu
2024-05-02 4:23 ` [PATCH net-next v3 2/3] bpf: tcp: Allow to write tp->snd_cwnd_stamp in bpf_tcp_ca Miao Xu
2024-05-02 4:23 ` [PATCH net-next v3 3/3] selftests/bpf: Add test for the use of new args in cong_control Miao Xu
2024-05-02 23:39 ` Martin KaFai Lau
2024-05-02 23:40 ` [PATCH net-next v3 0/3] Add new args into tcp_congestion_ops' cong_control patchwork-bot+netdevbpf
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=20240502042318.801932-1-miaxu@meta.com \
--to=miaxu@meta.com \
--cc=bpf@vger.kernel.org \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=kafai@meta.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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 read-only IMAP folder(s) and NNTP newsgroup(s).