From 4de4f0b6bb2a028f05b844df48d010ce605bb1da Mon Sep 17 00:00:00 2001 From: Qosmio Date: Sat, 27 Jan 2024 18:47:10 -0500 Subject: [PATCH] qca-nss-drv: Remove legacy gmac stat Used for ipq806x platform, remove it from showing up in debugfs --- .../0011-nss-drv-remove-gmac-stat.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 qca/qca-nss-drv/patches/0011-nss-drv-remove-gmac-stat.patch diff --git a/qca/qca-nss-drv/patches/0011-nss-drv-remove-gmac-stat.patch b/qca/qca-nss-drv/patches/0011-nss-drv-remove-gmac-stat.patch new file mode 100644 index 0000000..fceebae --- /dev/null +++ b/qca/qca-nss-drv/patches/0011-nss-drv-remove-gmac-stat.patch @@ -0,0 +1,28 @@ +--- a/nss_stats.c ++++ b/nss_stats.c +@@ -392,9 +392,9 @@ void nss_stats_create_dentry(char *name, + /* + * gmac_stats_ops + */ +-#ifdef NSS_DATA_PLANE_GENERIC_SUPPORT +-NSS_STATS_DECLARE_FILE_OPERATIONS(gmac); +-#endif ++// #ifdef NSS_DATA_PLANE_GENERIC_SUPPORT ++// NSS_STATS_DECLARE_FILE_OPERATIONS(gmac); ++// #endif + + /* + * wt_stats_ops +@@ -449,9 +449,9 @@ void nss_stats_init(void) + /* + * gmac_stats + */ +-#ifdef NSS_DATA_PLANE_GENERIC_SUPPORT +- nss_stats_create_dentry("gmac", &nss_gmac_stats_ops); +-#endif ++// #ifdef NSS_DATA_PLANE_GENERIC_SUPPORT ++// nss_stats_create_dentry("gmac", &nss_gmac_stats_ops); ++// #endif + + /* + * Per-project stats