]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit06827b348b1d43850a63c3e490fe9712c124fa0c
tree183eefce7826039fd91dd6e8f67db426222e6fb4
parent067a0b3dc52f0f79b9fe64ff8d9bcbb0ffbcf8fc
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