i40e: Fix wrong check for I40E_TXR_FLAGS_WB_ON_ITR
Subsystems (3)
PATCH 1/1 i40e: Fix wrong check for I40E_TXR_FLAGS_WB_ON_ITR
The I40E_TXR_FLAGS_WB_ON_ITR is i40e_ring flag and not i40e_pf one.
--- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_txrx.c +1 -1
@@ -2847,7 +2847,7 @@ int i40e_napi_poll(struct napi_struct *napi, int budget)return budget; } -if (vsi->back->flags &I40E_TXR_FLAGS_WB_ON_ITR ) +if (q_vector->tx.ring[0 ].flags &I40E_TXR_FLAGS_WB_ON_ITR ) q_vector->arm_wb_state = false;/* Exit the polling mode, but don't re-enable interrupts if stack might
Signature · 1 line
2.41.0
Quoted 7 lines
-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Ivan Vecera
Sent: Thursday, October 19, 2023 7:24 PM
To: [email protected]
Cc: Catherine Sullivan <[email protected]>; Singhai, Anjali <[email protected]>; Brandeburg, Jesse <[email protected]>; open list <[email protected]>; Eric Dumazet <[email protected]>; Nguyen, Anthony L <[email protected]>; Jeff Kirsher <[email protected]>; moderated list:INTEL ETHERNET DRIVERS <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>; David S. Miller <[email protected]>
Subject: [Intel-wired-lan] [PATCH net] i40e: Fix wrong check forI40E_TXR_FLAGS_WB_ON_ITR
Quoted 8 lines
The
I40E_TXR_FLAGS_WB_ON_ITRisi40e_ringflag and noti40e_pfone.Fixes 8e0764b4d6be42 ("i40e/i40evf: Add support for writeback on ITR feature for X722")Signed-off-by Ivan Vecera <[email protected]>--- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 4 lines · Ivan Vecera
The
I40E_TXR_FLAGS_WB_ON_ITRisi40e_ringflag and noti40e_pfone.Fixes 8e0764b4d6be42 ("i40e/i40evf: Add support for writeback on ITR feature for X722")Signed-off-by Ivan Vecera <[email protected]>
Thanks,
I agree that I40E_TXR_FLAGS_WB_ON_ITR is consistently used
as a i40e_ring flag, other than the case that is corrected by this patch.
I also agree that the problem was introduced by the cited commit.