mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-05-21 05:38:00 +00:00
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.28 Removed upstreamed: generic/pending-6.12/691-net-ipv6-fix-UDPv6-GSO-segmentation-with-NAT.patch[1] Manually rebased: generic/pending-6.12/737-net-ethernet-mtk_eth_soc-add-paths-and-SerDes-modes-.patch[2] generic/hack-6.12/781-usb-net-rndis-support-asr.patch[3] 1. https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=6effe1c0fa823d9923f3b77547f201a5bab6c1e5 2. https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=aea3ca60fafbdf0da5c930ff2f4105587deb6753 3. https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=222b6685efe0d8c1cdb078a67bbe806f56d18f94 All other patches automatically rebased. Build system: x86/64 Build-tested: x86/64 Run-tested: x86/64 Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/18756 Signed-off-by: Robert Marko <robimarko@gmail.com>
44 lines
1.3 KiB
Diff
44 lines
1.3 KiB
Diff
From: Danila Romanov <pervokur@gmail.com>
|
|
Date: Wed, 22 Jan 2025 06:48:45 +0100
|
|
Subject: [PATCH] net: ethernet: mtk_eth_soc: do not enable page pool stats by
|
|
default
|
|
|
|
There is no reason for it to be enabled by default.
|
|
Align mtk_eth_soc driver to mt76 driver.
|
|
|
|
This option incurs additional CPU cost in allocation and recycle paths
|
|
and additional memory cost to store the statistics.
|
|
|
|
Signed-off-by: Danila Romanov <pervokur@gmail.com>
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
---
|
|
|
|
--- a/drivers/net/ethernet/mediatek/Kconfig
|
|
+++ b/drivers/net/ethernet/mediatek/Kconfig
|
|
@@ -26,7 +26,6 @@ config NET_MEDIATEK_SOC
|
|
select PHYLINK
|
|
select DIMLIB
|
|
select PAGE_POOL
|
|
- select PAGE_POOL_STATS
|
|
select PCS_MTK_LYNXI
|
|
select REGMAP_MMIO
|
|
help
|
|
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
|
|
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
|
|
@@ -4591,6 +4591,7 @@ static int mtk_get_sset_count(struct net
|
|
|
|
static void mtk_ethtool_pp_stats(struct mtk_eth *eth, u64 *data)
|
|
{
|
|
+#ifdef CONFIG_PAGE_POOL_STATS
|
|
struct page_pool_stats stats = {};
|
|
int i;
|
|
|
|
@@ -4603,6 +4604,7 @@ static void mtk_ethtool_pp_stats(struct
|
|
page_pool_get_stats(ring->page_pool, &stats);
|
|
}
|
|
page_pool_ethtool_stats_get(data, &stats);
|
|
+#endif
|
|
}
|
|
|
|
static void mtk_get_ethtool_stats(struct net_device *dev,
|