mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
f5737cbadb
commit
0e219ae48c
4 changed files with 15 additions and 4 deletions
|
@ -43,6 +43,7 @@
|
|||
#include <linux/ipv6.h>
|
||||
#include <linux/icmpv6.h>
|
||||
#include <linux/random.h>
|
||||
#include <linux/indirect_call_wrapper.h>
|
||||
|
||||
#include <net/tcp.h>
|
||||
#include <net/ndisc.h>
|
||||
|
@ -1435,7 +1436,7 @@ static void tcp_v6_fill_cb(struct sk_buff *skb, const struct ipv6hdr *hdr,
|
|||
skb->tstamp || skb_hwtstamps(skb)->hwtstamp;
|
||||
}
|
||||
|
||||
static int tcp_v6_rcv(struct sk_buff *skb)
|
||||
INDIRECT_CALLABLE_SCOPE int tcp_v6_rcv(struct sk_buff *skb)
|
||||
{
|
||||
struct sk_buff *skb_to_free;
|
||||
int sdif = inet6_sdif(skb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue