[IPV4]: Get rid of redundant IPCB->opts initialisation
Now that we always zero the IPCB->opts in ip_rcv, it is no longer necessary to do so before calling netif_rx for tunneled packets. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
00ab956f2f
commit
5d9c5a3292
@@ -617,7 +617,6 @@ static int ipgre_rcv(struct sk_buff *skb)
|
||||
skb->mac.raw = skb->nh.raw;
|
||||
skb->nh.raw = __pskb_pull(skb, offset);
|
||||
skb_postpull_rcsum(skb, skb->h.raw, offset);
|
||||
memset(&(IPCB(skb)->opt), 0, sizeof(struct ip_options));
|
||||
skb->pkt_type = PACKET_HOST;
|
||||
#ifdef CONFIG_NET_IPGRE_BROADCAST
|
||||
if (MULTICAST(iph->daddr)) {
|
||||
|
Reference in New Issue
Block a user