From: Gabor Juhos Date: Sat, 11 Feb 2012 15:11:49 +0000 (+0000) Subject: ramips: raeth: indicate dropped packets in stats X-Git-Tag: reboot~14924 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=825069235900e46a9a05c95ab7c301ccfecf31ec;p=oweals%2Fopenwrt.git ramips: raeth: indicate dropped packets in stats SVN-Revision: 30440 --- 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;