Commit 7f80201
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 6b5c02e commit 7f80201
File tree
3 files changed
+518
-0
lines changed- tools/testing/selftests/bpf
- prog_tests
- progs
3 files changed
+518
-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