diff options
author | Paolo Abeni <pabeni@redhat.com> | 2020-03-27 22:48:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-30 07:14:48 +0200 |
commit | cc9d2566986692e5b6df1aac88fbf65fe340d432 (patch) | |
tree | 3aecfec84f8fa69a2314fe3bcc370274e8b4fab1 /net/mptcp/protocol.h | |
parent | mptcp: Implement path manager interface commands (diff) | |
download | linux-cc9d2566986692e5b6df1aac88fbf65fe340d432.tar.xz linux-cc9d2566986692e5b6df1aac88fbf65fe340d432.zip |
mptcp: update per unacked sequence on pkt reception
So that we keep per unacked sequence number consistent; since
we update per msk data, use an atomic64 cmpxchg() to protect
against concurrent updates from multiple subflows.
Initialize the snd_una at connect()/accept() time.
Co-developed-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 209bdaa43dda..29db05467cc3 100644 --- a/net/mptcp/protocol.h +++ b/net/mptcp/protocol.h @@ -147,6 +147,7 @@ struct mptcp_sock { u64 remote_key; u64 write_seq; u64 ack_seq; + atomic64_t snd_una; u32 token; unsigned long flags; bool can_ack; |