Skip to content

Commit

Permalink
Squash to "selftests/bpf: Add bpf_bkup scheduler & test"
Browse files Browse the repository at this point in the history
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) <[email protected]>
  • Loading branch information
matttbe authored and intel-lab-lkp committed Jul 17, 2024
1 parent 53e1c57 commit 9ce23b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/testing/selftests/bpf/progs/mptcp_bpf_bkup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9ce23b1

Please sign in to comment.