common/mlx5: change class values as bits
authorParav Pandit <parav@mellanox.com>
Mon, 27 Jul 2020 17:47:12 +0000 (20:47 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 28 Jul 2020 16:52:11 +0000 (18:52 +0200)
commit15008f562dc69fc18102ab2d357a37c759168ff0
tree49a34be90b43fbdb1b0d6e4ff40b4ccd007fc7e8
parent82088001631d6255f49df5ecac2ebd2bcfc8126e
common/mlx5: change class values as bits

mlx5 PCI Device supports multiple classes of devices such as net, vdpa,
and/or regex.
To support these multiple classes, change mlx5_class to a
bitmap values so that if users asks to enable multiple of them, all
supported classes can be parsed.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/common/mlx5/mlx5_common.h