Skip to content

Commit

Permalink
mptcp: pm: send ACK on non stale subflows
Browse files Browse the repository at this point in the history
If the subflow is considered as "staled", it is better to avoid it to
send an ACK carrying an ADD_ADDR or RM_ADDR. Another subflow, if any,
will then be selected.

Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe authored and intel-lab-lkp committed Aug 3, 2024
1 parent 70eb7df commit ff9e6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mptcp/pm_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ void mptcp_pm_nl_addr_send_ack(struct mptcp_sock *msk)
return;

mptcp_for_each_subflow(msk, subflow) {
if (__mptcp_subflow_active(subflow)) {
if (!subflow->stale && __mptcp_subflow_active(subflow)) {
mptcp_pm_send_ack(msk, subflow, false, false);
break;
}
Expand Down

0 comments on commit ff9e6d7

Please sign in to comment.