mirror of
https://github.com/qosmio/nss-packages.git
synced 2025-12-16 16:21:53 +00:00
This commit updates 12.5 version of the nss-drv from: 30fbfa4 -> 4dfab93 Bringing in the following changes: ``` 2024-11-13 - d5ee67b - Add support for clearing N2H stats 2024-11-13 - 4850be3 - Add support for clearing DRV stats 2024-11-13 - 3d7c16d - Add support for clearing capwap stats 2024-11-13 - 163fbf4 - Add support clearing Crypto CMN stats 2024-11-13 - 084b475 - Add support for clearing DTLS CMN stats 2024-11-13 - e32f844 - Add support clearing PVxLAN stats 2024-11-13 - 2f54141 - Add support for clearing ipv6 stats 2024-11-13 - 702b14c - Add support for clearing C2C TX stats 2024-11-13 - 201dbc5 - Add support for clearing ipv4 stats 2024-11-13 - 24b6f1a - Add support for clearing eth_rx stats 2024-11-05 - 6e242de - Add support for clearing C2C RX stats 2024-11-05 - 942593c - Added a flag to identify if HW UDP checksum is supported for udp_st 2024-11-05 - e11eb4e - Add support for clearing Trustsec TX stats 2024-11-05 - 4f01399 - Add support for clearing EDMA Lite stats 2024-11-05 - 45b9a31 - Add support for clearing Trustsec RX stats 2024-11-05 - 57b338d - Add baseline stats write functionality 2024-10-16 - b671190 - Fix dtsi parameter that controls enabling UBI 2024-10-08 - 9514a99 - Enabling qca-nss-drv on 6.6 kernel 2024-07-16 - e96972f - udp_st: Add a new mode to handle unsynchronized time. 2024-05-16 - 1db9e55 - Add missing error code for wifili pkg. ``` Stats can be cleared by echoing `0` to the corresponding stats file. For example, to clear the N2H stats, you can run: ``` echo 0 > /sys/kernel/debug/qca-nss-drv/stats/n2h ```
58 lines
1.3 KiB
Diff
58 lines
1.3 KiB
Diff
--- a/nss_stats.c
|
|
+++ b/nss_stats.c
|
|
@@ -407,9 +407,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
|
|
@@ -464,9 +464,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
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -26,7 +26,6 @@ qca-nss-drv-objs := \
|
|
nss_n2h_stats.o \
|
|
nss_n2h_strings.o \
|
|
nss_pm.o \
|
|
- nss_profiler.o \
|
|
nss_project.o \
|
|
nss_rps.o \
|
|
nss_stats.o \
|
|
@@ -40,7 +39,6 @@ qca-nss-drv-objs += nss_hal/nss_hal.o
|
|
|
|
ifneq "$(NSS_DRV_POINT_OFFLOAD)" "y"
|
|
qca-nss-drv-objs += \
|
|
- nss_gmac_stats.o \
|
|
nss_if.o \
|
|
nss_if_log.o \
|
|
nss_phys_if.o \
|
|
@@ -381,7 +379,9 @@ endif
|
|
|
|
ifeq ($(SoC),$(filter $(SoC),ipq806x))
|
|
qca-nss-drv-objs += nss_data_plane/nss_data_plane_gmac.o \
|
|
- nss_hal/ipq806x/nss_hal_pvt.o
|
|
+ nss_hal/ipq806x/nss_hal_pvt.o \
|
|
+ nss_gmac_stats.o \
|
|
+ nss_profiler.o
|
|
|
|
ifneq "$(NSS_DRV_C2C_ENABLE)" "n"
|
|
ccflags-y += -DNSS_DRV_C2C_ENABLE
|