Skip to content

Commit 26b6ab3

Browse files
D. WytheKernel Patches Daemon
authored andcommitted
bpf/selftests: add selftest for bpf_smc_ops
This tests introduces a tiny smc_ops for filtering SMC connections based on IP pairs, and also adds a realistic topology model to verify this ops. Also, we can only use SMC loopback under CI test, so an additional configuration needs to be enabled. Follow the steps below to run this test. make -C tools/testing/selftests/bpf cd tools/testing/selftests/bpf sudo ./test_progs -t smc Results shows: Summary: 1/1 PASSED, 0 SKIPPED, 0 FAILED Signed-off-by: D. Wythe <alibuda@linux.alibaba.com>
1 parent 61e034d commit 26b6ab3

File tree

3 files changed

+518
-0
lines changed

3 files changed

+518
-0
lines changed

tools/testing/selftests/bpf/config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,7 @@ CONFIG_XDP_SOCKETS=y
113113
CONFIG_XFRM_INTERFACE=y
114114
CONFIG_TCP_CONG_DCTCP=y
115115
CONFIG_TCP_CONG_BBR=y
116+
CONFIG_INFINIBAND=y
117+
CONFIG_SMC=y
118+
CONFIG_SMC_OPS=y
119+
CONFIG_SMC_LO=y

0 commit comments

Comments
 (0)