OSDN Git Service

mptcp: Use per-subflow storage for DATA_FIN sequence number
authorMat Martineau <mathew.j.martineau@linux.intel.com>
Fri, 28 Feb 2020 23:47:40 +0000 (15:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 01:01:43 +0000 (17:01 -0800)
commit76c42a29c0eb15ea3fdc9867a0a52e53fb4fbd76
treedda4bfc901f985c1b14b0a51a49c9f0e6c74bf8b
parent1954b86016cf8522970e1b7aba801233d777ec47
mptcp: Use per-subflow storage for DATA_FIN sequence number

Instead of reading the MPTCP-level sequence number when sending DATA_FIN,
store the data in the subflow so it can be safely accessed when the
subflow TCP headers are written to the packet without the MPTCP-level
lock held. This also allows the MPTCP-level socket to close individual
subflows without closing the MPTCP connection.

Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/options.c
net/mptcp/protocol.c
net/mptcp/protocol.h