From patchwork Tue Sep 22 20:18:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bodong Wang X-Patchwork-Id: 7245341 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2F6849F443 for ; Tue, 22 Sep 2015 20:18:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 55B0320A29 for ; Tue, 22 Sep 2015 20:18:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6D43720A2D for ; Tue, 22 Sep 2015 20:18:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758251AbbIVUSp (ORCPT ); Tue, 22 Sep 2015 16:18:45 -0400 Received: from mail-ob0-f178.google.com ([209.85.214.178]:35380 "EHLO mail-ob0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756770AbbIVUSo (ORCPT ); Tue, 22 Sep 2015 16:18:44 -0400 Received: by obbzf10 with SMTP id zf10so17346105obb.2 for ; Tue, 22 Sep 2015 13:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gkPB94ipk0OCmXogcIknKbN0Avuig+mno/MU96LYp7o=; b=mGDqqOxcOJjA6Dlsa6/uPaGe+S1MclDzCzq8k5usWtxM3HuST5yWW5lX4nRpTqzE5o aCpCPFZQxlZQS6V+GOsb/ofR/JUcnftDvdrVN12q4vDtkDBpr2+oJc4U8if5Nx6Wq5u9 KZnGYYR5edMnRzIrJ9HnTMtANRsgdBWelipUOQSkK9JIcoHwbgQ4YgaOo+dziABVLx20 acuy88HeT2HTE/sw3XLh29LWjKN51HKyVrRHQUS7Y3fmC3rTYNk6fmTtAc/UALYcnmL2 WF1FEn/9UxGqHT3RZ/E9bdZtwL1MTF2M1jJvFjeGWAgUOR3a/2BV4GSXSVEw1U7P0WEs xxYw== X-Received: by 10.182.117.166 with SMTP id kf6mr17317873obb.58.1442953123575; Tue, 22 Sep 2015 13:18:43 -0700 (PDT) Received: from localhost.localdomain ([207.140.101.5]) by smtp.gmail.com with ESMTPSA id mj1sm1622269obc.25.2015.09.22.13.18.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Sep 2015 13:18:42 -0700 (PDT) From: wbd2905@gmail.com X-Google-Original-From: bodong@mellanox.com To: dledford@redhat.com Cc: ogerlitz@mellanox.com, bodong@mellanox.com, moshel@mellanox.com, haggaie@mellanox.com, matanb@mellanox.com, linux-rdma@vger.kernel.org Subject: [v1 2/2] IB/mlx4: Report checksum offload cap for RAW QP when query device Date: Tue, 22 Sep 2015 23:18:11 +0300 Message-Id: <1442953091-102103-3-git-send-email-bodong@mellanox.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1442953091-102103-1-git-send-email-bodong@mellanox.com> References: <1442953091-102103-1-git-send-email-bodong@mellanox.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bodong Wang Signed-off-by: Bodong Wang --- drivers/infiniband/hw/mlx4/main.c | 2 ++ 1 file changed, 2 insertions(+) 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;