mbox series

[net-next,v2,0/4] net: avoid indirect calls in dst functions

Message ID 20201211233340.1503242-1-brianvv@google.com
Headers show
Series net: avoid indirect calls in dst functions | expand

Message

Brian Vazquez Dec. 11, 2020, 11:33 p.m. UTC
From: brianvv <brianvv@google.com>

Use of the indirect call wrappers in some dst related functions for the
ipv6/ipv4 case. This is a small improvent for CONFIG_RETPOLINE=y

Changed in v2:
-fix build issues reported by kernel test robot

brianvv (4):
  net: use indirect call helpers for dst_input
  net: use indirect call helpers for dst_output
  net: use indirect call helpers for dst_mtu
  net: indirect call helpers for ipv4/ipv6 dst_check functions

 include/net/dst.h     | 25 +++++++++++++++++++++----
 net/core/sock.c       | 12 ++++++++++--
 net/ipv4/ip_input.c   |  1 +
 net/ipv4/ip_output.c  |  1 +
 net/ipv4/route.c      | 13 +++++++++----
 net/ipv4/tcp_ipv4.c   |  5 ++++-
 net/ipv6/ip6_output.c |  1 +
 net/ipv6/route.c      | 13 +++++++++----
 net/ipv6/tcp_ipv6.c   |  5 ++++-
 9 files changed, 60 insertions(+), 16 deletions(-)

Comments

Jakub Kicinski Dec. 15, 2020, 3:27 a.m. UTC | #1
On Fri, 11 Dec 2020 23:33:36 +0000 Brian Vazquez wrote:
> From: brianvv <brianvv@google.com>


We'd prefer you to use your normal name rather than just "brianvv".

> Use of the indirect call wrappers in some dst related functions for the

> ipv6/ipv4 case. This is a small improvent for CONFIG_RETPOLINE=y


Any numbers you can provide?