mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
[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>
This commit is contained in:
parent
de7fe963b1
commit
0b47939fe6
@ -227,17 +227,17 @@ islpci_eth_transmit(struct sk_buff *skb, struct net_device *ndev)
|
|||||||
priv->data_low_tx_full = 1;
|
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 */
|
/* trigger the device */
|
||||||
islpci_trigger(priv);
|
islpci_trigger(priv);
|
||||||
|
|
||||||
/* unlock the driver code */
|
/* unlock the driver code */
|
||||||
spin_unlock_irqrestore(&priv->slock, flags);
|
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;
|
return 0;
|
||||||
|
|
||||||
drop_free:
|
drop_free:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user