]> 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)
commit34f90cb5829454df41292acec72a629cce84851e
tree183eefce7826039fd91dd6e8f67db426222e6fb4
parent46c0147dc02087cd3886958aa6379c63a7741a8f
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