mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 22:54:05 +08:00
selftests/bpf: add wrapper scripts for test_xdp_vlan.sh
In-order to test both native-XDP (xdpdrv) and generic-XDP (xdpgeneric) create two wrapper test scripts, that start the test_xdp_vlan.sh script with these modes. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4de9c89a49
commit
d35661fcf9
@ -57,7 +57,8 @@ TEST_PROGS := test_kmod.sh \
|
||||
test_lirc_mode2.sh \
|
||||
test_skb_cgroup_id.sh \
|
||||
test_flow_dissector.sh \
|
||||
test_xdp_vlan.sh \
|
||||
test_xdp_vlan_mode_generic.sh \
|
||||
test_xdp_vlan_mode_native.sh \
|
||||
test_lwt_ip_encap.sh \
|
||||
test_tcp_check_syncookie.sh \
|
||||
test_tc_tunnel.sh \
|
||||
|
@ -2,7 +2,10 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Author: Jesper Dangaard Brouer <hawk@kernel.org>
|
||||
|
||||
TESTNAME=xdp_vlan
|
||||
# Allow wrapper scripts to name test
|
||||
if [ -z "$TESTNAME" ]; then
|
||||
TESTNAME=xdp_vlan
|
||||
fi
|
||||
|
||||
# Default XDP mode
|
||||
XDP_MODE=xdpgeneric
|
||||
|
9
tools/testing/selftests/bpf/test_xdp_vlan_mode_generic.sh
Executable file
9
tools/testing/selftests/bpf/test_xdp_vlan_mode_generic.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
# Exit on failure
|
||||
set -e
|
||||
|
||||
# Wrapper script to test generic-XDP
|
||||
export TESTNAME=xdp_vlan_mode_generic
|
||||
./test_xdp_vlan.sh --mode=xdpgeneric
|
9
tools/testing/selftests/bpf/test_xdp_vlan_mode_native.sh
Executable file
9
tools/testing/selftests/bpf/test_xdp_vlan_mode_native.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
# Exit on failure
|
||||
set -e
|
||||
|
||||
# Wrapper script to test native-XDP
|
||||
export TESTNAME=xdp_vlan_mode_native
|
||||
./test_xdp_vlan.sh --mode=xdpdrv
|
Loading…
Reference in New Issue
Block a user