Thread (71 messages) 71 messages, 8 authors, 2021-08-16

Re: [PATCH bpf-next 3/3] selftests/bpf: Add tests for XDP bonding

From: Magnus Karlsson <hidden>
Date: 2021-06-14 08:49:22
Also in: bpf

On Mon, Jun 14, 2021 at 10:09 AM Jussi Maki [off-list ref] wrote:
On Thu, Jun 10, 2021 at 12:19 AM Maciej Fijalkowski
[off-list ref] wrote:
quoted
On Wed, Jun 09, 2021 at 01:55:37PM +0000, Jussi Maki wrote:
quoted
Add a test suite to test XDP bonding implementation
over a pair of veth devices.
Cc: Magnus

Jussi,
AF_XDP selftests have very similar functionality just like you are trying
to introduce over here, e.g. we setup veth pair and generate traffic.
After a quick look seems that we could have a generic layer that would
be used by both AF_XDP and bonding selftests.

WDYT?
Sounds like a good idea to me to have more shared code in the
selftests and I don't see a reason not to use the AF_XDP datapath in
the bonding selftests. I'll look into it this week and get back to
you.
Note, that I am currently rewriting a large part of the AF_XDP
selftests making it more amenable to adding various tests. A test is
in my patch set is described as a set of packets to send, a set of
packets that should be received in a certain order with specified
contents, and configuration/setup information for the sender and
receiver. The current code is riddled with test specific if-statements
that make it hard to extend and use generically. So please hold off
for a week or so and review my patch set when I send it to the list.
Better use of your time. Hopefully we can make it fit your bill too
with not too much work.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help