[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y71WBwIt6lKrlUV3@unreal>
Date: Tue, 10 Jan 2023 14:11:51 +0200
From: Leon Romanovsky <leon@...nel.org>
To: Srujana Challa <schalla@...vell.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, kuba@...nel.org,
edumazet@...gle.com, pabeni@...hat.com, jerinj@...vell.com,
sgoutham@...vell.com, lcherian@...vell.com, gakula@...vell.com,
sbhatta@...vell.com, hkelam@...vell.com
Subject: Re: [PATCH v1 net-next,8/8] octeontx2-af: add mbox to return
CPT_AF_FLT_INT info
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@...vell.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
Powered by blists - more mailing lists