]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
octeontx2-af: make PF_FUNC comparison consistent in NIX XOFF handling
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Wed, 4 Mar 2026 19:39:48 +0000 (11:39 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Mar 2026 02:31:46 +0000 (18:31 -0800)
commit58a4c3e8006504bf18e0ddd2dcba6f414bed7680
treeae5de1fdffbba11b3d8dafbe85d221720b8db363
parentcfcceb7a39fc10a6f896af8229bf81d96acb22cc
octeontx2-af: make PF_FUNC comparison consistent in NIX XOFF handling

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.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Subbaraya Sundeep <sbhatta@marvell.com>
Link: https://patch.msgid.link/20260304193950.2467391-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c