[qca-nss-drv] Correct GRE Tunnel Subsystem Statistics
Fix the problem of not externing data structures properly.
Preventing statistics from being shown.
Change-Id: I7f94e8d9f29715c461e88ef72d10c72b2d5a8782
Signed-off-by: Thomas Wu <wthomas@codeaurora.org>
diff --git a/nss_gre_tunnel_stats.c b/nss_gre_tunnel_stats.c
index a4fd60e..5d882c6 100644
--- a/nss_gre_tunnel_stats.c
+++ b/nss_gre_tunnel_stats.c
@@ -17,6 +17,9 @@
#include "nss_tx_rx_common.h"
#include "nss_gre_tunnel_stats.h"
+DEFINE_SPINLOCK(nss_gre_tunnel_stats_session_debug_lock);
+struct nss_gre_tunnel_stats_session_debug nss_gre_tunnel_session_debug_stats[NSS_MAX_GRE_TUNNEL_SESSIONS];
+
/*
* nss_gre_tunnel_stats_session_debug_str
* GRE Tunnel statistics strings for nss session stats
diff --git a/nss_gre_tunnel_stats.h b/nss_gre_tunnel_stats.h
index f53eb38..f76b786 100644
--- a/nss_gre_tunnel_stats.h
+++ b/nss_gre_tunnel_stats.h
@@ -63,8 +63,8 @@
/*
* Data structures to store GRE Tunnel nss debug stats
*/
-static DEFINE_SPINLOCK(nss_gre_tunnel_stats_session_debug_lock);
-static struct nss_gre_tunnel_stats_session_debug nss_gre_tunnel_session_debug_stats[NSS_MAX_GRE_TUNNEL_SESSIONS];
+extern spinlock_t nss_gre_tunnel_stats_session_debug_lock;
+extern struct nss_gre_tunnel_stats_session_debug nss_gre_tunnel_session_debug_stats[NSS_MAX_GRE_TUNNEL_SESSIONS];
/*
* GRE Tunnel statistics APIs