Message ID | 6fd9a8cd42485823f673d6dbae701dad45fb4dfa.1653033459.git.geliang.tang@suse.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
Series | BPF packet scheduler | expand |
Context | Check | Description |
---|---|---|
matttbe/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 13 lines checked |
matttbe/build | success | Build and static analysis OK |
matttbe/KVM_Validation__normal | warning | Unstable: 2 failed test(s): packetdrill_sockopts selftest_mptcp_join |
matttbe/KVM_Validation__debug | warning | Unstable: 2 failed test(s): selftest_diag selftest_mptcp_join - Critical: 11 Call Trace(s) - Critical: Global Timeout ❌ |
diff --git a/net/mptcp/bpf.c b/net/mptcp/bpf.c index 338146d173f4..8a19ee98c3ad 100644 --- a/net/mptcp/bpf.c +++ b/net/mptcp/bpf.c @@ -52,11 +52,8 @@ static int bpf_mptcp_sched_btf_struct_access(struct bpf_verifier_log *log, } switch (off) { - case offsetof(struct mptcp_sched_data, sock): - end = offsetofend(struct mptcp_sched_data, sock); - break; - case offsetof(struct mptcp_sched_data, call_again): - end = offsetofend(struct mptcp_sched_data, call_again); + case offsetof(struct mptcp_sched_data, bitmap): + end = offsetofend(struct mptcp_sched_data, bitmap); break; default: bpf_log(log, "no write support to mptcp_sched_data at off %d\n", off);
Use bitmap instead of sock in struct mptcp_sched_data. Signed-off-by: Geliang Tang <geliang.tang@suse.com> --- net/mptcp/bpf.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)