]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f0bc7f44e06f75be7447317f0c90c4e458e4253
treedda4bfc901f985c1b14b0a51a49c9f0e6c74bf8b
parent8b5143adf124b86cf54ad38eed81234c77af10ab
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