Commit d5e3241c authored by Thomas Fourier's avatar Thomas Fourier Committed by Jakub Kicinski
Browse files

ethernet: ionic: Fix DMA mapping tests



Change error values of `ionic_tx_map_single()` and `ionic_tx_map_frag()`
from 0 to `DMA_MAPPING_ERROR` to prevent collision with 0 as a valid
address.

This also fixes the use of `dma_mapping_error()` to test against 0 in
`ionic_xdp_post_frame()`

Fixes: 0f3154e6 ("ionic: Add Tx and Rx handling")
Fixes: 56e41ee1 ("ionic: better dma-map error handling")
Fixes: ac8813c0 ("ionic: convert Rx queue buffers to use page_pool")
Signed-off-by: default avatarThomas Fourier <fourier.thomas@gmail.com>
Reviewed-by: default avatarBrett Creeley <brett.creeley@amd.com>
Link: https://patch.msgid.link/20250619094538.283723-2-fourier.thomas@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent f5990207
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment