DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] common/cnxk: update MACsec pkt ok count
@ 2024-01-05  9:15 Akhil Goyal
  2024-01-10 17:07 ` Jerin Jacob
  0 siblings, 1 reply; 2+ messages in thread
From: Akhil Goyal @ 2024-01-05  9:15 UTC (permalink / raw)
  To: dev; +Cc: jerinj, Akhil Goyal

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] common/cnxk: update MACsec pkt ok count
  2024-01-05  9:15 [PATCH] common/cnxk: update MACsec pkt ok count Akhil Goyal
@ 2024-01-10 17:07 ` Jerin Jacob
  0 siblings, 0 replies; 2+ messages in thread
From: Jerin Jacob @ 2024-01-10 17:07 UTC (permalink / raw)
  To: Akhil Goyal; +Cc: dev, jerinj

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-10 17:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-05  9:15 [PATCH] common/cnxk: update MACsec pkt ok count Akhil Goyal
2024-01-10 17:07 ` Jerin Jacob

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).