-
Notifications
You must be signed in to change notification settings - Fork 5
net/smc: Introduce smc_hs_ctrl #6275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net/smc: Introduce smc_hs_ctrl #6275
Conversation
|
Upstream branch: ab01bfa |
9a71dd4 to
e4f505a
Compare
|
Upstream branch: e6e10c5 |
e210bd5 to
7f80201
Compare
e4f505a to
5119f01
Compare
|
Upstream branch: 5dae745 |
7f80201 to
f8822cd
Compare
5119f01 to
fe98223
Compare
|
Upstream branch: 11369e6 |
f8822cd to
b2b94ea
Compare
fe98223 to
6fe2c31
Compare
|
Upstream branch: efa4756 |
b2b94ea to
f8b0c27
Compare
6fe2c31 to
634398c
Compare
|
Upstream branch: b3387b3 |
f8b0c27 to
27af875
Compare
634398c to
c95b89c
Compare
|
Upstream branch: 4cb4897 |
Exports three necessary symbols for implementing struct_ops with tristate subsystem. To hold or release refcnt of struct_ops refcnt by inline funcs bpf_try_module_get and bpf_module_put which use bpf_struct_ops_get(put) conditionally. And to copy obj name from one to the other with effective checks by bpf_obj_name_cpy. Signed-off-by: D. Wythe <[email protected]>
The introduction of IPPROTO_SMC enables eBPF programs to determine whether to use SMC based on the context of socket creation, such as network namespaces, PID and comm name, etc. As a subsequent enhancement, to introduce a new generic hook that allows decisions on whether to use SMC or not at runtime, including but not limited to local/remote IP address or ports. User can write their own implememtion via bpf_struct_ops now to choose whether to use SMC or not before TCP 3rd handshake to be comleted. Signed-off-by: D. Wythe <[email protected]> Reviewed-by: Dust Li <[email protected]>
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]>
27af875 to
2a85917
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1018781 expired. Closing PR. |
Pull request for series with
subject: net/smc: Introduce smc_hs_ctrl
version: 4
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1018781