Skip to content

Commit

Permalink
bpf/selftests: add selftest for bpf_smc_ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
D. Wythe authored and Kernel Patches Daemon committed Jan 17, 2025
1 parent 7071ba8 commit a3b062d
Show file tree
Hide file tree
Showing 3 changed files with 518 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/testing/selftests/bpf/config
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,7 @@ CONFIG_XDP_SOCKETS=y
CONFIG_XFRM_INTERFACE=y
CONFIG_TCP_CONG_DCTCP=y
CONFIG_TCP_CONG_BBR=y
CONFIG_INFINIBAND=y
CONFIG_SMC=y
CONFIG_SMC_OPS=y
CONFIG_SMC_LO=y
Loading

0 comments on commit a3b062d

Please sign in to comment.