From 1b289d91272e9edd9b2a9ea99d8e6f1a8fa344f3 Mon Sep 17 00:00:00 2001 From: "Matthieu Baerts (NGI0)" Date: Thu, 11 Jul 2024 17:39:02 +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; }