mptcp: fix fallback for MP_JOIN subflows
authorPaolo Abeni <pabeni@redhat.com>
Fri, 9 Oct 2020 17:00:00 +0000 (19:00 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Oct 2020 18:04:53 +0000 (11:04 -0700)
commitd582484726c4c46c8580923e855665fb91e3463e
tree0d9af930de2074da56d00ea3402a571ae0de6a58
parent16cb3653803dee243547f95cb51f01bec1323cdf
mptcp: fix fallback for MP_JOIN subflows

Additional/MP_JOIN subflows that do not pass some initial handshake
tests currently causes fallback to TCP. That is an RFC violation:
we should instead reset the subflow and leave the the msk untouched.

Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/91
Fixes: f296234c98a8 ("mptcp: Add handling of incoming MP_JOIN requests")
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/options.c
net/mptcp/protocol.h
net/mptcp/subflow.c