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.
Unified · Split
| @@ -157,11 +157,6 @@ static int i40e_xsk_umem_disable(struct i40e_vsi *vsi, u16 qid) · 156 unmodified lines | |||
| 157 | err = i40e_queue_pair_enable(vsi, qid); | 157 | err = i40e_queue_pair_enable(vsi, qid); |
| 158 | if (err) | 158 | if (err) |
| 159 | return err; | 159 | 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; | ||
| 165 | } | 160 | } |
| 166 | 161 | ||
| 167 | return 0; | 162 | return 0; |