[qca-nss-drv] Add payload free count statistic
Add additional field to n2h stat structure
CRs-Fixed: 785448
Change-Id: Idbfbdd909c2fbb03173f81e8d45b358f6658bff0
Signed-off-by: Thomas Wu <wthomas@codeaurora.org>
diff --git a/nss_n2h.c b/nss_n2h.c
index f1b46d8..883f69b 100755
--- a/nss_n2h.c
+++ b/nss_n2h.c
@@ -84,6 +84,7 @@
* payload mgr stats
*/
nss_ctx->stats_n2h[NSS_STATS_N2H_PAYLOAD_ALLOC_FAILS] += nnss->payload_alloc_fails;
+ nss_ctx->stats_n2h[NSS_STATS_N2H_PAYLOAD_FREE_COUNT] = nnss->payload_free_count;
/*
* Host <=> NSS control traffic stats