common/cnxk: update MACsec pkt ok count
Checks
Commit Message
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 <gakhil@marvell.com>
---
drivers/common/cnxk/roc_mcs_stats.c | 5 +++++
1 file changed, 5 insertions(+)
Comments
On Sat, Jan 6, 2024 at 1:04 PM Akhil Goyal <gakhil@marvell.com> wrote:
>
> 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 <gakhil@marvell.com>
Applied to dpdk-next-net-mrvl/for-main. Thanks
@@ -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;