[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <760489c0-f935-437d-6213-6e8775693bbc@fb.com>
Date: Wed, 9 Dec 2020 10:29:25 -0800
From: Yonghong Song <yhs@...com>
To: Weqaar Janjua <weqaar.janjua@...il.com>, <bpf@...r.kernel.org>,
<netdev@...r.kernel.org>, <daniel@...earbox.net>, <ast@...nel.org>,
<magnus.karlsson@...il.com>, <bjorn.topel@...el.com>
CC: Weqaar Janjua <weqaar.a.janjua@...el.com>, <shuah@...nel.org>,
<skhan@...uxfoundation.org>, <linux-kselftest@...r.kernel.org>,
<anders.roxell@...aro.org>, <jonathan.lemon@...il.com>
Subject: Re: [PATCH bpf-next v4 2/5] selftests/bpf: xsk selftests - SKB POLL,
NOPOLL
On 12/7/20 1:53 PM, Weqaar Janjua wrote:
> Adds following tests:
>
> 1. AF_XDP SKB mode
> Generic mode XDP is driver independent, used when the driver does
> not have support for XDP. Works on any netdevice using sockets and
> generic XDP path. XDP hook from netif_receive_skb().
> a. nopoll - soft-irq processing
> b. poll - using poll() syscall
>
> Signed-off-by: Weqaar Janjua <weqaar.a.janjua@...el.com>
> ---
> tools/testing/selftests/bpf/Makefile | 3 +-
> tools/testing/selftests/bpf/test_xsk.sh | 39 +-
> tools/testing/selftests/bpf/xdpxceiver.c | 979 +++++++++++++++++++++
> tools/testing/selftests/bpf/xdpxceiver.h | 153 ++++
> tools/testing/selftests/bpf/xsk_prereqs.sh | 16 +
> 5 files changed, 1187 insertions(+), 3 deletions(-)
> create mode 100644 tools/testing/selftests/bpf/xdpxceiver.c
> create mode 100644 tools/testing/selftests/bpf/xdpxceiver.h
>
> diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile
> index 6a1ddfe68f15..944ae17a39ed 100644
> --- a/tools/testing/selftests/bpf/Makefile
> +++ b/tools/testing/selftests/bpf/Makefile
> @@ -82,7 +82,8 @@ TEST_PROGS_EXTENDED := with_addr.sh \
> # Compile but not part of 'make run_tests'
> TEST_GEN_PROGS_EXTENDED = test_sock_addr test_skb_cgroup_id_user \
> flow_dissector_load test_flow_dissector test_tcp_check_syncookie_user \
> - test_lirc_mode2_user xdping test_cpp runqslower bench bpf_testmod.ko
> + test_lirc_mode2_user xdping test_cpp runqslower bench bpf_testmod.ko \
> + xdpxceiver
Could you have a patch to put xdpxceiver in .gitignore?
I see below:
Untracked files:
(use "git add <file>..." to include in what will be committed)
tools/testing/selftests/bpf/xdpxceiver
>
> TEST_CUSTOM_PROGS = urandom_read
>
Powered by blists - more mailing lists