Commit 80667ac1 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

smsc95xx: Use netdev stats structure

Now that netdev has its own stats structure we should use that
instead.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 58e2e7d5
...@@ -1108,18 +1108,18 @@ static int smsc95xx_rx_fixup(struct usbnet *dev, struct sk_buff *skb) ...@@ -1108,18 +1108,18 @@ static int smsc95xx_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
if (unlikely(header & RX_STS_ES_)) { if (unlikely(header & RX_STS_ES_)) {
if (netif_msg_rx_err(dev)) if (netif_msg_rx_err(dev))
devdbg(dev, "Error header=0x%08x", header); devdbg(dev, "Error header=0x%08x", header);
dev->stats.rx_errors++; dev->net->stats.rx_errors++;
dev->stats.rx_dropped++; dev->net->stats.rx_dropped++;
if (header & RX_STS_CRC_) { if (header & RX_STS_CRC_) {
dev->stats.rx_crc_errors++; dev->net->stats.rx_crc_errors++;
} else { } else {
if (header & (RX_STS_TL_ | RX_STS_RF_)) if (header & (RX_STS_TL_ | RX_STS_RF_))
dev->stats.rx_frame_errors++; dev->net->stats.rx_frame_errors++;
if ((header & RX_STS_LE_) && if ((header & RX_STS_LE_) &&
(!(header & RX_STS_FT_))) (!(header & RX_STS_FT_)))
dev->stats.rx_length_errors++; dev->net->stats.rx_length_errors++;
} }
} else { } else {
/* ETH_FRAME_LEN + 4(CRC) + 2(COE) + 4(Vlan) */ /* ETH_FRAME_LEN + 4(CRC) + 2(COE) + 4(Vlan) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment