]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5: SF, Reuse stored hardware function id
authorParav Pandit <parav@nvidia.com>
Fri, 5 Mar 2021 05:38:02 +0000 (07:38 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 14 Apr 2021 18:02:49 +0000 (11:02 -0700)
commita74ed24c437eddda3299904d870f0df5ef23e475
tree753fc449052def3e228d9de5a4e7e2848fb4095a
parent6e74e6ea1b64a7684a52d6e593255c8ef84b8252
net/mlx5: SF, Reuse stored hardware function id

SF's hardware function id is already stored in mlx5_sf. Reuse it,
instead of querying the hw table.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c