[qca-nss-drv] IPv6 fragmentation statistics
Add IPv6 fragmentation statistics
CRs-Fixed: 836942
Change-Id: Id21b909d4fb7224ebfaa49aa9f0950010323c8b3
Signed-off-by: Selin Dag <sdag@codeaurora.org>
diff --git a/exports/nss_ipv6.h b/exports/nss_ipv6.h
index 9d3f6e4..c923613 100644
--- a/exports/nss_ipv6.h
+++ b/exports/nss_ipv6.h
@@ -353,6 +353,10 @@
/**< Number of IPv6 connection flushes */
uint32_t ipv6_connection_evictions;
/**< Number of IPv6 connection evictions */
+ uint32_t ipv6_fragmentations;
+ /**< Number of successful IPv6 fragmentations */
+ uint32_t ipv6_frag_fails;
+ /**< Number of IPv6 fragmentation fails */
uint32_t exception_events[NSS_EXCEPTION_EVENT_IPV6_MAX];
/**< Number of IPv6 exception events */
};
diff --git a/nss_core.h b/nss_core.h
index 6ef0c28..831727f 100755
--- a/nss_core.h
+++ b/nss_core.h
@@ -291,6 +291,10 @@
/* Number of IPv6 connection flushes */
NSS_STATS_IPV6_CONNECTION_EVICTIONS,
/* Number of IPv6 connection evictions */
+ NSS_STATS_IPV6_FRAGMENTATIONS,
+ /* Number of successful IPv6 fragmentations performed */
+ NSS_STATS_IPV6_FRAG_FAILS,
+ /* Number of IPv6 fragmentation fails */
NSS_STATS_IPV6_MAX,
};
diff --git a/nss_ipv6.c b/nss_ipv6.c
index 9e6d286..3257624 100644
--- a/nss_ipv6.c
+++ b/nss_ipv6.c
@@ -80,6 +80,8 @@
nss_top->stats_ipv6[NSS_STATS_IPV6_CONNECTION_HASH_REORDERS] += nins->ipv6_connection_hash_reorders;
nss_top->stats_ipv6[NSS_STATS_IPV6_CONNECTION_FLUSHES] += nins->ipv6_connection_flushes;
nss_top->stats_ipv6[NSS_STATS_IPV6_CONNECTION_EVICTIONS] += nins->ipv6_connection_evictions;
+ nss_top->stats_ipv6[NSS_STATS_IPV6_FRAGMENTATIONS] += nins->ipv6_fragmentations;
+ nss_top->stats_ipv6[NSS_STATS_IPV6_FRAG_FAILS] += nins->ipv6_frag_fails;
for (i = 0; i < NSS_EXCEPTION_EVENT_IPV6_MAX; i++) {
nss_top->stats_if_exception_ipv6[i] += nins->exception_events[i];
diff --git a/nss_stats.c b/nss_stats.c
index 90bc0e8..9800641 100644
--- a/nss_stats.c
+++ b/nss_stats.c
@@ -97,6 +97,8 @@
"hash_reorders",
"flushes",
"evictions",
+ "fragmentations",
+ "frag_fails",
};
/*