From: Stanislav Fomichev <stfomichev@gmail.com>
To: "Vyavahare, Tushar" <tushar.vyavahare@intel.com>
Cc: "bpf@vger.kernel.org" <bpf@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"bjorn@kernel.org" <bjorn@kernel.org>,
"Karlsson, Magnus" <magnus.karlsson@intel.com>,
"Fijalkowski, Maciej" <maciej.fijalkowski@intel.com>,
"jonathan.lemon@gmail.com" <jonathan.lemon@gmail.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"kuba@kernel.org" <kuba@kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"ast@kernel.org" <ast@kernel.org>,
"daniel@iogearbox.net" <daniel@iogearbox.net>
Subject: Re: [PATCH bpf-next 2/6] selftests/xsk: Add tail adjustment functionality to XDP
Date: Tue, 25 Feb 2025 14:37:21 -0800 [thread overview]
Message-ID: <Z75GIb_EtzKEKTaY@mini-arch> (raw)
In-Reply-To: <IA1PR11MB651473D6A9F11317CA7A01778FC32@IA1PR11MB6514.namprd11.prod.outlook.com>
On 02/25, Vyavahare, Tushar wrote:
>
>
> > -----Original Message-----
> > From: Stanislav Fomichev <stfomichev@gmail.com>
> > Sent: Thursday, February 20, 2025 11:17 PM
> > To: Vyavahare, Tushar <tushar.vyavahare@intel.com>
> > Cc: bpf@vger.kernel.org; netdev@vger.kernel.org; bjorn@kernel.org; Karlsson,
> > Magnus <magnus.karlsson@intel.com>; Fijalkowski, Maciej
> > <maciej.fijalkowski@intel.com>; jonathan.lemon@gmail.com;
> > davem@davemloft.net; kuba@kernel.org; pabeni@redhat.com; ast@kernel.org;
> > daniel@iogearbox.net
> > Subject: Re: [PATCH bpf-next 2/6] selftests/xsk: Add tail adjustment functionality
> > to XDP
> >
> > On 02/20, Tushar Vyavahare wrote:
> > > Introduce a new function, xsk_xdp_adjust_tail, within the XDP program
> > > to adjust the tail of packets. This function utilizes
> > > bpf_xdp_adjust_tail to modify the packet size dynamically based on the 'count'
> > variable.
> > >
> > > If the adjustment fails, the packet is dropped using XDP_DROP to
> > > ensure processing of only correctly modified packets.
> > >
> > > Signed-off-by: Tushar Vyavahare <tushar.vyavahare@intel.com>
> >
> > Any reason not to combine patches 2..5 into a single one? I looked through each
> > one briefly and it's a bit hard to follow when trying to put everything together..
>
> Maybe that was too many patches. How about this?
>
> #1: selftests/xsk: Add packet stream replacement function
> #2: selftests/xsk: Add tail adjustment test functionality to AF_XDP.
> #3: selftests/xsk: Add support check for bpf_xdp_adjust_tail() helper in
> xskxceiver
> #4: selftests/xsk: Implement and test packet resizing with
> bpf_xdp_adjust_tail
Even that might be too much. #1 is clearly refactoring - keep it separate. The
rest seems like it belongs to the same testcase(s)? I'd put patches 2,3,4,5,6
in the same patch.
For example, you add bpf xsk_xdp_adjust_tail function, but there are
not callers in the same patch, so it's not clear what's the context.
Same for testapp_xdp_adjust_tail - there is no caller, so the reader
needs to go to the next patch to put it all together. Same for
testapp_adjust_tail...
next prev parent reply other threads:[~2025-02-25 22:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-20 8:41 [PATCH bpf-next 0/6] selftests/xsk: Add tests for XDP tail adjustment in AF_XDP Tushar Vyavahare
2025-02-20 8:41 ` [PATCH bpf-next 1/6] selftests/xsk: Add packet stream replacement functions Tushar Vyavahare
2025-02-20 17:45 ` Stanislav Fomichev
2025-02-25 15:57 ` Vyavahare, Tushar
2025-02-20 8:41 ` [PATCH bpf-next 2/6] selftests/xsk: Add tail adjustment functionality to XDP Tushar Vyavahare
2025-02-20 17:46 ` Stanislav Fomichev
2025-02-25 15:58 ` Vyavahare, Tushar
2025-02-25 22:37 ` Stanislav Fomichev [this message]
2025-02-26 12:23 ` Vyavahare, Tushar
2025-02-20 8:41 ` [PATCH bpf-next 3/6] selftests/xsk: Add testapp_xdp_adjust_tail function to userspace for packet tail adjustment Tushar Vyavahare
2025-02-20 8:41 ` [PATCH bpf-next 4/6] selftests/xsk: Add support check for bpf_xdp_adjust_tail() helper in xskxceiver Tushar Vyavahare
2025-02-20 8:41 ` [PATCH bpf-next 5/6] selftests/xsk: Implement packet resizing test with bpf_xdp_adjust_tail Tushar Vyavahare
2025-02-20 8:41 ` [PATCH bpf-next 6/6] selftests/xsk: Add packet resizing tests with bpf_xdp_adjust_tail for AF_XDP Tushar Vyavahare
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=Z75GIb_EtzKEKTaY@mini-arch \
--to=stfomichev@gmail.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=maciej.fijalkowski@intel.com \
--cc=magnus.karlsson@intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.