From patchwork Sat Feb 20 07:47:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 8365841 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 97B3F9FC94 for ; Sat, 20 Feb 2016 07:48:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C1F5820511 for ; Sat, 20 Feb 2016 07:48:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EF1172051C for ; Sat, 20 Feb 2016 07:48:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758120AbcBTHsq (ORCPT ); Sat, 20 Feb 2016 02:48:46 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:36636 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758122AbcBTHsj (ORCPT ); Sat, 20 Feb 2016 02:48:39 -0500 Received: by mail-wm0-f51.google.com with SMTP id g62so106141733wme.1 for ; Fri, 19 Feb 2016 23:48:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leon-nu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tQRvJQmBYLCUNsB78vTkj/HVt0lKb2KWIh+yXI7/ArY=; b=czxV/T6S4F5gk0I98IvCGw1aGIYkUpH1EzZrocg3K3EIS4pIgC0rX9342AOufwomjW nEyYl2i/0lmCoH6s7xB0P9Okbt8wdZT7hUeAA73YTNmHQn6Z/uPGOiLxv43539SW3RA6 /5JcH1z/F1waof+J6GiKp8Tdgp+Uc3Id/+95EUMTw7n3Gf1DLxvLFjE3qJ3JMXmJW3tA 420JhwWGIFOOTt3byLu2gWhqB6unPAewwRJLCUQ+LmTN5CqVLKD3XkpOvpzJH9vuif+U /wvn0feuynFA/7dPBOdSETlS2g2mtBmwB1uXei79LXxyQUcS9Wyj6CoETKykEdFKNqUG Mo1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tQRvJQmBYLCUNsB78vTkj/HVt0lKb2KWIh+yXI7/ArY=; b=NycUE9pPZO1BO8Ln1VNc9m8AGP+wBKopXSQ33Z5G4u/JD74eAYOg4LC5m5hDjwNg2P +1xv1spKQoX+MCEmuGzFVqQI/iqy5flRw/EjHROx3SOFhB2LHoke0oVr9N4wZBEnrH6/ IC+W6Ac7UAkhEHNbzFURpjDAryUcv0fPTDxiDsqYX3X/Ybs93dBzT7iVTz3vm+r7vxVo LrU5zB+1cTX0aSCMObK/ceHBuwo7uddt/GxI15l4hkRJcP3bPtRN7TUNtSEDdPvJP069 eohtbLrZo0J6s0uxiY7DYYhJW+WY3HWH2V3RwCQreYSAACnPp/LG1CorLRpVUS7aXrqe unRg== X-Gm-Message-State: AG10YOR2uBdWGdajLMKDxRFDz8qxoJt58Zj3FVALCJb0Becm9JMi8bKr5Nyv9+HN5Qa1hA== X-Received: by 10.28.146.145 with SMTP id u139mr1256631wmd.76.1455954518426; Fri, 19 Feb 2016 23:48:38 -0800 (PST) Received: from localhost ([213.57.247.249]) by smtp.gmail.com with ESMTPSA id t12sm10886800wmt.20.2016.02.19.23.48.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Feb 2016 23:48:37 -0800 (PST) From: Leon Romanovsky To: dledford@redhat.com, saeedm@mellanox.com Cc: linux-rdma@vger.kernel.org, Leon Romanovsky Subject: [PATCH rdma-next 8/8] IB/mlx5: Exposure offload arithmetic operations Date: Sat, 20 Feb 2016 09:47:45 +0200 Message-Id: <1455954465-15141-9-git-send-email-leon@leon.nu> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1455954465-15141-1-git-send-email-leon@leon.nu> References: <1455954465-15141-1-git-send-email-leon@leon.nu> 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_SIGNED, 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: Leon Romanovsky Advertise the offload arithmetic operations support. Signed-off-by: Leon Romanovsky Reviewed-by: Matan Barak --- drivers/infiniband/hw/mlx5/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 03c418c..9e92f48 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -549,6 +549,9 @@ static int mlx5_ib_query_device(struct ib_device *ibdev, if (MLX5_CAP_GEN(mdev, cd)) props->device_cap_flags |= IB_DEVICE_CROSS_CHANNEL; + if (MLX5_CAP_GEN(dev->mdev, vector_calc)) + props->device_cap_flags |= IB_DEVICE_VECTOR_CALC; + return 0; }