From: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
To: Tushar Vyavahare <tushar.vyavahare@intel.com>
Cc: <bpf@vger.kernel.org>, <netdev@vger.kernel.org>,
<bjorn@kernel.org>, <magnus.karlsson@intel.com>,
<jonathan.lemon@gmail.com>, <davem@davemloft.net>,
<kuba@kernel.org>, <pabeni@redhat.com>, <ast@kernel.org>,
<daniel@iogearbox.net>, <tirthendu.sarkar@intel.com>
Subject: Re: [PATCH bpf-next v4 0/2] selftests/xsk: Add tests for XDP tail adjustment in AF_XDP
Date: Tue, 8 Apr 2025 18:54:20 +0200 [thread overview]
Message-ID: <Z/VUvPIxGVJ5dRic@boxer> (raw)
In-Reply-To: <20250321005419.684036-1-tushar.vyavahare@intel.com>
On Fri, Mar 21, 2025 at 12:54:17AM +0000, Tushar Vyavahare wrote:
> This patch series adds tests to validate the XDP tail adjustment
> functionality, focusing on its use within the AF_XDP context. The tests
> verify dynamic packet size manipulation using the bpf_xdp_adjust_tail()
> helper function, covering both single and multi-buffer scenarios.
>
> v1 -> v2:
> 1. Retain and extend stream replacement: Keep `pkt_stream_replace`
> unchanged. Add `pkt_stream_replace_ifobject` for targeted ifobject
> handling.
>
> 2. Consolidate patches: Merge patches 2 to 6 for tail adjustment tests and
> check.
>
> v2 -> v3:
> 1. Introduce `adjust_value` to replace `count` for clearer communication
> with userspace.
>
> v3 -> v4:
> 1. Remove `testapp_adjust_tail_common()`. [Maciej]
>
> 2. Add comments and modify code for buffer resizing logic in test cases
> (shrink/grow by specific byte sizes for testing purposes). [Maciej]
Hi BPF maintainers,
could we merge this patch set as i have acked the patches? Or is there
something that stops us? I suppose this might have slipped during the
merge window?
Thanks,
Maciej
>
> ---
> Patch Summary:
>
> 1. Packet stream replacement: Add `pkt_stream_replace_ifobject` to manage
> packet streams efficiently.
>
> 2. Tail adjustment tests and support check: Implement dynamic packet
> resizing in xskxceiver by adding `xsk_xdp_adjust_tail` and extend this
> functionality to userspace with `testapp_xdp_adjust_tail` for
> validation. Ensure support by adding `is_adjust_tail_supported` to
> verify the availability of `bpf_xdp_adjust_tail()`. Introduce tests for
> shrinking and growing packets using `bpf_xdp_adjust_tail()`, covering
> both single and multi-buffer scenarios when used with AF_XDP.
> ---
>
> Tushar Vyavahare (2):
> selftests/xsk: Add packet stream replacement function
> selftests/xsk: Add tail adjustment tests and support check
>
> Signed-off-by: Tushar Vyavahare <tushar.vyavahare@intel.com>
>
> .../selftests/bpf/progs/xsk_xdp_progs.c | 50 ++++++++
> tools/testing/selftests/bpf/xsk_xdp_common.h | 1 +
> tools/testing/selftests/bpf/xskxceiver.c | 118 ++++++++++++++++--
> tools/testing/selftests/bpf/xskxceiver.h | 2 +
> 4 files changed, 163 insertions(+), 8 deletions(-)
>
> --
> 2.34.1
>
next prev parent reply other threads:[~2025-04-08 16:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-21 0:54 [PATCH bpf-next v4 0/2] selftests/xsk: Add tests for XDP tail adjustment in AF_XDP Tushar Vyavahare
2025-03-21 0:54 ` [PATCH bpf-next v4 1/2] selftests/xsk: Add packet stream replacement function Tushar Vyavahare
2025-03-22 13:02 ` Maciej Fijalkowski
2025-03-21 0:54 ` [PATCH bpf-next v4 2/2] selftests/xsk: Add tail adjustment tests and support check Tushar Vyavahare
2025-03-22 13:14 ` Maciej Fijalkowski
2025-03-24 12:32 ` Bastien Curutchet
2025-04-08 16:54 ` Maciej Fijalkowski [this message]
2025-04-09 15:37 ` [PATCH bpf-next v4 0/2] selftests/xsk: Add tests for XDP tail adjustment in AF_XDP Alexei Starovoitov
-- strict thread matches above, loose matches on Subject: below --
2025-04-10 3:31 Tushar Vyavahare
2025-04-10 17:20 ` patchwork-bot+netdevbpf
2025-05-28 2:27 ` Vyavahare, Tushar
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=Z/VUvPIxGVJ5dRic@boxer \
--to=maciej.fijalkowski@intel.com \
--cc=ast@kernel.org \
--cc=bjorn@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=jonathan.lemon@gmail.com \
--cc=kuba@kernel.org \
--cc=magnus.karlsson@intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=tirthendu.sarkar@intel.com \
--cc=tushar.vyavahare@intel.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).