]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab807f5b06e28f3b6d415a36bc6125bf58923a09
tree37574f8d10ef3031e667a16cbcc45096fa7a97a5
parent82da1f9637d3078dd775c7ec75dddff0974ece41
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