mptcp: optimize the input options processing
authorPaolo Abeni <pabeni@redhat.com>
Fri, 27 Aug 2021 00:44:53 +0000 (17:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Aug 2021 08:45:07 +0000 (09:45 +0100)
commitf6c2ef59bcc7e1fbe4ea6f9de7f6e0df178d5882
treeb98d4a4366e8bf69a793c912eec1db4ccda96128
parent74c7dfbee3e185b3c3a03f194e25689ed037fa3c
mptcp: optimize the input options processing

Most MPTCP packets carries a single MPTCP subption: the
DSS containing the mapping for the current packet.

Check explicitly for the above, so that is such scenario we
replace most conditional statements with a single likely() one.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/options.c