]> Pileus Git - ~andy/linux/commitdiff
[PATCH] prism54 : Transmit stats updated in wrong place
authorRoger While <simrw@sim-basis.de>
Mon, 7 Nov 2005 19:58:21 +0000 (20:58 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Nov 2005 02:50:00 +0000 (21:50 -0500)
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>
drivers/net/wireless/prism54/islpci_eth.c

index 3b49efa37ee56050f3294304ad0ce0c8dd539d59..56d97833edad8b59d0e954145810bbfbf5064c69 100644 (file)
@@ -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: