aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files
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
commit9ab3461a357143c4e6908859b104f9550ae42157 (patch)
treed672f4732bf695952b3f1025290070be11c36afd /target/linux/ramips/files
parent6653e1388449a202ca73962ef2d1756cd705a498 (diff)
downloadupstream-9ab3461a357143c4e6908859b104f9550ae42157.tar.gz
upstream-9ab3461a357143c4e6908859b104f9550ae42157.tar.bz2
upstream-9ab3461a357143c4e6908859b104f9550ae42157.zip
ramips: raeth: indicate dropped packets in stats
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30440 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files')
-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;