diff options
author | Paolo Abeni <pabeni@redhat.com> | 2019-05-03 11:01:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-05 13:38:04 -0400 |
commit | 0e219ae48c3bbf382ef96adf3825457315728c03 (patch) | |
tree | caab033dc6fe9c00528d6fc341d53b0b9ce368e5 /net/ipv6/tcp_ipv6.c | |
parent | f5737cbadb7d07c4f71fc5f073ccc7d8d8985a8f (diff) |
net: use indirect calls helpers for L3 handler hooks
So that we avoid another indirect call per RX packet in the common
case.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 82018bdce863..d58bf84e0f9a 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -43,6 +43,7 @@ | |||
43 | #include <linux/ipv6.h> | 43 | #include <linux/ipv6.h> |
44 | #include <linux/icmpv6.h> | 44 | #include <linux/icmpv6.h> |
45 | #include <linux/random.h> | 45 | #include <linux/random.h> |
46 | #include <linux/indirect_call_wrapper.h> | ||
46 | 47 | ||
47 | #include <net/tcp.h> | 48 | #include <net/tcp.h> |
48 | #include <net/ndisc.h> | 49 | #include <net/ndisc.h> |
@@ -1435,7 +1436,7 @@ static void tcp_v6_fill_cb(struct sk_buff *skb, const struct ipv6hdr *hdr, | |||
1435 | skb->tstamp || skb_hwtstamps(skb)->hwtstamp; | 1436 | skb->tstamp || skb_hwtstamps(skb)->hwtstamp; |
1436 | } | 1437 | } |
1437 | 1438 | ||
1438 | static int tcp_v6_rcv(struct sk_buff *skb) | 1439 | INDIRECT_CALLABLE_SCOPE int tcp_v6_rcv(struct sk_buff *skb) |
1439 | { | 1440 | { |
1440 | struct sk_buff *skb_to_free; | 1441 | struct sk_buff *skb_to_free; |
1441 | int sdif = inet6_sdif(skb); | 1442 | int sdif = inet6_sdif(skb); |