IB/mlx4: Report checksum offload cap for RAW QP when query device
authorBodong Wang <bodong@mellanox.com>
Tue, 22 Sep 2015 20:18:11 +0000 (23:18 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 29 Sep 2015 02:10:15 +0000 (22:10 -0400)
Signed-off-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/main.c

index efecdf0216d85179c05f6e949d0c7597cf7f4f70..38be8dc2932e3cf2ffd357b567c5dfb01c874992 100644 (file)
@@ -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;