Skip to content

Commit

Permalink
ipv6: Remove sit_gro_receive()
Browse files Browse the repository at this point in the history
This was backported as part of 066b300 ("tunnels: Don't apply GRO
to multiple layers of encapsulation.") but nothing uses this function,
thus resulting in this build warning:

net/ipv6/ip6_offload.c:264:25: warning: 'sit_gro_receive' defined but
not used [-Wunused-function]
 static struct sk_buff **sit_gro_receive(struct sk_buff **head,
                         ^
Just drop it for now.

Fixes: 066b300 ("tunnels: Don't apply GRO to multiple layers of encapsulation.")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
  • Loading branch information
Florian Fainelli authored and Sasha Levin committed Oct 6, 2017
1 parent 6a4a181 commit 99902f2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions net/ipv6/ip6_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,19 +261,6 @@ static struct sk_buff **ipv6_gro_receive(struct sk_buff **head,
return pp;
}

static struct sk_buff **sit_gro_receive(struct sk_buff **head,
struct sk_buff *skb)
{
if (NAPI_GRO_CB(skb)->encap_mark) {
NAPI_GRO_CB(skb)->flush = 1;
return NULL;
}

NAPI_GRO_CB(skb)->encap_mark = 1;

return ipv6_gro_receive(head, skb);
}

static int ipv6_gro_complete(struct sk_buff *skb, int nhoff)
{
const struct net_offload *ops;
Expand Down

0 comments on commit 99902f2

Please sign in to comment.