Skip to contentSkip to conversation

i40e: Fix receive buffer starvation for AF_XDP

Intel-wired-lan Jeff Kirsher 2 participants 2 messages Oct 7, 2019 – Oct 8, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Magnus's fix to resolve a potential receive buffer starvation for AF_XDP got applied to both the i40e_xsk_umem_enable/disable() functions, when it should have only been applied to the "enable". So clean up the undesired code in the disable function.

CC Magnus Karlsson <[email protected]>
Fixes 1f459bdc2007 ("i40e: fix potential RX buffer starvation for AF_XDP")
---
 drivers/net/ethernet/intel/i40e/i40e_xsk.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_xsk.c +0 -5
index b1c3227ae4ab..a05dfecdd9b4 100644
@@ -157,11 +157,6 @@ static int i40e_xsk_umem_disable(struct i40e_vsi *vsi, u16 qid)
 		err = i40e_queue_pair_enable(vsi, qid);
 		if (err)
 			return err;
-
-		/* Kick start the NAPI context so that receiving will start */
-		err = i40e_xsk_wakeup(vsi->netdev, qid, XDP_WAKEUP_RX);
-		if (err)
-			return err;
 	}
 
 	return 0;
Signature · 1 line
2.21.0
Tested-by Andrew Bowers
#1 lore raw
Quoted 13 lines

-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Jeff Kirsher
Sent: Monday, October 7, 2019 3:07 PM
To: intel-wired-lan at lists.osuosl.org
Cc: Karlsson, Magnus <[email protected]>
Subject: [Intel-wired-lan] [net] i40e: Fix receive buffer starvation for AF_XDP

Magnus's fix to resolve a potential receive buffer starvation for AF_XDP got applied to both the i40e_xsk_umem_enable/disable() functions, when it should have only been applied to the "enable". So clean up the undesired code in the disable function.

Quoted 6 lines
CC Magnus Karlsson <[email protected]>
Fixes 1f459bdc2007 ("i40e: fix potential RX buffer starvation for AF_XDP")
---
 drivers/net/ethernet/intel/i40e/i40e_xsk.c | 5 -----
 1 file changed, 5 deletions(-)