]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add xdpdrv mode for test_xdp_redirect
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 29 Jul 2020 08:56:58 +0000 (16:56 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 30 Jul 2020 22:43:49 +0000 (00:43 +0200)
commit82881c9a48198ee7b2663f4ffc00b5fde13376fb
tree687745dddcf6caa1021d4939f5ec3f5fd8f46515
parentf682eb95411a7982f0a5873aa76fc8e32c91717d
selftests/bpf: Add xdpdrv mode for test_xdp_redirect

This patch add xdpdrv mode for test_xdp_redirect.sh since veth has support
native mode. After update here is the test result:

  # ./test_xdp_redirect.sh
  selftests: test_xdp_redirect xdpgeneric [PASS]
  selftests: test_xdp_redirect xdpdrv [PASS]

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: William Tu <u9012063@gmail.com>
Link: https://lore.kernel.org/bpf/20200729085658.403794-1-liuhangbin@gmail.com
tools/testing/selftests/bpf/test_xdp_redirect.sh