]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5: Switch vport HCA cap helpers to kvzalloc
authorMoshe Shemesh <moshe@nvidia.com>
Mon, 18 May 2026 07:13:52 +0000 (10:13 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 21 May 2026 10:12:00 +0000 (12:12 +0200)
commit62af408fd772ba0194c007170f9e930ea71e01ea
treebe47c1c8bfbf2d619f4c28d0052dd47f131656ad
parent3fefa7e7c14b0714708c90a36f6429c4cba733cf
net/mlx5: Switch vport HCA cap helpers to kvzalloc

mlx5_vport_set_other_func_cap() and mlx5_vport_get_vhca_id() allocate
command buffers that embed the HCA capability union, exceeding 4KiB.
Use kvzalloc/kvfree so the allocation can fall back to vmalloc when
contiguous memory is scarce.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260518071356.345723-5-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/vport.c