]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: keep unaccepted MPC subflow into join list
authorPaolo Abeni <pabeni@redhat.com>
Thu, 19 Nov 2020 19:45:58 +0000 (11:45 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Nov 2020 23:33:25 +0000 (15:33 -0800)
commit539014ea338fe1352c27f7a2b0050ef97d1d4dc9
tree90031b947c2f47edfd06a7111f42b0ccee982d61
parent07e3224f038e73bb3f835f3f5dab64138bdfa5b4
mptcp: keep unaccepted MPC subflow into join list

This will simplify all operation dealing with subflows
before accept time (e.g. data fin processing, add_addr).

The join list is already flushed by mptcp_stream_accept()
before returning the newly created msk to the user space.

This also fixes an potential bug present into the old code:
conn_list was manipulated without helding the msk lock
in mptcp_stream_accept().

Tested-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c