]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: Skip unnecessary skb extension allocation for bare acks
authorMat Martineau <mathew.j.martineau@linux.intel.com>
Tue, 28 Jul 2020 22:12:08 +0000 (15:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jul 2020 00:02:42 +0000 (17:02 -0700)
commit663e60ce35ebeea5dfa6a731d73bbf001128adb2
tree183eefce7826039fd91dd6e8f67db426222e6fb4
parenta88438d2e220caa36710fc1af5b4a4a87d98324e
mptcp: Skip unnecessary skb extension allocation for bare acks

Bare TCP ack skbs are freed right after MPTCP sees them, so the work to
allocate, zero, and populate the MPTCP skb extension is wasted. Detect
these skbs and do not add skb extensions to them.

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