OSDN Git Service

fib: use indirect call wrappers in the most common fib_rules_ops
authorBrian Vazquez <brianvv@google.com>
Sun, 26 Jul 2020 22:48:16 +0000 (15:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jul 2020 00:42:31 +0000 (17:42 -0700)
commitb9aaec8f0be518096d1377082e0abe6a85e86ff3
tree44fa946217cb3dba912f903005e2cbae6ae8b06c
parent608b4adab17889576c6636311f495b1a52418c69
fib: use indirect call wrappers in the most common fib_rules_ops

This avoids another inderect call per RX packet which save us around
20-40 ns.

Changelog:

v1 -> v2:
- Move declaraions to fib_rules.h to remove warnings

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Brian Vazquez <brianvv@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/fib_rules.h
net/core/fib_rules.c
net/ipv4/fib_rules.c
net/ipv6/fib6_rules.c