]> git.baikalelectronics.ru Git - kernel.git/commit
net: use indirect call wrappers at GRO network layer
authorPaolo Abeni <pabeni@redhat.com>
Fri, 14 Dec 2018 10:51:58 +0000 (11:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Dec 2018 21:23:02 +0000 (13:23 -0800)
commit4c82f1457144d61dc9980a22b8d02fa19725b1cc
tree1200ce4b331921a7ae77964b525c4a3502b726a0
parent53d786d36454793fdb710f2104bbb9024e4a9ad2
net: use indirect call wrappers at GRO network layer

This avoids an indirect calls for L3 GRO receive path, both
for ipv4 and ipv6, if the latter is not compiled as a module.

Note that when IPv6 is compiled as builtin, it will be checked first,
so we have a single additional compare for the more common path.

v1 -> v2:
 - adapted to INDIRECT_CALL_ changes

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_common.h
net/core/dev.c
net/ipv6/ip6_offload.c