Skip to content

generic net and ipv6 minor optimisations

Pavel Begunkov lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5net: inline sock_alloc_send_skbinclude/net/sock.h net/core/sock.c+8 -90 repliesApplied
2/5net: inline skb_zerocopy_iter_dgraminclude/linux/skbuff.h net/core/datagram.c net/core/datagram.h +1 more+22 -380 repliesApplied
3/5net: inline dev_queue_xmit()include/linux/netdevice.h net/core/dev.c+14 -150 repliesApplied
4/5ipv6: help __ip6_finish_output() inliningnet/ipv6/ip6_output.c+0 -10 repliesApplied
5/5ipv6: refactor ip6_finish_output2()net/ipv6/ip6_output.c+13 -110 repliesApplied

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/5] generic net and ipv6 minor optimisations

1-3 inline simple functions that only reshuffle arguments possibly adding extra zero args, and call another function. It was benchmarked before with a bunch of extra patches, see for details

https://lore.kernel.org/netdev/[email protected]/

It may increase the binary size, but it's the right thing to do and at least without modules it actually sheds some bytes for some standard-ish config.

text data bss dec hex filename
9627200 0 0 9627200 92e640 ./arch/x86_64/boot/bzImage
text data bss dec hex filename
9627104 0 0 9627104 92e5e0 ./arch/x86_64/boot/bzImage

Pavel Begunkov (5):
net: inline sock_alloc_send_skb
net: inline skb_zerocopy_iter_dgram
net: inline dev_queue_xmit()
ipv6: help __ip6_finish_output() inlining
ipv6: refactor ip6_finish_output2()

 include/linux/netdevice.h | 14 ++++++++++++--
 include/linux/skbuff.h    | 36 ++++++++++++++++++++++--------------
 include/net/sock.h        | 10 ++++++++--
 net/core/datagram.c       |  2 --
 net/core/datagram.h       | 15 ---------------
 net/core/dev.c            | 15 ++-------------
 net/core/skbuff.c         |  7 -------
 net/core/sock.c           |  7 -------
 net/ipv6/ip6_output.c     | 25 +++++++++++++------------
 9 files changed, 57 insertions(+), 74 deletions(-)
 delete mode 100644 net/core/datagram.h
Signature · 1 line
2.36.0