In case of 103xx platform, the packet unchecked count is same as packet ok count when validate frames is set in secy configuration. And when validate frames is not set, then also unchecked count can be treated as ok count.
Signed-off-by: Akhil Goyal <gak...@marvell.com> --- drivers/common/cnxk/roc_mcs_stats.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/common/cnxk/roc_mcs_stats.c b/drivers/common/cnxk/roc_mcs_stats.c index cac611959d..9e5d62c9e2 100644 --- a/drivers/common/cnxk/roc_mcs_stats.c +++ b/drivers/common/cnxk/roc_mcs_stats.c @@ -120,6 +120,11 @@ roc_mcs_sc_stats_get(struct roc_mcs *mcs, struct roc_mcs_stats_req *mcs_req, if (roc_model_is_cn10kb_a0()) { stats->octet_decrypt_cnt = rsp->octet_decrypt_cnt; stats->octet_validate_cnt = rsp->octet_validate_cnt; + /* + * If validate frame is enabled in secy configuration, + * pkt unchecked count is same as pkt ok count. + */ + stats->pkt_ok_cnt = rsp->pkt_unchecked_cnt; } else { stats->pkt_delay_cnt = rsp->pkt_delay_cnt; stats->pkt_ok_cnt = rsp->pkt_ok_cnt; -- 2.25.1