From: Martin KaFai Lau <martin.lau@linux.dev>
To: Miao Xu <miaxu@meta.com>
Cc: 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>,
netdev@vger.kernel.org, bpf@vger.kernel.org
Subject: Re: [PATCH net-next v3 3/3] selftests/bpf: Add test for the use of new args in cong_control
Date: Thu, 2 May 2024 16:39:07 -0700 [thread overview]
Message-ID: <dc051219-5da9-4de9-87fc-82db4c870c3e@linux.dev> (raw)
In-Reply-To: <20240502042318.801932-4-miaxu@meta.com>
On 5/1/24 9:23 PM, Miao Xu wrote:
> This patch adds a selftest to show the usage of the new arguments in
> cong_control. For simplicity's sake, the testing example reuses cubic's
> kernel functions.
> ---
> Changes in v3:
> * Renamed the selftest file and the bpf struct_ops' name.
> * Minor changes such as removing unused comments.
>
> Changes in v2:
> * Added highlights to explain major differences between the bpf program
> and tcp_cubic.c.
> * bpf_tcp_helpers.h should not be further extended, so remove the
> dependency on this file. Use vmlinux.h instead.
> * Minor changes such as indentation.
>
> Signed-off-by: Miao Xu <miaxu@meta.com>
> ---
> .../selftests/bpf/progs/bpf_cc_cubic.c | 206 ++++++++++++++++++
I just noticed that the bpf_cc_cubic is not run by the test_progs. I have added
a test to prog_tests/bpf_tcp_ca.c to do that.
I also fixed up your SOB.
Applied. Thanks.
> .../selftests/bpf/progs/bpf_tracing_net.h | 10 +
> 2 files changed, 216 insertions(+)
> create mode 100644 tools/testing/selftests/bpf/progs/bpf_cc_cubic.c
next prev parent reply other threads:[~2024-05-02 23:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-02 4:23 [PATCH net-next v3 0/3] Add new args into tcp_congestion_ops' cong_control Miao Xu
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 [this message]
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=dc051219-5da9-4de9-87fc-82db4c870c3e@linux.dev \
--to=martin.lau@linux.dev \
--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=miaxu@meta.com \
--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