History

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.

Jeff Kirsher committed 7 years ago

Commit 2c19e391 parent 8d5cfd71 file · +0 −5Browse files

Unified · Split

drivers/net/ethernet/intel/i40e/i40e_xsk.c+0−5
@@ -157,11 +157,6 @@ static int i40e_xsk_umem_disable(struct i40e_vsi *vsi, u16 qid) · 156 unmodified lines
157157 err = i40e_queue_pair_enable(vsi, qid);
158158 if (err)
159159 return err;
160−
161− /* Kick start the NAPI context so that receiving will start */
162− err = i40e_xsk_wakeup(vsi->netdev, qid, XDP_WAKEUP_RX);
163− if (err)
164− return err;
165160 }
166161
167162 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t