Revert "net: mac802154: Fix racy device stats updates by DEV_STATS_INC() and DEV_STATS_ADD()"
This reverts commit 97f5298d5c
.
This commit is contained in:
parent
b2c91c005b
commit
9b077df9ac
1 changed files with 4 additions and 4 deletions
|
@ -34,8 +34,8 @@ void ieee802154_xmit_worker(struct work_struct *work)
|
||||||
if (res)
|
if (res)
|
||||||
goto err_tx;
|
goto err_tx;
|
||||||
|
|
||||||
DEV_STATS_INC(dev, tx_packets);
|
dev->stats.tx_packets++;
|
||||||
DEV_STATS_ADD(dev, tx_bytes, skb->len);
|
dev->stats.tx_bytes += skb->len;
|
||||||
|
|
||||||
ieee802154_xmit_complete(&local->hw, skb, false);
|
ieee802154_xmit_complete(&local->hw, skb, false);
|
||||||
|
|
||||||
|
@ -86,8 +86,8 @@ ieee802154_tx(struct ieee802154_local *local, struct sk_buff *skb)
|
||||||
goto err_tx;
|
goto err_tx;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEV_STATS_INC(dev, tx_packets);
|
dev->stats.tx_packets++;
|
||||||
DEV_STATS_ADD(dev, tx_bytes, len);
|
dev->stats.tx_bytes += len;
|
||||||
} else {
|
} else {
|
||||||
local->tx_skb = skb;
|
local->tx_skb = skb;
|
||||||
queue_work(local->workqueue, &local->tx_work);
|
queue_work(local->workqueue, &local->tx_work);
|
||||||
|
|
Loading…
Reference in a new issue