DPDK patches and discussions
 help / color / mirror / Atom feed
From: Akhil Goyal <gakhil@marvell.com>
To: <dev@dpdk.org>
Cc: <jerinj@marvell.com>, Akhil Goyal <gakhil@marvell.com>
Subject: [PATCH] common/cnxk: update MACsec pkt ok count
Date: Fri, 5 Jan 2024 14:45:16 +0530	[thread overview]
Message-ID: <20240105091516.2508910-1-gakhil@marvell.com> (raw)

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(+)

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


             reply	other threads:[~2024-01-05  9:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-05  9:15 Akhil Goyal [this message]
2024-01-10 17:07 ` Jerin Jacob

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240105091516.2508910-1-gakhil@marvell.com \
    --to=gakhil@marvell.com \
    --cc=dev@dpdk.org \
    --cc=jerinj@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).