diff options
| author | Dragos Tatulea <[email protected]> | 2023-04-03 17:03:11 +0000 |
|---|---|---|
| committer | Saeed Mahameed <[email protected]> | 2023-04-21 01:35:49 +0000 |
| commit | 40afb3b14496afb01d5b3d028444e09d29b95559 (patch) | |
| tree | 3aa4e2d396a72bf8f3257bc47c57affc9f1f7ef3 /tools/perf/scripts/python | |
| parent | net/mlx5e: RX, Fix releasing page_pool pages twice for striding RQ (diff) | |
| download | kernel-40afb3b14496afb01d5b3d028444e09d29b95559.tar.gz kernel-40afb3b14496afb01d5b3d028444e09d29b95559.zip | |
net/mlx5e: RX, Fix XDP_TX page release for legacy rq nonlinear case
When the XDP handler marks the data for transmission (XDP_TX),
it is incorrect to release the page fragment. Instead, the
fragments should be marked as MLX5E_WQE_FRAG_SKIP_RELEASE
because XDP will release the page directly to the page_pool
(page_pool_put_defragged_page) after TX completion.
The linear case already does this. This patch fixes the
nonlinear part as well.
Also, the looping over the fragments was incorrect: When handling
pages after XDP_TX in the legacy rq nonlinear case, the loop was
skipping the first wqe fragment.
Fixes: 3f93f82988bc ("net/mlx5e: RX, Defer page release in legacy rq for better recycling")
Signed-off-by: Dragos Tatulea <[email protected]>
Reviewed-by: Tariq Toukan <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
