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)
commitdfdb0d93e5bc351af5b286ae9c630d3cf869b810
tree687745dddcf6caa1021d4939f5ec3f5fd8f46515
parent4fb5f94911405b6d2645d4384c2ae1215bfc6a76
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