]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb6a0e7cf16969512656230a43c5513619c152d0b
tree44fa946217cb3dba912f903005e2cbae6ae8b06c
parentc04f1468056da72e18e3eadaae69c97a85f8b879
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