smsc95xx: Use netdev stats structure
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 29 Jun 2009 16:53:00 +0000 (16:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Jul 2009 02:46:46 +0000 (19:46 -0700)
Now that netdev has its own stats structure we should use that
instead.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c

index 89a91f8c22dea051009a1a2c513f28fa9a9b600f..fe045896406bdbf3bffa7525621b31b535a265d5 100644 (file)
@@ -1108,18 +1108,18 @@ static int smsc95xx_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
                if (unlikely(header & RX_STS_ES_)) {
                        if (netif_msg_rx_err(dev))
                                devdbg(dev, "Error header=0x%08x", header);
-                       dev->stats.rx_errors++;
-                       dev->stats.rx_dropped++;
+                       dev->net->stats.rx_errors++;
+                       dev->net->stats.rx_dropped++;
 
                        if (header & RX_STS_CRC_) {
-                               dev->stats.rx_crc_errors++;
+                               dev->net->stats.rx_crc_errors++;
                        } else {
                                if (header & (RX_STS_TL_ | RX_STS_RF_))
-                                       dev->stats.rx_frame_errors++;
+                                       dev->net->stats.rx_frame_errors++;
 
                                if ((header & RX_STS_LE_) &&
                                        (!(header & RX_STS_FT_)))
-                                       dev->stats.rx_length_errors++;
+                                       dev->net->stats.rx_length_errors++;
                        }
                } else {
                        /* ETH_FRAME_LEN + 4(CRC) + 2(COE) + 4(Vlan) */