]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5e: XDP, Remove un-established assumptions on XDP buffer
authorTariq Toukan <tariqt@nvidia.com>
Mon, 17 Apr 2023 12:18:58 +0000 (15:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Apr 2023 07:59:26 +0000 (08:59 +0100)
commit124d0d8daf85ddf106a25ab0647e41b956e5cd38
tree368f6b8d4f96b843c6be9cb2a68588c5c0cbe1c1
parent20409abe52b1de8cfdc0565d89b7bc6d159dba35
net/mlx5e: XDP, Remove un-established assumptions on XDP buffer

Remove the assumption of non-zero linear length in the XDP xmit
function, used to serve both internal XDP_TX operations as well as
redirected-in requests.

Do not apply the MLX5E_XDP_MIN_INLINE check unless necessary.

Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c