mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: add tx_nss histogram to ethtool stats
mt76_connac2_mac_fill_txs() counts tx_nss but ethtool doesn't show stats. Add missing histogram accordingly. Signed-off-by: Ben Greear <[email protected]> Signed-off-by: Ryder Lee <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -1739,6 +1739,9 @@ void mt76_ethtool_worker(struct mt76_ethtool_worker_info *wi,
|
|||||||
for (i = 0; i < (eht ? 14 : 12); i++)
|
for (i = 0; i < (eht ? 14 : 12); i++)
|
||||||
data[ei++] += stats->tx_mcs[i];
|
data[ei++] += stats->tx_mcs[i];
|
||||||
|
|
||||||
|
for (i = 0; i < 4; i++)
|
||||||
|
data[ei++] += stats->tx_nss[i];
|
||||||
|
|
||||||
wi->worker_stat_count = ei - wi->initial_stat_idx;
|
wi->worker_stat_count = ei - wi->initial_stat_idx;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(mt76_ethtool_worker);
|
EXPORT_SYMBOL_GPL(mt76_ethtool_worker);
|
||||||
|
|||||||
@@ -1280,6 +1280,10 @@ static const char mt7915_gstrings_stats[][ETH_GSTRING_LEN] = {
|
|||||||
"v_tx_mcs_9",
|
"v_tx_mcs_9",
|
||||||
"v_tx_mcs_10",
|
"v_tx_mcs_10",
|
||||||
"v_tx_mcs_11",
|
"v_tx_mcs_11",
|
||||||
|
"v_tx_nss_1",
|
||||||
|
"v_tx_nss_2",
|
||||||
|
"v_tx_nss_3",
|
||||||
|
"v_tx_nss_4",
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MT7915_SSTATS_LEN ARRAY_SIZE(mt7915_gstrings_stats)
|
#define MT7915_SSTATS_LEN ARRAY_SIZE(mt7915_gstrings_stats)
|
||||||
|
|||||||
@@ -1077,6 +1077,10 @@ static const char mt7921_gstrings_stats[][ETH_GSTRING_LEN] = {
|
|||||||
"v_tx_mcs_9",
|
"v_tx_mcs_9",
|
||||||
"v_tx_mcs_10",
|
"v_tx_mcs_10",
|
||||||
"v_tx_mcs_11",
|
"v_tx_mcs_11",
|
||||||
|
"v_tx_nss_1",
|
||||||
|
"v_tx_nss_2",
|
||||||
|
"v_tx_nss_3",
|
||||||
|
"v_tx_nss_4",
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
@@ -1177,6 +1177,10 @@ static const char mt7996_gstrings_stats[][ETH_GSTRING_LEN] = {
|
|||||||
"v_tx_mcs_11",
|
"v_tx_mcs_11",
|
||||||
"v_tx_mcs_12",
|
"v_tx_mcs_12",
|
||||||
"v_tx_mcs_13",
|
"v_tx_mcs_13",
|
||||||
|
"v_tx_nss_1",
|
||||||
|
"v_tx_nss_2",
|
||||||
|
"v_tx_nss_3",
|
||||||
|
"v_tx_nss_4",
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MT7996_SSTATS_LEN ARRAY_SIZE(mt7996_gstrings_stats)
|
#define MT7996_SSTATS_LEN ARRAY_SIZE(mt7996_gstrings_stats)
|
||||||
|
|||||||
Reference in New Issue
Block a user