-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
selftests/xsk: xsk selftests - Bi-directional Sockets - SKB, DRV
Adds following tests: 1. AF_XDP SKB mode d. Bi-directional Sockets Configure sockets as bi-directional tx/rx sockets, sets up fill and completion rings on each socket, tx/rx in both directions. Only nopoll mode is used 2. AF_XDP DRV/Native mode d. Bi-directional Sockets * Only copy mode is supported because veth does not currently support zero-copy mode Signed-off-by: Weqaar Janjua <weqaar.a.janjua@intel.com>
- Loading branch information
1 parent
49cf69b
commit 471a399
Showing
7 changed files
with
124 additions
and
28 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
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,22 @@ | ||
#!/bin/bash | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright(c) 2020 Intel Corporation. | ||
|
||
#Includes | ||
. prereqs.sh | ||
. xskenv.sh | ||
|
||
TEST_NAME="DRV BIDIRECTIONAL SOCKETS" | ||
|
||
vethXDPnative ${VETH0} ${VETH1} ${NS1} | ||
|
||
params=("-N" "-B") | ||
execxdpxceiver params | ||
|
||
retval=$? | ||
test_status $retval "${TEST_NAME}" | ||
|
||
# Must be called in the last test to execute | ||
cleanup_exit ${VETH0} ${VETH1} ${NS1} | ||
|
||
test_exit $retval 0 |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright(c) 2020 Intel Corporation. | ||
|
||
#Includes | ||
. prereqs.sh | ||
. xskenv.sh | ||
|
||
TEST_NAME="SKB BIDIRECTIONAL SOCKETS" | ||
|
||
vethXDPgeneric ${VETH0} ${VETH1} ${NS1} | ||
|
||
params=("-S" "-B") | ||
execxdpxceiver params | ||
|
||
retval=$? | ||
test_status $retval "${TEST_NAME}" | ||
|
||
test_exit $retval 0 |
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