summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorMajd Dibbiny <majd@mellanox.com>2016-04-17 16:19:38 +0200
committerDoug Ledford <dledford@redhat.com>2016-05-14 01:40:28 +0200
commitcff5a0f3a3cda0d852425093f92acca169eb5aea (patch)
treefc8a48c3bd994a84782f4c8afd4cd38b9548c5c2 /drivers/infiniband
parentIB/mlx5: Add Scatter FCS support for Raw Packet QP (diff)
downloadlinux-cff5a0f3a3cda0d852425093f92acca169eb5aea.tar.xz
linux-cff5a0f3a3cda0d852425093f92acca169eb5aea.zip
IB/mlx5: Report Scatter FCS device capability when supported
Report Scatter FCS support when the Firmware supports as well. Signed-off-by: Majd Dibbiny <majd@mellanox.com> Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/mlx5/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index 6ad0489cb3c5..dbb3d66e62a1 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -517,6 +517,10 @@ static int mlx5_ib_query_device(struct ib_device *ibdev,
props->device_cap_flags |= IB_DEVICE_UD_TSO;
}
+ if (MLX5_CAP_GEN(dev->mdev, eth_net_offloads) &&
+ MLX5_CAP_ETH(dev->mdev, scatter_fcs))
+ props->device_cap_flags |= IB_DEVICE_RAW_SCATTER_FCS;
+
props->vendor_part_id = mdev->pdev->device;
props->hw_ver = mdev->pdev->revision;