aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/inet_common.h
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2018-12-14 05:51:58 -0500
committerDavid S. Miller <davem@davemloft.net>2018-12-15 16:23:02 -0500
commitaaa5d90b395a72faff797b00d815165ee0e664c0 (patch)
tree1200ce4b331921a7ae77964b525c4a3502b726a0 /include/net/inet_common.h
parent283c16a2dfd332bf5610c874f7b9f9c8b601ce53 (diff)
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>
Diffstat (limited to 'include/net/inet_common.h')
-rw-r--r--include/net/inet_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/inet_common.h b/include/net/inet_common.h
index 3ca969cbd161..56e7592811ea 100644
--- a/include/net/inet_common.h
+++ b/include/net/inet_common.h
@@ -2,6 +2,8 @@
2#ifndef _INET_COMMON_H 2#ifndef _INET_COMMON_H
3#define _INET_COMMON_H 3#define _INET_COMMON_H
4 4
5#include <linux/indirect_call_wrapper.h>
6
5extern const struct proto_ops inet_stream_ops; 7extern const struct proto_ops inet_stream_ops;
6extern const struct proto_ops inet_dgram_ops; 8extern const struct proto_ops inet_dgram_ops;
7 9