Commit c0baff0
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 785ca0c commit c0baff0
1 file changed
+5
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | 221 | | |
227 | 222 | | |
228 | 223 | | |
229 | | - | |
230 | | - | |
| 224 | + | |
| 225 | + | |
231 | 226 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
| 227 | + | |
236 | 228 | | |
237 | 229 | | |
238 | 230 | | |
| |||
301 | 293 | | |
302 | 294 | | |
303 | 295 | | |
304 | | - | |
305 | | - | |
306 | | - | |
| 296 | + | |
307 | 297 | | |
308 | 298 | | |
309 | 299 | | |
| |||
337 | 327 | | |
338 | 328 | | |
339 | 329 | | |
340 | | - | |
| 330 | + | |
341 | 331 | | |
342 | 332 | | |
343 | 333 | | |
| |||
0 commit comments