summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorBodong Wang <bodong@mellanox.com>2015-09-22 23:18:11 +0300
committerDoug Ledford <dledford@redhat.com>2015-09-28 22:10:15 -0400
commit070b399723206a4ed80410358f801a7df68d08e6 (patch)
treeb28028fc1d5846c44f4891e5175cdc6316c1fa1f /drivers/infiniband/hw
parent470a55358186d0bb93558a87d13159dfbc989351 (diff)
downloadblackbird-obmc-linux-070b399723206a4ed80410358f801a7df68d08e6.tar.gz
blackbird-obmc-linux-070b399723206a4ed80410358f801a7df68d08e6.zip
IB/mlx4: Report checksum offload cap for RAW QP when query device
Signed-off-by: Bodong Wang <bodong@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/mlx4/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
index efecdf0216d8..38be8dc2932e 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -442,6 +442,8 @@ static int mlx4_ib_query_device(struct ib_device *ibdev,
props->device_cap_flags |= IB_DEVICE_MANAGED_FLOW_STEERING;
}
+ props->device_cap_flags |= IB_DEVICE_RAW_IP_CSUM;
+
props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) &
0xffffff;
props->vendor_part_id = dev->dev->persist->pdev->device;
OpenPOWER on IntegriCloud