common/mlx5: use general object type for cap index
authorDekel Peled <dekelp@nvidia.com>
Sun, 1 Nov 2020 17:57:45 +0000 (17:57 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:07 +0000 (23:35 +0100)
commitc696ab09e6acd4f677f2ce28a29ebb3f8cf0ca18
treec05445fd1f5a4617b6b17f80a6fac74dbfb9b629
parent369e5092b2e33c57df3643dc1ca1302744549f5b
common/mlx5: use general object type for cap index

PRM defines the general object types using positive numbers.
The same values are used as index for the relevant bit in HCA
capabilities general_obj_types bit mask.

Signed-off-by: Dekel Peled <dekelp@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/mlx5_prm.h