]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: allocate TX skbs in msk context
authorPaolo Abeni <pabeni@redhat.com>
Fri, 27 Nov 2020 10:10:25 +0000 (11:10 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Dec 2020 01:55:23 +0000 (17:55 -0800)
commit34b5fd1b9a92566cf181fd0cbaa93640c3969ffa
treebc20eef7f1b15ade94272507580913bc32a30543
parenta36646350e93a581ba378fa10b5816dba183a930
mptcp: allocate TX skbs in msk context

Move the TX skbs allocation in mptcp_sendmsg() scope,
and tentatively pre-allocate a skbs number proportional
to the sendmsg() length.

Use the ssk tx skb cache to prevent the subflow allocation.

This allows removing the msk skb extension cache and will
make possible the later patches.

Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c
net/mptcp/protocol.h