From: Subbaraya Sundeep <sbhatta@marvell.com>
To: Alok Tiwari <alok.a.tiwari@oracle.com>
Cc: <hkelam@marvell.com>, <jerinj@marvell.com>, <gakula@marvell.com>,
<lcherian@marvell.com>, <sgoutham@marvell.com>,
<andrew+netdev@lunn.ch>, <kuba@kernel.org>, <davem@davemloft.net>,
<edumazet@google.com>, <pabeni@redhat.com>,
<netdev@vger.kernel.org>, <alok.a.tiwarilinux@gmail.com>
Subject: Re: [PATCH net-next] octeontx2-af: make PF_FUNC comparison consistent in NIX XOFF handling
Date: Thu, 5 Mar 2026 11:58:56 +0530 [thread overview]
Message-ID: <20260305062856.GA3263260@kernel-ep2> (raw)
In-Reply-To: <20260304193950.2467391-1-alok.a.tiwari@oracle.com>
On 2026-03-05 at 01:09:48, Alok Tiwari (alok.a.tiwari@oracle.com) wrote:
> nix_smq_flush_enadis_xoff() compares PF_FUNC values with the FUNC bits
> masked off, but one operand applied the mask before extracting PF_FUNC
> via TXSCH_MAP_FUNC().
>
> Apply RVU_PFVF_FUNC_MASK after TXSCH_MAP_FUNC() for the TL2 scheduler
> queue operand, matching the existing handling of the other operand and
> making the comparison consistent and clearer.
>
> No functional change intended.
>
Yes no impact on functionality.
> Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Subbaraya Sundeep <sbhatta@marvell.com>
Thanks,
Sundeep
> ---
> drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
> index 98dd68137a09..32f1b1676a1e 100644
> --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
> +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
> @@ -2391,8 +2391,8 @@ static void nix_smq_flush_enadis_xoff(struct rvu *rvu, int blkaddr,
> continue;
> /* skip if PF_FUNC doesn't match */
> if ((TXSCH_MAP_FUNC(txsch->pfvf_map[tl2]) & ~RVU_PFVF_FUNC_MASK) !=
> - (TXSCH_MAP_FUNC(txsch->pfvf_map[tl2_schq] &
> - ~RVU_PFVF_FUNC_MASK)))
> + (TXSCH_MAP_FUNC(txsch->pfvf_map[tl2_schq]) &
> + ~RVU_PFVF_FUNC_MASK))
> continue;
> /* enable/disable XOFF */
> regoff = NIX_AF_TL2X_SW_XOFF(tl2);
> --
> 2.50.1
>
next prev parent reply other threads:[~2026-03-05 6:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-04 19:39 [PATCH net-next] octeontx2-af: make PF_FUNC comparison consistent in NIX XOFF handling Alok Tiwari
2026-03-05 6:28 ` Subbaraya Sundeep [this message]
2026-03-06 3:33 ` patchwork-bot+netdevbpf
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=20260305062856.GA3263260@kernel-ep2 \
--to=sbhatta@marvell.com \
--cc=alok.a.tiwari@oracle.com \
--cc=alok.a.tiwarilinux@gmail.com \
--cc=andrew+netdev@lunn.ch \
--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=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.