Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135443
b: refs/heads/master
c: 6456fff
h: refs/heads/master
i:
  135441: e72fa20
  135439: 168e842
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 22, 2009
1 parent 6e91205 commit 0b0c536
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 25 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6685254f80cdca085cb1d53c45a6d0d5d01f911e
refs/heads/master: 6456fffb09a281af2644e73fda26d1eeec325830
14 changes: 0 additions & 14 deletions trunk/drivers/net/wireless/prism54/islpci_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@

static int prism54_bring_down(islpci_private *);
static int islpci_alloc_memory(islpci_private *);
static struct net_device_stats *islpci_statistics(struct net_device *);

/* Temporary dummy MAC address to use until firmware is loaded.
* The idea there is that some tools (such as nameif) may query
Expand Down Expand Up @@ -614,18 +613,6 @@ islpci_reset(islpci_private *priv, int reload_firmware)
return rc;
}

static struct net_device_stats *
islpci_statistics(struct net_device *ndev)
{
islpci_private *priv = netdev_priv(ndev);

#if VERBOSE > SHOW_ERROR_MESSAGES
DEBUG(SHOW_FUNCTION_CALLS, "islpci_statistics\n");
#endif

return &priv->statistics;
}

/******************************************************************************
Network device configuration functions
******************************************************************************/
Expand Down Expand Up @@ -811,7 +798,6 @@ static const struct ethtool_ops islpci_ethtool_ops = {
static const struct net_device_ops islpci_netdev_ops = {
.ndo_open = islpci_open,
.ndo_stop = islpci_close,
.ndo_get_stats = islpci_statistics,
.ndo_do_ioctl = prism54_ioctl,
.ndo_start_xmit = islpci_eth_transmit,
.ndo_tx_timeout = islpci_eth_tx_timeout,
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/net/wireless/prism54/islpci_dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ typedef struct {
dma_addr_t pci_map_tx_address[ISL38XX_CB_TX_QSIZE];
dma_addr_t pci_map_rx_address[ISL38XX_CB_RX_QSIZE];

/* driver network interface members */
struct net_device_stats statistics;

/* wait for a reset interrupt */
wait_queue_head_t reset_done;

Expand Down
13 changes: 6 additions & 7 deletions trunk/drivers/net/wireless/prism54/islpci_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ islpci_eth_transmit(struct sk_buff *skb, struct net_device *ndev)

/* set the transmission time */
ndev->trans_start = jiffies;
priv->statistics.tx_packets++;
priv->statistics.tx_bytes += skb->len;
ndev->stats.tx_packets++;
ndev->stats.tx_bytes += skb->len;

/* trigger the device */
islpci_trigger(priv);
Expand All @@ -243,7 +243,7 @@ islpci_eth_transmit(struct sk_buff *skb, struct net_device *ndev)
return 0;

drop_free:
priv->statistics.tx_dropped++;
ndev->stats.tx_dropped++;
spin_unlock_irqrestore(&priv->slock, flags);
dev_kfree_skb(skb);
return err;
Expand Down Expand Up @@ -408,8 +408,8 @@ islpci_eth_receive(islpci_private *priv)
skb->protocol = eth_type_trans(skb, ndev);
}
skb->ip_summed = CHECKSUM_NONE;
priv->statistics.rx_packets++;
priv->statistics.rx_bytes += size;
ndev->stats.rx_packets++;
ndev->stats.rx_bytes += size;

/* deliver the skb to the network layer */
#ifdef ISLPCI_ETH_DEBUG
Expand Down Expand Up @@ -497,10 +497,9 @@ void
islpci_eth_tx_timeout(struct net_device *ndev)
{
islpci_private *priv = netdev_priv(ndev);
struct net_device_stats *statistics = &priv->statistics;

/* increment the transmit error counter */
statistics->tx_errors++;
ndev->stats.tx_errors++;

if (!priv->reset_task_pending) {
printk(KERN_WARNING
Expand Down

0 comments on commit 0b0c536

Please sign in to comment.