Commit beb3c67
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]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Tested-by: Saket Kumar Bhaskar <[email protected]>
Reviewed-by: Zhu Yanjun <[email protected]>
Link: https://patch.msgid.link/[email protected]1 parent 15f295f commit beb3c67
File tree
3 files changed
+512
-0
lines changed- tools/testing/selftests/bpf
- prog_tests
- progs
3 files changed
+512
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
0 commit comments