[qca-edma] Add atomic_inc for prec-stats
Per precedence stats were not synchronized.
Add fix to synchronize the stats with atomic_inc
Change-Id: I710f4aa3077c8fc086876b5aa320e698e2faed5b
Signed-off-by: Rakesh Nair <ranair@codeaurora.org>
diff --git a/edma.h b/edma.h
index ac1752b..73b7b5f 100644
--- a/edma.h
+++ b/edma.h
@@ -244,8 +244,8 @@
u64 rx_q7_byte;
u64 tx_desc_error;
u64 rx_alloc_fail_ctr;
- u64 tx_prec[EDMA_PRECEDENCE_MAX];
- u64 rx_prec[EDMA_PRECEDENCE_MAX];
+ atomic64_t tx_prec[EDMA_PRECEDENCE_MAX];
+ atomic64_t rx_prec[EDMA_PRECEDENCE_MAX];
u64 rx_ac[EDMA_AC_MAX];
u64 tx_ac[EDMA_AC_MAX];
u64 rx_flow_iad[EDMA_MAX_IAD_FLOW_STATS_SUPPORTED];