Files
linux/net
Eric Dumazet 29f3490ba9 net: use indirect call wrappers for skb_copy_datagram_iter()
TCP recvmsg() calls skb_copy_datagram_iter(), which
calls an indirect function (cb pointing to simple_copy_to_iter())
for every MSS (fragment) present in the skb.

CONFIG_RETPOLINE=y forces a very expensive operation
that we can avoid thanks to indirect call wrappers.

This patch gives a 13% increase of performance on
a single flow, if the bottleneck is the thread reading
the TCP socket.

Fixes: 950fcaecd5 ("datagram: consolidate datagram copy to iter helpers")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-25 11:30:40 -07:00
..
2020-03-23 21:57:44 -07:00
2020-01-27 11:09:31 +01:00
2019-09-26 08:56:17 +02:00
2020-03-23 21:57:44 -07:00
2020-03-23 21:57:44 -07:00
2019-12-09 10:36:44 -08:00
2019-11-26 14:40:13 -08:00
2020-03-23 20:54:23 -07:00
2020-03-23 21:57:44 -07:00
2020-01-24 13:44:07 +01:00
2020-01-08 15:02:21 -08:00