Skip to content

Commit f6be6b5

Browse files
D-WytheKernel Patches Daemon
authored andcommitted
bpf/selftests: add selftest for bpf_smc_hs_ctrl
This tests introduces a tiny smc_hs_ctrl for filtering SMC connections based on IP pairs, and also adds a realistic topology model to verify it. 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 <[email protected]> Tested-by: Saket Kumar Bhaskar <[email protected]> Reviewed-by: Zhu Yanjun <[email protected]>
1 parent cd660ee commit f6be6b5

File tree

3 files changed

+517
-0
lines changed

3 files changed

+517
-0
lines changed

tools/testing/selftests/bpf/config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,7 @@ CONFIG_XDP_SOCKETS=y
123123
CONFIG_XFRM_INTERFACE=y
124124
CONFIG_TCP_CONG_DCTCP=y
125125
CONFIG_TCP_CONG_BBR=y
126+
CONFIG_INFINIBAND=y
127+
CONFIG_SMC=y
128+
CONFIG_SMC_HS_CTRL_BPF=y
129+
CONFIG_SMC_LO=y

0 commit comments

Comments
 (0)