Searched hist:e53a9d26cf80565cfb7172fc52a0dfac73613a0f (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | main.c | diff e53a9d26cf80565cfb7172fc52a0dfac73613a0f Mon Oct 28 18:35:30 CDT 2019 Parav Pandit <parav@mellanox.com> IB/mlx5: Introduce and use mlx5_core_is_vf()
Instead of deciding a given device is virtual function or not based on a device is PF or not, use already defined MLX5_COREDEV_VF by introducing an helper API mlx5_core_is_vf().
This enables to clearly identify PF, VF and non virtual functions.
Signed-off-by: Parav Pandit <parav@mellanox.com> Reviewed-by: Vu Pham <vuhuong@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
|
/openbmc/linux/include/linux/mlx5/ |
H A D | driver.h | diff e53a9d26cf80565cfb7172fc52a0dfac73613a0f Mon Oct 28 18:35:30 CDT 2019 Parav Pandit <parav@mellanox.com> IB/mlx5: Introduce and use mlx5_core_is_vf()
Instead of deciding a given device is virtual function or not based on a device is PF or not, use already defined MLX5_COREDEV_VF by introducing an helper API mlx5_core_is_vf().
This enables to clearly identify PF, VF and non virtual functions.
Signed-off-by: Parav Pandit <parav@mellanox.com> Reviewed-by: Vu Pham <vuhuong@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
|