diff options
author | Roger While <simrw@sim-basis.de> | 2005-11-07 14:58:21 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2005-11-07 21:50:00 -0500 |
commit | 0b47939fe616a5e0dd279d98d1eb372e4acc1c09 (patch) | |
tree | 0e7d5bceaba4a2ca0d55accdd59218edc4d023c5 /drivers/net/wireless/prism54 | |
parent | de7fe963b123365a27f82330689806226a48d088 (diff) |
[PATCH] prism54 : Transmit stats updated in wrong place
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>
Diffstat (limited to 'drivers/net/wireless/prism54')
-rw-r--r-- | drivers/net/wireless/prism54/islpci_eth.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/prism54/islpci_eth.c b/drivers/net/wireless/prism54/islpci_eth.c index 3b49efa37ee5..56d97833edad 100644 --- a/drivers/net/wireless/prism54/islpci_eth.c +++ b/drivers/net/wireless/prism54/islpci_eth.c | |||
@@ -227,17 +227,17 @@ islpci_eth_transmit(struct sk_buff *skb, struct net_device *ndev) | |||
227 | priv->data_low_tx_full = 1; | 227 | priv->data_low_tx_full = 1; |
228 | } | 228 | } |
229 | 229 | ||
230 | /* set the transmission time */ | ||
231 | ndev->trans_start = jiffies; | ||
232 | priv->statistics.tx_packets++; | ||
233 | priv->statistics.tx_bytes += skb->len; | ||
234 | |||
230 | /* trigger the device */ | 235 | /* trigger the device */ |
231 | islpci_trigger(priv); | 236 | islpci_trigger(priv); |
232 | 237 | ||
233 | /* unlock the driver code */ | 238 | /* unlock the driver code */ |
234 | spin_unlock_irqrestore(&priv->slock, flags); | 239 | spin_unlock_irqrestore(&priv->slock, flags); |
235 | 240 | ||
236 | /* set the transmission time */ | ||
237 | ndev->trans_start = jiffies; | ||
238 | priv->statistics.tx_packets++; | ||
239 | priv->statistics.tx_bytes += skb->len; | ||
240 | |||
241 | return 0; | 241 | return 0; |
242 | 242 | ||
243 | drop_free: | 243 | drop_free: |