Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1734570 > unrolled thread

[PATCH stable 4.1 2/2] ipv6: Remove sit_gro_receive()

Started byFlorian Fainelli <f.fainelli@gmail.com>
First post2017-09-19 03:00 +0200
Last post2017-09-19 03:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH stable 4.1 2/2] ipv6: Remove sit_gro_receive() Florian Fainelli <f.fainelli@gmail.com> - 2017-09-19 03:00 +0200

#1734570 — [PATCH stable 4.1 2/2] ipv6: Remove sit_gro_receive()

FromFlorian Fainelli <f.fainelli@gmail.com>
Date2017-09-19 03:00 +0200
Subject[PATCH stable 4.1 2/2] ipv6: Remove sit_gro_receive()
Message-ID<urf3j-5wy-3@gated-at.bofh.it>
This was backported as part of 066b300e5be4 ("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: 066b300e5be4 ("tunnels: Don't apply GRO to multiple layers of encapsulation.")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 net/ipv6/ip6_offload.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/net/ipv6/ip6_offload.c b/net/ipv6/ip6_offload.c
index 606a07890c68..1cb68e01c301 100644
--- a/net/ipv6/ip6_offload.c
+++ b/net/ipv6/ip6_offload.c
@@ -261,19 +261,6 @@ out:
 	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;
-- 
2.14.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web