diff mbox

[v1,2/2] IB/mlx4: Report checksum offload cap for RAW QP when query device

Message ID 1442953091-102103-3-git-send-email-bodong@mellanox.com (mailing list archive)
State Accepted
Headers show

Commit Message

Bodong Wang Sept. 22, 2015, 8:18 p.m. UTC
From: Bodong Wang <bodong@mellanox.com>

Signed-off-by: Bodong Wang <bodong@mellanox.com>
---
 drivers/infiniband/hw/mlx4/main.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
index 8be6db8..9e18392 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -217,6 +217,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;