[qca-nss-drv] separate stats for ext packets
Add a different statistics counter for EXT
packet received in host from NSS.
Change-Id: Idca1a57ef2a428711993ade3ee5660edc29ea168
Signed-off-by: Amit Gupta <amitgupt@codeaurora.org>
diff --git a/nss_core.c b/nss_core.c
index b41a209..2bb6f94 100644
--- a/nss_core.c
+++ b/nss_core.c
@@ -861,7 +861,7 @@
struct net_device *ndev = NULL;
nss_phys_if_rx_ext_data_callback_t ext_cb;
- NSS_PKT_STATS_INC(&nss_top->stats_drv[NSS_STATS_DRV_RX_PACKET]);
+ NSS_PKT_STATS_INC(&nss_top->stats_drv[NSS_STATS_DRV_RX_EXT_PACKET]);
/*
* Check if NSS was able to obtain checksum
diff --git a/nss_core.h b/nss_core.h
index ccccbb7..cda6a48 100644
--- a/nss_core.h
+++ b/nss_core.h
@@ -342,6 +342,7 @@
NSS_STATS_DRV_TX_BUFFER_REUSE, /* H2N Reuse buffer count */
NSS_STATS_DRV_RX_EMPTY, /* N2H Empty buffers */
NSS_STATS_DRV_RX_PACKET, /* N2H Data packets */
+ NSS_STATS_DRV_RX_EXT_PACKET, /* N2H EXT type packets */
NSS_STATS_DRV_RX_CMD_RESP, /* N2H Command responses */
NSS_STATS_DRV_RX_STATUS, /* N2H Status packets */
NSS_STATS_DRV_RX_CRYPTO_RESP, /* N2H Crypto responses */
diff --git a/nss_stats.c b/nss_stats.c
index 516c85d..24a9715 100644
--- a/nss_stats.c
+++ b/nss_stats.c
@@ -41,6 +41,7 @@
"tx_buffers_reuse",
"rx_buffers_empty",
"rx_buffers_pkt",
+ "rx_buffer_ext_pkt",
"rx_buffers_cmd_resp",
"rx_buffers_status_sync",
"rx_buffers_crypto",