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)
commitaaa5d90b395a72faff797b00d815165ee0e664c0
tree1200ce4b331921a7ae77964b525c4a3502b726a0
parent283c16a2dfd332bf5610c874f7b9f9c8b601ce53
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