Skip to content

Commit 0558f46

Browse files
Geliang Tangintel-lab-lkp
authored andcommitted
Squash to "bpf: Add bpf_mptcp_sched_ops"
The helper mptcp_subflow_set_scheduled() is used to update the scheduled flags of a subflow. BPF schedulers are not allowed to directly modify this flags. So the write access permission for this flag shouldn't be allow. Signed-off-by: Geliang Tang <[email protected]>
1 parent 12be656 commit 0558f46

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

net/mptcp/bpf.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ static int bpf_mptcp_sched_btf_struct_access(struct bpf_verifier_log *log,
6060
}
6161
} else if (t == mptcp_subflow_type) {
6262
switch (off) {
63-
case offsetof(struct mptcp_subflow_context, scheduled):
64-
end = offsetofend(struct mptcp_subflow_context, scheduled);
65-
break;
6663
case offsetof(struct mptcp_subflow_context, avg_pacing_rate):
6764
end = offsetofend(struct mptcp_subflow_context, avg_pacing_rate);
6865
break;

0 commit comments

Comments
 (0)