aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm/Bcmnet.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-01 13:34:35 -0400
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-01 13:53:30 -0400
commitcacd92222dd4e04424fa532cf1a222e67c30709b (patch)
treea43d689fc5988d5714c93b87f500445df34323b7 /drivers/staging/bcm/Bcmnet.c
parentbeceem: do classification even if device is offline (diff)
downloadlinux-dev-cacd92222dd4e04424fa532cf1a222e67c30709b.tar.xz
linux-dev-cacd92222dd4e04424fa532cf1a222e67c30709b.zip
beceem: statistics and transmit queue changes
Use standard network statistics variables and routines. Transmit counters are per queue, and skb mapping is already in skb and does not need to be recomputed. Move SearchVcId to only place it is used. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Diffstat (limited to 'drivers/staging/bcm/Bcmnet.c')
-rw-r--r--drivers/staging/bcm/Bcmnet.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/staging/bcm/Bcmnet.c b/drivers/staging/bcm/Bcmnet.c
index 82270c18c6ac..eb224a9dafab 100644
--- a/drivers/staging/bcm/Bcmnet.c
+++ b/drivers/staging/bcm/Bcmnet.c
@@ -48,25 +48,6 @@ static INT bcm_close(struct net_device *dev)
return 0;
}
-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;
-}
-
static u16 bcm_select_queue(struct net_device *dev, struct sk_buff *skb)
{
return ClassifyPacket(netdev_priv(dev), skb);
@@ -140,7 +121,6 @@ Register other driver entry points with the kernel
static const struct net_device_ops bcmNetDevOps = {
.ndo_open = bcm_open,
.ndo_stop = bcm_close,
- .ndo_get_stats = bcm_get_stats,
.ndo_start_xmit = bcm_transmit,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,