Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Alok Tiwari and committed by
Jakub Kicinski
58a4c3e8 cfcceb7a

+2 -2
+2 -2
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
··· 2391 2391 continue; 2392 2392 /* skip if PF_FUNC doesn't match */ 2393 2393 if ((TXSCH_MAP_FUNC(txsch->pfvf_map[tl2]) & ~RVU_PFVF_FUNC_MASK) != 2394 - (TXSCH_MAP_FUNC(txsch->pfvf_map[tl2_schq] & 2395 - ~RVU_PFVF_FUNC_MASK))) 2394 + (TXSCH_MAP_FUNC(txsch->pfvf_map[tl2_schq]) & 2395 + ~RVU_PFVF_FUNC_MASK)) 2396 2396 continue; 2397 2397 /* enable/disable XOFF */ 2398 2398 regoff = NIX_AF_TL2X_SW_XOFF(tl2);