]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: Use vport helper for IPsec eswitch set caps
authorMoshe Shemesh <moshe@nvidia.com>
Mon, 18 May 2026 07:13:55 +0000 (10:13 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 21 May 2026 10:12:00 +0000 (12:12 +0200)
commitd7ec361003fab246bd7b70e92096c4bbfee949ab
tree5737aedad77d99dbbbe4d6056372cb959516ff6a
parentfa2852a28c5bb05b9ce7b0f6227d0b276b78c07e
net/mlx5: Use vport helper for IPsec eswitch set caps

Use mlx5_vport_set_other_func_cap() and
mlx5_vport_set_other_func_general_cap() in the IPsec eswitch functions
instead of open-coding the SET_HCA_CAP command. This removes redundant
buffer allocation and boilerplate, and also enables vhca_id based
addressing when supported.

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