Skip to content

Commit bb978fe

Browse files
Geliang Tangintel-lab-lkp
authored andcommitted
mptcp: drop subflow contexts in mptcp_sched_data
The mptcp_subflow bpf_iter is added now, it's better to use the helper bpf_for_each(mptcp_subflow) to traverse all subflows on the conn_list of an MPTCP socket and then call kfunc to modify the fields of each subflow in the WIP MPTCP BPF packet scheduler examples, instead of converting them to a fixed array. With this helper, we can get rid of this subflow array "contexts" and the size of it "subflows" in struct mptcp_sched_data. Signed-off-by: Geliang Tang <[email protected]>
1 parent eab4f70 commit bb978fe

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/net/mptcp.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ struct mptcp_out_options {
104104

105105
struct mptcp_sched_data {
106106
bool reinject;
107-
u8 subflows;
108-
struct mptcp_subflow_context *contexts[MPTCP_SUBFLOWS_MAX];
109107
};
110108

111109
struct mptcp_sched_ops {

0 commit comments

Comments
 (0)