diff options
author | Matthieu Baerts (NGI0) <matttbe@kernel.org> | 2024-07-27 12:01:24 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-07-30 10:27:29 +0200 |
commit | efd340bf3d7779a3a8ec954d8ec0fb8a10f24982 (patch) | |
tree | 54a61da08972b3a15e07e9cb7014bb7b49c49d5d /net/mptcp/protocol.h | |
parent | mptcp: sched: check both directions for backup (diff) | |
download | linux-efd340bf3d7779a3a8ec954d8ec0fb8a10f24982.tar.xz linux-efd340bf3d7779a3a8ec954d8ec0fb8a10f24982.zip |
mptcp: distinguish rcv vs sent backup flag in requests
When sending an MP_JOIN + SYN + ACK, it is possible to mark the subflow
as 'backup' by setting the flag with the same name. Before this patch,
the backup was set if the other peer set it in its MP_JOIN + SYN
request.
It is not correct: the backup flag should be set in the MPJ+SYN+ACK only
if the host asks for it, and not mirroring what was done by the other
peer. It is then required to have a dedicated bit for each direction,
similar to what is done in the subflow context.
Fixes: f296234c98a8 ("mptcp: Add handling of incoming MP_JOIN requests")
Cc: stable@vger.kernel.org
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/mptcp/protocol.h')
-rw-r--r-- | net/mptcp/protocol.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h index b11a4e50d52b..b8b25124e7de 100644 --- a/net/mptcp/protocol.h +++ b/net/mptcp/protocol.h @@ -448,6 +448,7 @@ struct mptcp_subflow_request_sock { u16 mp_capable : 1, mp_join : 1, backup : 1, + request_bkup : 1, csum_reqd : 1, allow_join_id0 : 1; u8 local_id; |