mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: fix compile error without CONFIG_PAGE_POOL_STATS
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -1729,6 +1729,7 @@ EXPORT_SYMBOL_GPL(mt76_ethtool_worker);
|
||||
|
||||
void mt76_ethtool_page_pool_stats(struct mt76_dev *dev, u64 *data, int *index)
|
||||
{
|
||||
#ifdef CONFIG_PAGE_POOL_STATS
|
||||
struct page_pool_stats stats = {};
|
||||
int i;
|
||||
|
||||
@@ -1737,6 +1738,7 @@ void mt76_ethtool_page_pool_stats(struct mt76_dev *dev, u64 *data, int *index)
|
||||
|
||||
page_pool_ethtool_stats_get(data, &stats);
|
||||
*index += page_pool_ethtool_stats_get_count();
|
||||
#endif
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mt76_ethtool_page_pool_stats);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user