diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-02-11 15:11:49 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-02-11 15:11:49 +0000 |
commit | 825069235900e46a9a05c95ab7c301ccfecf31ec (patch) | |
tree | 1914679101bdfe162db681053bbc6107216f84a4 /target/linux/ramips | |
parent | c67adbbddb48b8e2e51b494de1aadccb421989a0 (diff) | |
download | upstream-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.c | 2 |
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; |