Skip to content

net: extend indirect calls helper usage

Paolo Abeni netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: use indirect calls helpers for ptype hooknet/core/dev.c+4 -21 reply
2/4net: use indirect calls helpers for L3 handler hooksnet/ipv4/ip_input.c net/ipv6/ip6_input.c net/ipv6/tcp_ipv6.c +1 more+15 -40 replies
3/4net: use indirect calls helpers at early demux stagenet/ipv4/ip_input.c net/ipv6/ip6_input.c net/ipv6/tcp_ipv6.c +1 more+10 -40 replies
4/4net: use indirect calls helpers at the socket layernet/socket.c+16 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/4] net: extend indirect calls helper usage

This series applies the indirect calls helper introduced with commit 283c16a2dfd3 ("indirect call wrappers: helpers to speed-up indirect calls of builtin") to more hooks inside the network stack.

Overall this avoids up to 4 indirect calls for each RX packets, giving small but measurable gain TCP_RR workloads and 5% under UDP flood.

Paolo Abeni (4):
net: use indirect calls helpers for ptype hook
net: use indirect calls helpers for L3 handler hooks
net: use indirect calls helpers at early demux stage
net: use indirect calls helpers at the socket layer

 net/core/dev.c       |  6 ++++--
 net/ipv4/ip_input.c  | 11 +++++++++--
 net/ipv6/ip6_input.c | 12 ++++++++++--
 net/ipv6/tcp_ipv6.c  |  5 +++--
 net/ipv6/udp.c       |  5 +++--
 net/socket.c         | 20 ++++++++++++++++----
 6 files changed, 45 insertions(+), 14 deletions(-)
Signature · 1 line
2.20.1