Thread (11 messages) flat view 11 messages, 2 authors, 2023-01-11

Re: [PATCH v1 net-next,8/8] octeontx2-af: add mbox to return CPT_AF_FLT_INT info

From: Leon Romanovsky <leon@kernel.org>
Date: 2023-01-10 12:14:16

On Tue, Jan 10, 2023 at 11:52:58AM +0530, Srujana Challa wrote:
Adds a new mailbox to return CPT faulted engines bitmap
and recovered engines bitmap.

Signed-off-by: Srujana Challa <schalla@marvell.com>
---
 .../net/ethernet/marvell/octeontx2/af/mbox.h  | 17 ++++++++++
 .../net/ethernet/marvell/octeontx2/af/rvu.h   |  4 +++
 .../ethernet/marvell/octeontx2/af/rvu_cpt.c   | 34 +++++++++++++++++++
 3 files changed, 55 insertions(+)
<...>
+		spin_lock(&rvu->cpt_intr_lock);
+		block->cpt_flt_eng_map[vec] |= BIT_ULL(i);
+		val = rvu_read64(rvu, blkaddr, CPT_AF_EXEX_STS(eng));
+		if ((val & 0x2) || (!(val & 0x2) && (val & 0x1)))
I would say that this "if" is equal to (val & 0x2 || val & 0x1)

Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help