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

From: Maciej Fijalkowski <[email-masked]>
Date: Thu, 10 Jun 2021 00:07:13 +0200

On Wed, Jun 09, 2021 at 01:55:37PM +0000, Jussi Maki wrote:
> 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?

> 
> Signed-off-by: Jussi Maki <[email-masked]>
> ---
>  .../selftests/bpf/prog_tests/xdp_bonding.c    | 342 ++++++++++++++++++
>  tools/testing/selftests/bpf/vmtest.sh         |  30 +-
>  2 files changed, 360 insertions(+), 12 deletions(-)
>  create mode 100644 tools/testing/selftests/bpf/prog_tests/xdp_bonding.c