Merge "[qca-nss-drv] Receving the edma allocation fail count stat"
diff --git a/exports/nss_edma.h b/exports/nss_edma.h
index b1129d2..d21b3e6 100644
--- a/exports/nss_edma.h
+++ b/exports/nss_edma.h
@@ -144,13 +144,14 @@
struct nss_edma_misc_err_stats {
uint32_t axi_rd_err; /**< EDMA AXI read error. */
uint32_t axi_wr_err; /**< EDMA AXI write error. */
- uint32_t rx_desc_fifo_full_err; /**< EDMA Receive descriptor FIFO full error. */
- uint32_t rx_buf_size_err; /**< EDMA Receive buffer size error. */
- uint32_t tx_sram_full_err; /**< EDMA Transmit SRAM full error. */
- uint32_t tx_cmpl_buf_full_err; /**< EDMA Transmit completion buffer full error. */
+ uint32_t rx_desc_fifo_full_err; /**< EDMA receive descriptor FIFO full error. */
+ uint32_t rx_buf_size_err; /**< EDMA receive buffer size error. */
+ uint32_t tx_sram_full_err; /**< EDMA transmit SRAM full error. */
+ uint32_t tx_cmpl_buf_full_err; /**< EDMA transmit completion buffer full error. */
uint32_t pkt_len_la64k_err; /**< EDMA packet length greater than 64k error. */
uint32_t pkt_len_le33_err; /**< EDMA packet length smaller than 33b error. */
uint32_t data_len_err; /**< EDMA data length error. */
+ uint32_t alloc_fail_cnt; /**< EDMA number of times the allocation of pbuf for statistics failed. */
};
/**
diff --git a/nss_core.h b/nss_core.h
index 4040aa2..428fb82 100644
--- a/nss_core.h
+++ b/nss_core.h
@@ -1309,6 +1309,7 @@
NSS_EDMA_PKT_LEN_LA64K_ERR,
NSS_EDMA_PKT_LEN_LE33_ERR,
NSS_EDMA_DATA_LEN_ERR,
+ NSS_EDMA_ALLOC_FAIL_CNT,
NSS_EDMA_ERR_STATS_MAX
};
diff --git a/nss_edma.c b/nss_edma.c
index 7037010..ed63365 100644
--- a/nss_edma.c
+++ b/nss_edma.c
@@ -123,6 +123,7 @@
nss_top->stats_edma.misc_err[NSS_EDMA_PKT_LEN_LA64K_ERR] += nerss->msg_err_stats.pkt_len_la64k_err;
nss_top->stats_edma.misc_err[NSS_EDMA_PKT_LEN_LE33_ERR] += nerss->msg_err_stats.pkt_len_le33_err;
nss_top->stats_edma.misc_err[NSS_EDMA_DATA_LEN_ERR] += nerss->msg_err_stats.data_len_err;
+ nss_top->stats_edma.misc_err[NSS_EDMA_ALLOC_FAIL_CNT] += nerss->msg_err_stats.alloc_fail_cnt;
spin_unlock_bh(&nss_top->stats_lock);
}
diff --git a/nss_stats.c b/nss_stats.c
index 0447fa5..db925b8 100644
--- a/nss_stats.c
+++ b/nss_stats.c
@@ -279,7 +279,8 @@
"tx_cmpl_buf_full_err",
"pkt_len_la64k_err",
"pkt_len_le33_err",
- "data_len_err"
+ "data_len_err",
+ "alloc_fail_cnt"
};
/*