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 | 157 | err = i40e_queue_pair_enable(vsi, qid); |
| 158 | 158 | if (err) |
| 159 | 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 | 162 | return 0; |