Commit 90fbb76
Squash to "bpf: Register mptcp common kfunc set"
Drop bpf_mptcp_sk() and bpf_mptcp_subflow_tcp_sock() definitions. Use
bpf_skc_to_mptcp_sock() and mptcp_subflow_tcp_sock() in mptcp_subflow
bpf_iter selftests instead.
Address Martin's comments in v1:
- add null-check for bpf_mptcp_subflow_ctx.
- add KF_RET_NULL flags for bpf_mptcp_subflow_ctx.
- register this kfunc set to BPF_PROG_TYPE_CGROUP_SOCKOPT only,
not BPF_PROG_TYPE_UNSPEC.
Signed-off-by: Geliang Tang <[email protected]>1 parent 4e6f56c commit 90fbb76
1 file changed
+6
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | 225 | | |
231 | 226 | | |
232 | 227 | | |
233 | | - | |
234 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
235 | 231 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
| 232 | + | |
240 | 233 | | |
241 | 234 | | |
242 | 235 | | |
| |||
305 | 298 | | |
306 | 299 | | |
307 | 300 | | |
308 | | - | |
309 | | - | |
310 | | - | |
| 301 | + | |
311 | 302 | | |
312 | 303 | | |
313 | 304 | | |
| |||
341 | 332 | | |
342 | 333 | | |
343 | 334 | | |
344 | | - | |
| 335 | + | |
345 | 336 | | |
346 | 337 | | |
347 | 338 | | |
| |||
0 commit comments