nss-packages-qosmio/qca/qca-nss-drv/patches/0011-nss-drv-remove-gmac-stat.patch
Qosmio 4de4f0b6bb qca-nss-drv: Remove legacy gmac stat
Used for ipq806x platform, remove it from showing up in debugfs
2024-01-27 18:47:10 -05:00

29 lines
653 B
Diff

--- 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