[qca-nss-drv] Add IPv6 statistics notifier
Change-Id: I04c3e34cd8814cfe9b0a2c5a963091314a16555b
Signed-off-by: Wayne Tan <wtan@codeaurora.org>
diff --git a/nss_ipv6.c b/nss_ipv6.c
index 656a65f..e2a6b3b 100644
--- a/nss_ipv6.c
+++ b/nss_ipv6.c
@@ -1,6 +1,6 @@
/*
**************************************************************************
- * Copyright (c) 2014-2019, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-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,7 @@
#include <nss_core.h>
#include "nss_dscp_map.h"
#include "nss_ipv6_stats.h"
+#include "nss_ipv6_strings.h"
#define NSS_IPV6_TX_MSG_TIMEOUT 1000 /* 1 sec timeout for IPv6 messages */
@@ -103,9 +104,10 @@
switch (nim->cm.type) {
case NSS_IPV6_RX_NODE_STATS_SYNC_MSG:
/*
- * Update driver statistics on node sync.
+ * Update driver statistics on node sync and send statistics notifications to the registered modules.
*/
nss_ipv6_stats_node_sync(nss_ctx, &nim->msg.node_stats);
+ nss_ipv6_stats_notify(nss_ctx);
break;
case NSS_IPV6_RX_CONN_STATS_SYNC_MSG:
@@ -384,6 +386,7 @@
}
nss_ipv6_stats_dentry_create();
+ nss_ipv6_strings_dentry_create();
}
/*