netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Srujana Challa <schalla@marvell.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org,
	edumazet@google.com, pabeni@redhat.com, jerinj@marvell.com,
	sgoutham@marvell.com, lcherian@marvell.com, gakula@marvell.com,
	sbhatta@marvell.com, hkelam@marvell.com
Subject: Re: [PATCH v1 net-next,8/8] octeontx2-af: add mbox to return CPT_AF_FLT_INT info
Date: Tue, 10 Jan 2023 14:11:51 +0200	[thread overview]
Message-ID: <Y71WBwIt6lKrlUV3@unreal> (raw)
In-Reply-To: <20230110062258.892887-9-schalla@marvell.com>

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

  reply	other threads:[~2023-01-10 12:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-10  6:22 [PATCH v1 net-next,0/8] octeontx2-af: Miscellaneous changes for CPT Srujana Challa
2023-01-10  6:22 ` [PATCH v1 net-next,1/8] octeontx2-af: recover CPT engine when it gets fault Srujana Challa
2023-01-10  6:22 ` [PATCH v1 net-next,2/8] octeontx2-af: add mbox for CPT LF reset Srujana Challa
2023-01-10  6:22 ` [PATCH v1 net-next,3/8] octeontx2-af: modify FLR sequence for CPT Srujana Challa
2023-01-10  6:22 ` [PATCH v1 net-next,4/8] octeontx2-af: optimize cpt pf identification Srujana Challa
2023-01-10  6:22 ` [PATCH v1 net-next,5/8] octeontx2-af: restore rxc conf after teardown sequence Srujana Challa
2023-01-10  6:22 ` [PATCH v1 net-next,6/8] octeontx2-af: update CPT inbound inline IPsec config mailbox Srujana Challa
2023-01-10  6:22 ` [PATCH v1 net-next,7/8] octeontx2-af: add ctx ilen to cpt lf alloc mailbox Srujana Challa
2023-01-10  6:22 ` [PATCH v1 net-next,8/8] octeontx2-af: add mbox to return CPT_AF_FLT_INT info Srujana Challa
2023-01-10 12:11   ` Leon Romanovsky [this message]
2023-01-11 11:20     ` [EXT] " Srujana Challa
  -- strict thread matches above, loose matches on Subject: below --
2023-01-10  6:20 [PATCH v1 net-next,0/8] octeontx2-af: Miscellaneous changes for CPT Srujana Challa
2023-01-10  6:20 ` [PATCH v1 net-next,8/8] octeontx2-af: add mbox to return CPT_AF_FLT_INT info Srujana Challa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y71WBwIt6lKrlUV3@unreal \
    --to=leon@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=gakula@marvell.com \
    --cc=hkelam@marvell.com \
    --cc=jerinj@marvell.com \
    --cc=kuba@kernel.org \
    --cc=lcherian@marvell.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sbhatta@marvell.com \
    --cc=schalla@marvell.com \
    --cc=sgoutham@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).