[03/34] net/cnxk: remove unnecessary delay on stats read

Message ID 20250131080530.3224977-3-ndabilpuram@marvell.com (mailing list archive)
State Changes Requested, archived
Delegated to: Jerin Jacob
Headers
Series [01/34] net/cnxk: allow duplicate SPI in outbound IPsec |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Nithin Dabilpuram Jan. 31, 2025, 8:04 a.m. UTC
Remove unnecessary delay on security stats read as
application is expected to poll if stats are not updated as expected.

It is expected that there would be a delay in stats to show up like
any other ethdev stats get API.

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
---
 drivers/net/cnxk/cn10k_ethdev_sec.c | 1 -
 1 file changed, 1 deletion(-)
  

Patch

diff --git a/drivers/net/cnxk/cn10k_ethdev_sec.c b/drivers/net/cnxk/cn10k_ethdev_sec.c
index 3f81913d41..68691d2bfe 100644
--- a/drivers/net/cnxk/cn10k_ethdev_sec.c
+++ b/drivers/net/cnxk/cn10k_ethdev_sec.c
@@ -1243,7 +1243,6 @@  cn10k_eth_sec_session_stats_get(void *device, struct rte_security_session *sess,
 			    ROC_NIX_INL_SA_OP_FLUSH);
 	if (rc)
 		return -EINVAL;
-	rte_delay_ms(1);
 
 	stats->protocol = RTE_SECURITY_PROTOCOL_IPSEC;