-static struct net_device_stats *bcm_get_stats(struct net_device *dev)
-{
- PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(dev);
- struct net_device_stats* netstats = &dev->stats;
-
- netstats->rx_packets = atomic_read(&Adapter->RxRollOverCount)*64*1024
- + Adapter->PrevNumRecvDescs;
- netstats->rx_bytes = atomic_read(&Adapter->GoodRxByteCount)
- + atomic_read(&Adapter->BadRxByteCount);
-
- netstats->rx_dropped = atomic_read(&Adapter->RxPacketDroppedCount);
- netstats->rx_errors = atomic_read(&Adapter->RxPacketDroppedCount);
- netstats->tx_bytes = atomic_read(&Adapter->GoodTxByteCount);
- netstats->tx_packets = atomic_read(&Adapter->TxTotalPacketCount);
- netstats->tx_dropped = atomic_read(&Adapter->TxDroppedPacketCount);
-
- return netstats;
-}
-