Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wifi: mac80211: remove tx_handlers_drop debugfs stats

Commit 906a5a8c7152 ("wifi: mac80211: add tx_handlers_drop statistics
to ethtool") added a tx_handlers_drop counter to ethtool stats.
During review [1], Johannes noted that the existing debugfs counter
is now redundant. Remove the debugfs stat to avoid duplication and
streamline statistics reporting.

Link: https://lore.kernel.org/linux-wireless/ce5f2bd899caa2de32f36ce554d9cada073979c0.camel@sipsolutions.net/ # [1]
Signed-off-by: Sarika Sharma <quic_sarishar@quicinc.com>
Link: https://patch.msgid.link/20250918040846.4032734-1-quic_sarishar@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Sarika Sharma and committed by
Johannes Berg
ccdc96fa 872e397d

-4
-1
net/mac80211/debugfs.c
··· 715 715 DEBUGFS_STATS_ADD(dot11ReceivedFragmentCount); 716 716 DEBUGFS_STATS_ADD(dot11MulticastReceivedFrameCount); 717 717 DEBUGFS_STATS_ADD(dot11TransmittedFrameCount); 718 - DEBUGFS_STATS_ADD(tx_handlers_drop); 719 718 DEBUGFS_STATS_ADD(tx_handlers_queued); 720 719 DEBUGFS_STATS_ADD(tx_handlers_drop_wep); 721 720 DEBUGFS_STATS_ADD(tx_handlers_drop_not_assoc);
-1
net/mac80211/ieee80211_i.h
··· 1610 1610 u32 dot11TransmittedFrameCount; 1611 1611 1612 1612 /* TX/RX handler statistics */ 1613 - unsigned int tx_handlers_drop; 1614 1613 unsigned int tx_handlers_queued; 1615 1614 unsigned int tx_handlers_drop_wep; 1616 1615 unsigned int tx_handlers_drop_not_assoc;
-2
net/mac80211/tx.c
··· 1821 1821 txh_done: 1822 1822 if (unlikely(res == TX_DROP)) { 1823 1823 tx->sdata->tx_handlers_drop++; 1824 - I802_DEBUG_INC(tx->local->tx_handlers_drop); 1825 1824 if (tx->skb) 1826 1825 ieee80211_free_txskb(&tx->local->hw, tx->skb); 1827 1826 else ··· 1865 1866 txh_done: 1866 1867 if (unlikely(res == TX_DROP)) { 1867 1868 tx->sdata->tx_handlers_drop++; 1868 - I802_DEBUG_INC(tx->local->tx_handlers_drop); 1869 1869 if (tx->skb) 1870 1870 ieee80211_free_txskb(&tx->local->hw, tx->skb); 1871 1871 else