Skip to content

Commit

Permalink
[PATCH] prism54 : Transmit stats updated in wrong place
Browse files Browse the repository at this point in the history
Move update of the transmit statistics to the correct place.  This
would be just before starting transmission rather than (potentially
long) afterward.

Signed-off-by: Roger While <simrw@sim-basis.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Roger While authored and John W. Linville committed Nov 8, 2005
1 parent de7fe96 commit 0b47939
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/net/wireless/prism54/islpci_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,17 +227,17 @@ islpci_eth_transmit(struct sk_buff *skb, struct net_device *ndev)
priv->data_low_tx_full = 1;
}

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

/* trigger the device */
islpci_trigger(priv);

/* unlock the driver code */
spin_unlock_irqrestore(&priv->slock, flags);

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

return 0;

drop_free:
Expand Down

0 comments on commit 0b47939

Please sign in to comment.