]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - net/ipv4/ip_gre.c
net: rx_dropped accounting
[linux-2.6.git] / net / ipv4 / ip_gre.c
index fc20e687e933ba2557ab36bd1a3c57d8a9374d7f..714b6a80361df2cb616f2682cae04c20ad463b68 100644 (file)
@@ -647,9 +647,11 @@ static int ipgre_rcv(struct sk_buff *skb)
                skb_reset_network_header(skb);
                ipgre_ecn_decapsulate(iph, skb);
 
-               netif_rx(skb);
+               if (netif_rx(skb) == NET_RX_DROP)
+                       stats->rx_dropped++;
+
                rcu_read_unlock();
-               return(0);
+               return 0;
        }
        icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0);