mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
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>
This commit is contained in:
parent
c7e162a417
commit
da6d6ba3c6
1 changed files with 3 additions and 0 deletions
|
@ -524,6 +524,9 @@ static int mlx5_ib_query_device(struct ib_device *ibdev,
|
||||||
MLX5_CAP_ETH(dev->mdev, scatter_fcs))
|
MLX5_CAP_ETH(dev->mdev, scatter_fcs))
|
||||||
props->device_cap_flags |= IB_DEVICE_RAW_SCATTER_FCS;
|
props->device_cap_flags |= IB_DEVICE_RAW_SCATTER_FCS;
|
||||||
|
|
||||||
|
if (mlx5_get_flow_namespace(dev->mdev, MLX5_FLOW_NAMESPACE_BYPASS))
|
||||||
|
props->device_cap_flags |= IB_DEVICE_MANAGED_FLOW_STEERING;
|
||||||
|
|
||||||
props->vendor_part_id = mdev->pdev->device;
|
props->vendor_part_id = mdev->pdev->device;
|
||||||
props->hw_ver = mdev->pdev->revision;
|
props->hw_ver = mdev->pdev->revision;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue