[qca-nss-drv] Add N2H statistics notifier
Change-Id: I3525f26a8b218aa3c7678c9179dec84b99824958
Signed-off-by: Wayne Tan <wtan@codeaurora.org>
diff --git a/nss_n2h.c b/nss_n2h.c
index dd414f3..846bd64 100644
--- a/nss_n2h.c
+++ b/nss_n2h.c
@@ -1,6 +1,6 @@
/*
**************************************************************************
- * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all copies.
@@ -21,6 +21,8 @@
#include "nss_tx_rx_common.h"
#include "nss_n2h_stats.h"
+#include "nss_n2h_strings.h"
+#include "nss_drv_strings.h"
#define NSS_N2H_MAX_BUF_POOL_SIZE (1024 * 1024 * 20) /* 20MB */
#define NSS_N2H_MIN_EMPTY_POOL_BUF_SZ 32
@@ -94,7 +96,11 @@
break;
case NSS_RX_METADATA_TYPE_N2H_STATS_SYNC:
+ /*
+ * Update driver statistics and send statistics notifications to the registered modules.
+ */
nss_n2h_stats_sync(nss_ctx, &nnm->msg.stats_sync);
+ nss_n2h_stats_notify(nss_ctx);
break;
default:
@@ -2057,6 +2063,9 @@
if (nss_ctx->id == NSS_CORE_0) {
nss_n2h_stats_dentry_create();
}
+ nss_n2h_strings_dentry_create();
+
+ nss_drv_strings_dentry_create();
}
/*