From: Lorenzo Bianconi Date: Wed, 16 Jan 2019 18:38:05 +0000 (+0100) Subject: net: ip6_gre: remove gre_hdr_len from ip6erspan_rcv X-Git-Tag: v5.15~6918^2~492 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a057fed33beeb1c31e7a4dc28abb8c9b4061351f;p=platform%2Fkernel%2Flinux-starfive.git net: ip6_gre: remove gre_hdr_len from ip6erspan_rcv Remove gre_hdr_len from ip6erspan_rcv routine signature since it is not longer used Signed-off-by: Lorenzo Bianconi Signed-off-by: David S. Miller --- diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index 09d0826742f8..4a1a86e9c0e9 100644 --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c @@ -524,7 +524,7 @@ static int ip6gre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi) return PACKET_REJECT; } -static int ip6erspan_rcv(struct sk_buff *skb, int gre_hdr_len, +static int ip6erspan_rcv(struct sk_buff *skb, struct tnl_ptk_info *tpi) { struct erspan_base_hdr *ershdr; @@ -611,7 +611,7 @@ static int gre_rcv(struct sk_buff *skb) if (unlikely(tpi.proto == htons(ETH_P_ERSPAN) || tpi.proto == htons(ETH_P_ERSPAN2))) { - if (ip6erspan_rcv(skb, hdr_len, &tpi) == PACKET_RCVD) + if (ip6erspan_rcv(skb, &tpi) == PACKET_RCVD) return 0; goto out; }