ramips: raeth: indicate dropped packets in stats
authorGabor Juhos <juhosg@openwrt.org>
Sat, 11 Feb 2012 15:11:49 +0000 (15:11 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 11 Feb 2012 15:11:49 +0000 (15:11 +0000)
SVN-Revision: 30440

target/linux/ramips/files/drivers/net/ramips.c

index 0bc6c0603c45d35a8c9f4a722b6b743107a8fd68..84c9fe4af56220f2c03826cb8a400031f5b2501e 100644 (file)
@@ -293,6 +293,8 @@ ramips_eth_rx_hw(unsigned long ptr)
                                                           new_skb->data,
                                                           MAX_RX_LENGTH,
                                                           DMA_FROM_DEVICE);
+               } else {
+                       dev->stats.rx_dropped++;
                }
 
                priv->rx[rx].rxd2 &= ~RX_DMA_DONE;