net: ip6_gre: remove gre_hdr_len from ip6erspan_rcv
Subsystems (3)
PATCH 1/1 net: ip6_gre: remove gre_hdr_len from ip6erspan_rcv
In reply to a message not in the archiveRemove gre_hdr_len from ip6erspan_rcv routine signature since it is not longer used
Signed-off-by Lorenzo Bianconi <[email protected]>
--- net/ipv6/ip6_gre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/ipv6/ip6_gre.c +2 -2
@@ -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; }
Signature · 1 line
2.20.1
From: Lorenzo Bianconi <[email protected]>
Date: Wed, 16 Jan 2019 19:38:05 +0100
Quoted 4 lines
Remove
gre_hdr_lenfromip6erspan_rcvroutine signature since it is not longer usedSigned-off-by Lorenzo Bianconi <[email protected]>
Applied.