]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1f327921281b6938ddcc1ddf09ef66f271c2a39e
treeb98d4a4366e8bf69a793c912eec1db4ccda96128
parent8654f355ba075f341a57cbe2000eaec93d1a47f5
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