* [PATCH net] octeontx2-af: Fix npc_delete_flow counter read for cn20k
@ 2026-10-23 10:01 vmukunda
2026-10-23 10:06 ` netdev-bot+sinfo
0 siblings, 1 reply; 2+ messages in thread
From: vmukunda @ 2026-10-23 10:01 UTC (permalink / raw)
To: netdev, linux-kernel
Cc: Sunil Goutham, Ratheesh Kannoth, Geetha sowjanya,
Subbaraya Sundeep, Andrew Lunn, David S . Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, vmukunda
From: Subbaraya Sundeep <sbhatta@marvell.com>
On cn20k, the MCAM match counter cannot be read from
NPC_AF_MATCH_STATX. Skip reading the counter value in
npc_delete_flow on cn20k. Counter support for cn20k is TBD.
Fixes: 5f83b4729440 ("octeontx2-af: Do not access match stats for cn20k")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: vmukunda <vmukunda@marvell.com>
---
---
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
index ea5d462a66ee..06916b38ae2c 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
@@ -1960,7 +1960,7 @@ int rvu_mbox_handler_npc_delete_flow(struct rvu *rvu,
/* single rule */
} else if (req->entry == iter->entry) {
blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0);
- if (blkaddr)
+ if (blkaddr && !is_cn20k(rvu_pdev))
rsp->cntr_val = rvu_read64(rvu, blkaddr,
NPC_AF_MATCH_STATX(iter->cntr));
list_move_tail(&iter->list, &del_list);
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH net] octeontx2-af: Fix npc_delete_flow counter read for cn20k
2026-10-23 10:01 [PATCH net] octeontx2-af: Fix npc_delete_flow counter read for cn20k vmukunda
@ 2026-10-23 10:06 ` netdev-bot+sinfo
0 siblings, 0 replies; 2+ messages in thread
From: netdev-bot+sinfo @ 2026-10-23 10:06 UTC (permalink / raw)
To: vmukunda
Cc: netdev, linux-kernel, Sunil Goutham, Ratheesh Kannoth,
Geetha sowjanya, Subbaraya Sundeep, Andrew Lunn,
David S . Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
Hi!
This is an automated message. This series looks like a fix, but its
commit messages seem to be missing some information:
- How the issue was discovered, e.g. hit in production, hit during
development, syzbot report, manual code inspection, LLM or static
analysis tool scan.
- Whether the issue was actually triggered, or is only theoretical
(e.g. found by code inspection). If it was triggered please include
the symptoms, like the stack trace or error messages.
Please do not repost the series just to address the above. Instead,
reply to this email with the missing information, so that reviewers
can take it into account. If the series needs another revision for
other reasons, please include the information in the commit messages
then.
The evaluation is done by an LLM so it may be wrong, if you think
that is the case please reply and explain.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-23 10:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23 10:01 [PATCH net] octeontx2-af: Fix npc_delete_flow counter read for cn20k vmukunda
2026-10-23 10:06 ` netdev-bot+sinfo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®