]> 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)
commit0675b1b5346d66baa1904da4d99efe2050360def
treeb98d4a4366e8bf69a793c912eec1db4ccda96128
parentacbb356c0e2f78bd262a702538eb094a14b4b2a8
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