Thread (11 messages) flat view 11 messages, 4 authors, 2020-12-10

Re: [PATCH bpf-next v4 2/5] selftests/bpf: xsk selftests - SKB POLL, NOPOLL

From: Yonghong Song <hidden>
Date: 2020-12-09 18:30:29
Also in: bpf, linux-kselftest


On 12/7/20 1:53 PM, Weqaar Janjua wrote:
quoted hunk ↗ jump to hunk
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 <redacted>
---
  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
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help