]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: {DR,HWS}, Use the cached vhca_id for this device
authorSaeed Mahameed <saeedm@nvidia.com>
Fri, 29 Aug 2025 22:37:22 +0000 (15:37 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 2 Sep 2025 13:18:16 +0000 (15:18 +0200)
commit0c2a02f3c066d4b50ebb66178843df83f33e4f1b
treebb9a429b9991ab559cad32dec4c605a09ccc8c85
parent5d8ae2c2cfe88a2c7458e18f30df4c655dfa983e
net/mlx5: {DR,HWS}, Use the cached vhca_id for this device

The mlx5 driver caches many capabilities to be used by mlx5 layers.

In SW and HW steering we can use the cached vhca_id instead of invoking
FW commands.

Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250829223722.900629-8-saeed@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c