Commit 5d9c5a32920c5c0e6716b0f6ed16157783dc56a4
Committed by
David S. Miller
1 parent
00ab956f2f
Exists in
master
and in
7 other branches
[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>
Showing 6 changed files with 0 additions and 7 deletions Side-by-side Diff
net/ipv4/ip_gre.c
... | ... | @@ -617,7 +617,6 @@ |
617 | 617 | skb->mac.raw = skb->nh.raw; |
618 | 618 | skb->nh.raw = __pskb_pull(skb, offset); |
619 | 619 | skb_postpull_rcsum(skb, skb->h.raw, offset); |
620 | - memset(&(IPCB(skb)->opt), 0, sizeof(struct ip_options)); | |
621 | 620 | skb->pkt_type = PACKET_HOST; |
622 | 621 | #ifdef CONFIG_NET_IPGRE_BROADCAST |
623 | 622 | if (MULTICAST(iph->daddr)) { |
net/ipv4/ip_options.c
net/ipv4/ipip.c
net/ipv4/ipmr.c
... | ... | @@ -1461,7 +1461,6 @@ |
1461 | 1461 | skb_pull(skb, (u8*)encap - skb->data); |
1462 | 1462 | skb->nh.iph = (struct iphdr *)skb->data; |
1463 | 1463 | skb->dev = reg_dev; |
1464 | - memset(&(IPCB(skb)->opt), 0, sizeof(struct ip_options)); | |
1465 | 1464 | skb->protocol = htons(ETH_P_IP); |
1466 | 1465 | skb->ip_summed = 0; |
1467 | 1466 | skb->pkt_type = PACKET_HOST; |
... | ... | @@ -1517,7 +1516,6 @@ |
1517 | 1516 | skb_pull(skb, (u8*)encap - skb->data); |
1518 | 1517 | skb->nh.iph = (struct iphdr *)skb->data; |
1519 | 1518 | skb->dev = reg_dev; |
1520 | - memset(&(IPCB(skb)->opt), 0, sizeof(struct ip_options)); | |
1521 | 1519 | skb->protocol = htons(ETH_P_IP); |
1522 | 1520 | skb->ip_summed = 0; |
1523 | 1521 | skb->pkt_type = PACKET_HOST; |
net/ipv4/xfrm4_mode_tunnel.c
net/ipv6/sit.c