From 202c4f386c151e23c79e0fafde6ba10a29122604 Mon Sep 17 00:00:00 2001 From: juhosg Date: Sat, 11 Feb 2012 15:11:49 +0000 Subject: ramips: raeth: indicate dropped packets in stats git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30440 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/files/drivers/net/ramips.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'target/linux/ramips/files') diff --git a/target/linux/ramips/files/drivers/net/ramips.c b/target/linux/ramips/files/drivers/net/ramips.c index 0bc6c0603..84c9fe4af 100644 --- a/target/linux/ramips/files/drivers/net/ramips.c +++ b/target/linux/ramips/files/drivers/net/ramips.c @@ -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; -- cgit v1.2.3