From 9ce23b1d24e400eb3ebb895af39549c84cc48b65 Mon Sep 17 00:00:00 2001 From: "Matthieu Baerts (NGI0)" Date: Tue, 16 Jul 2024 22:53:20 +0200 Subject: [PATCH] Squash to "selftests/bpf: Add bpf_bkup scheduler & test" Similar to "mptcp: sched: check both directions for backup": it didn't matter before because the two flags were very likely set by accident. But that's no longer the case now. Signed-off-by: Matthieu Baerts (NGI0) --- tools/testing/selftests/bpf/progs/mptcp_bpf_bkup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/progs/mptcp_bpf_bkup.c b/tools/testing/selftests/bpf/progs/mptcp_bpf_bkup.c index 14091bcc4cdeb6..296f0318d84326 100644 --- a/tools/testing/selftests/bpf/progs/mptcp_bpf_bkup.c +++ b/tools/testing/selftests/bpf/progs/mptcp_bpf_bkup.c @@ -29,7 +29,8 @@ int BPF_PROG(bpf_bkup_get_subflow, struct mptcp_sock *msk, if (!subflow) break; - if (!BPF_CORE_READ_BITFIELD_PROBED(subflow, backup)) { + if (!BPF_CORE_READ_BITFIELD_PROBED(subflow, backup) || + !BPF_CORE_READ_BITFIELD_PROBED(subflow, request_bkup)) { nr = i; break; }