IB/mlx5: Set flow steering capability bit
authorMaor Gottlieb <maorg@mellanox.com>
Sat, 4 Jun 2016 12:15:28 +0000 (15:15 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 7 Jun 2016 14:03:49 +0000 (10:03 -0400)
commitda6d6ba3c6f085abf82723612efd746a97f8e414
tree029f2f776d51621ec689be3a2afae0647cadadeb
parentc7e162a417488f3c79eb09f3c4f1d36f1e042463
IB/mlx5: Set flow steering capability bit

Flow steering is supported by mlx5 device when the following
features are supported by firmware:

1. NIC RX flow table.
2. Device has enough flow steering levels.
3. Atomic modification of flow table entry.
4. Flow tables chaining.

To check if flow steering is supported it's enough to check
if the driver opened the mlx5 bypass namespace.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c