Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b47939f authored by Roger While's avatar Roger While Committed by John W. Linville
Browse files

[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: default avatarRoger While <simrw@sim-basis.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent de7fe963
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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: