mptcp: reduce branching when writing MP_FAIL option
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Thu, 3 Feb 2022 01:03:38 +0000 (17:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Feb 2022 11:44:08 +0000 (11:44 +0000)
commit902c8f8648828c9293533cc54393f163fb594d06
tree37574f8d10ef3031e667a16cbcc45096fa7a97a5
parentd7889cfa0b892dfe2a44f72c866ddf41ca19f048
mptcp: reduce branching when writing MP_FAIL option

MP_FAIL should be use in very rare cases, either when the TCP RST flag
is set -- with or without an MP_RST -- or with a DSS, see
mptcp_established_options().

Here, we do the same in mptcp_write_options().

Co-developed-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/options.c