Skip to content

Commit f852c95

Browse files
anoobjAkhil Goyal
authored andcommitted
crypto/cnxk: remove delay in stats
Having 1 ms delay for retrieving stats per session would mean significant delay for a system with large number of sessions. If accurate stats are required, application can call stats again after a delay and get most updated stats. Signed-off-by: Anoob Joseph <[email protected]> Acked-by: Akhil Goyal <[email protected]>
1 parent db65855 commit f852c95

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/crypto/cnxk/cn10k_ipsec.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,13 +350,11 @@ cn10k_ipsec_stats_get(struct cnxk_cpt_qp *qp, struct cn10k_sec_session *sess,
350350
if (sess->ipsec.is_outbound) {
351351
out_sa = &sa->out_sa;
352352
roc_cpt_lf_ctx_flush(&qp->lf, out_sa, false);
353-
rte_delay_ms(1);
354353
stats->ipsec.opackets = out_sa->ctx.mib_pkts;
355354
stats->ipsec.obytes = out_sa->ctx.mib_octs;
356355
} else {
357356
in_sa = &sa->in_sa;
358357
roc_cpt_lf_ctx_flush(&qp->lf, in_sa, false);
359-
rte_delay_ms(1);
360358
stats->ipsec.ipackets = in_sa->ctx.mib_pkts;
361359
stats->ipsec.ibytes = in_sa->ctx.mib_octs;
362360
}

0 commit comments

Comments
 (0)