diff options
| author | 2019-05-15 00:04:27 -0500 | |
|---|---|---|
| committer | 2019-07-03 12:50:42 -0700 | |
| commit | 2752b823169b216db142c4466b43269281962dcf (patch) | |
| tree | 6c01796b4436773d85fec714f879cc301a66bb79 /include/linux/mfd/git:/ssh:/git@git.zx2c4.com | |
| parent | net/mlx5: Expose device definitions for object events (diff) | |
net/mlx5: Introduce and use mlx5_eswitch_get_total_vports()
Instead MLX5_TOTAL_VPORTS, use mlx5_eswitch_get_total_vports().
mlx5_eswitch_get_total_vports() in subsequent patch accounts for SF
vports as well.
Expanding MLX5_TOTAL_VPORTS macro would require exposing SF internals to
more generic vport.h header file. Such exposure is not desired.
Hence a mlx5_eswitch_get_total_vports() is introduced.
Given that mlx5_eswitch_get_total_vports() API wants to work on const
mlx5_core_dev*, change its helper functions also to accept const *dev.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mfd/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
