forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information
1 parent
4de9c89
commit d35661f
Showing
4 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,10 @@ | |
# SPDX-License-Identifier: GPL-2.0 | ||
# Author: Jesper Dangaard Brouer <[email protected]> | ||
|
||
TESTNAME=xdp_vlan | ||
# Allow wrapper scripts to name test | ||
if [ -z "$TESTNAME" ]; then | ||
TESTNAME=xdp_vlan | ||
fi | ||
|
||
# Default XDP mode | ||
XDP_MODE=xdpgeneric | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |