Skip to content

Commit

Permalink
mptcp: drop subflow contexts in mptcp_sched_data
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Geliang Tang authored and intel-lab-lkp committed Oct 23, 2024
1 parent be977ba commit 5afe977
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/net/mptcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ struct mptcp_out_options {

struct mptcp_sched_data {
bool reinject;
u8 subflows;
struct mptcp_subflow_context *contexts[MPTCP_SUBFLOWS_MAX];
};

struct mptcp_sched_ops {
Expand Down

0 comments on commit 5afe977

Please sign in to comment.