We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07aa339 commit b8ec0dcCopy full SHA for b8ec0dc
net/mac802154/tx.c
@@ -34,8 +34,8 @@ void ieee802154_xmit_sync_worker(struct work_struct *work)
34
if (res)
35
goto err_tx;
36
37
- dev->stats.tx_packets++;
38
- dev->stats.tx_bytes += skb->len;
+ DEV_STATS_INC(dev, tx_packets);
+ DEV_STATS_ADD(dev, tx_bytes, skb->len);
39
40
ieee802154_xmit_complete(&local->hw, skb, false);
41
@@ -90,8 +90,8 @@ ieee802154_tx(struct ieee802154_local *local, struct sk_buff *skb)
90
if (ret)
91
goto err_wake_netif_queue;
92
93
94
- dev->stats.tx_bytes += len;
+ DEV_STATS_ADD(dev, tx_bytes, len);
95
} else {
96
local->tx_skb = skb;
97
queue_work(local->workqueue, &local->sync_tx_work);
0 commit comments