Skip to content
Commit 8eaa1d11 authored by Maxim Mikityanskiy's avatar Maxim Mikityanskiy Committed by Paolo Abeni
Browse files

net/mlx5e: xsk: Discard unaligned XSK frames on striding RQ



Striding RQ uses MTT page mapping, where each page corresponds to an XSK
frame. MTT pages have alignment requirements, and XSK frames don't have
any alignment guarantees in the unaligned mode. Frames with improper
alignment must be discarded, otherwise the packet data will be written
at a wrong address.

Fixes: 282c0c79 ("net/mlx5e: Allow XSK frames smaller than a page")
Signed-off-by: default avatarMaxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: default avatarTariq Toukan <tariqt@nvidia.com>
Reviewed-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Reviewed-by: default avatarMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Link: https://lore.kernel.org/r/20220729121356.3990867-1-maximmi@nvidia.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent c67cc431
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment