]> www.infradead.org Git - users/willy/xarray.git/commit
mptcp: use copy_from_iter helpers on transmit
authorPaolo Abeni <pabeni@redhat.com>
Mon, 23 Oct 2023 20:44:39 +0000 (13:44 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 25 Oct 2023 19:23:34 +0000 (12:23 -0700)
commit0ffe8e74904027aa48d1f8bd52675c6f0a4c88d1
tree857be96578abfabad1f36ac8212c056f6534829b
parent5684ab1a0effbfeb706f47d85785f653005b97b1
mptcp: use copy_from_iter helpers on transmit

The perf traces show an high cost for the MPTCP transmit path memcpy.

It turn out that the helper currently in use carries quite a bit
of unneeded overhead, e.g. to map/unmap the memory pages.

Moving to the 'copy_from_iter' variant removes such overhead and
additionally gains the no-cache support.

Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20231023-send-net-next-20231023-2-v1-6-9dc60939d371@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c