aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-11 15:11:49 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-11 15:11:49 +0000
commit825069235900e46a9a05c95ab7c301ccfecf31ec (patch)
tree1914679101bdfe162db681053bbc6107216f84a4 /target/linux/ramips
parentc67adbbddb48b8e2e51b494de1aadccb421989a0 (diff)
downloadupstream-825069235900e46a9a05c95ab7c301ccfecf31ec.tar.gz
upstream-825069235900e46a9a05c95ab7c301ccfecf31ec.tar.bz2
upstream-825069235900e46a9a05c95ab7c301ccfecf31ec.zip
ramips: raeth: indicate dropped packets in stats
SVN-Revision: 30440
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/files/drivers/net/ramips.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips.c b/target/linux/ramips/files/drivers/net/ramips.c
index 0bc6c0603c..84c9fe4af5 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;