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

From: Leon Romanovsky <[email-masked]>
Date: Tue, 10 Jan 2023 14:11:51 +0200

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 <[email-masked]>
> ---
>  .../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