From: Bodong Wang Date: Tue, 22 Sep 2015 20:18:11 +0000 (+0300) Subject: IB/mlx4: Report checksum offload cap for RAW QP when query device X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=070b399723206a4ed80410358f801a7df68d08e6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git IB/mlx4: Report checksum offload cap for RAW QP when query device Signed-off-by: Bodong Wang Signed-off-by: Doug Ledford --- 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;