From patchwork Fri Feb 10 11:19:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 9566609 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C802960216 for ; Fri, 10 Feb 2017 11:31:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B420E28559 for ; Fri, 10 Feb 2017 11:31:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A860828562; Fri, 10 Feb 2017 11:31:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F35E428559 for ; Fri, 10 Feb 2017 11:31:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753228AbdBJLbL (ORCPT ); Fri, 10 Feb 2017 06:31:11 -0500 Received: from mail-qt0-f174.google.com ([209.85.216.174]:35290 "EHLO mail-qt0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752590AbdBJLao (ORCPT ); Fri, 10 Feb 2017 06:30:44 -0500 Received: by mail-qt0-f174.google.com with SMTP id x49so31455544qtc.2 for ; Fri, 10 Feb 2017 03:30:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=j27S1RrSVu6pO6igfCwwQP2BnjYu6CVLVgoNSc0nric=; b=CgHat8agA1bhkVji/NsLRqoUm+CD7pdIcFpatqYLl+HNHU+T3+NwoU1t5vFpe5dCYo /1sIbfzpBtD0mATlUv/aepswSQTrq6VV1FvOd7WTjkdx+Z8SyB/bvTMLv6FGn4/oe5nz l4VTPgcpcI2XtMIvulYvVKwxBvcTPvtKUUFgk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=j27S1RrSVu6pO6igfCwwQP2BnjYu6CVLVgoNSc0nric=; b=ATix5uxs/VM6huR8ZiK/8LKD8hFwDFIJBkfOp6ClHzQRmPXvza1VpvxdOlGFiDgAVc F4ReNKtNBMksqxd2zAyU4lfNpJ2CTvyKYE19Omo7uEIvaZgFP/Q9WX52y5f4MxibHMi+ uNCmbDOV8FyCd/ZpoGXHWNlEKgHKdTIRJXGPVM3/zxxpOWl1JRvF10ybbA8h5olfe7Wv BJ+d7QC0JmjjD38wbkrG1KK/Yvo38aS4bxxiCMXZX424Q8vnYO/MYJ1GExMCOohzG3kX ek06lSJldCAhvmEjsa3hHnsKw/8eLHqNxawtQN+XDSLmjTCoY6HJjXSHgCUda27hq3KR Mq+w== X-Gm-Message-State: AMke39lGHhKdhuziyZ8ciR1Jr78pwvj3yKtoe/mwKP2A8mqhmA+L4tsNxsVu3lCXtFoAwehK X-Received: by 10.237.59.203 with SMTP id s11mr7946281qte.46.1486725691471; Fri, 10 Feb 2017 03:21:31 -0800 (PST) Received: from dhcp-10-192-206-197.iig.avagotech.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id z23sm1211412qkb.30.2017.02.10.03.21.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Feb 2017 03:21:31 -0800 (PST) From: Selvin Xavier To: dledford@redhat.com, linux-rdma@vger.kernel.org Cc: netdev@vger.kernel.org, Selvin Xavier , Devesh Sharma , Somnath Kotur , Sriharsha Basavapatna Subject: [PATCH V5 for-next 21/21] RDMA/bnxt_re: Add bnxt_re driver build support Date: Fri, 10 Feb 2017 03:19:53 -0800 Message-Id: <1486725593-9872-22-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1486725593-9872-1-git-send-email-selvin.xavier@broadcom.com> References: <1486725593-9872-1-git-send-email-selvin.xavier@broadcom.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Makefile and Kconfig changes for enabling bnxt_re compilation v3: Adds list of MAINTAINERS of bnxt_re driver. Removes bnxt_re_debugfs.c from Makefile as this file is no longer present Signed-off-by: Devesh Sharma Signed-off-by: Somnath Kotur Signed-off-by: Sriharsha Basavapatna Signed-off-by: Selvin Xavier Reviewed-by: Leon Romanovsky --- MAINTAINERS | 11 +++++++++++ drivers/infiniband/Kconfig | 2 ++ drivers/infiniband/hw/Makefile | 1 + drivers/infiniband/hw/bnxt_re/Kconfig | 9 +++++++++ drivers/infiniband/hw/bnxt_re/Makefile | 6 ++++++ 5 files changed, 29 insertions(+) create mode 100644 drivers/infiniband/hw/bnxt_re/Kconfig create mode 100644 drivers/infiniband/hw/bnxt_re/Makefile diff --git a/MAINTAINERS b/MAINTAINERS index 5f0420a..468d2e8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2808,6 +2808,17 @@ L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained F: arch/arm64/boot/dts/broadcom/vulcan* +BROADCOM NETXTREME-E ROCE DRIVER +M: Selvin Xavier +M: Devesh Sharma +M: Somnath Kotur +M: Sriharsha Basavapatna +L: linux-rdma@vger.kernel.org +W: http://www.broadcom.com +S: Supported +F: drivers/infiniband/hw/bnxt_re/ +F: include/uapi/rdma/bnxt_re-abi.h + BROCADE BFA FC SCSI DRIVER M: Anil Gurumurthy M: Sudarsana Kalluru diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig index 6709173..66f8602 100644 --- a/drivers/infiniband/Kconfig +++ b/drivers/infiniband/Kconfig @@ -92,4 +92,6 @@ source "drivers/infiniband/hw/hfi1/Kconfig" source "drivers/infiniband/hw/qedr/Kconfig" +source "drivers/infiniband/hw/bnxt_re/Kconfig" + endif # INFINIBAND diff --git a/drivers/infiniband/hw/Makefile b/drivers/infiniband/hw/Makefile index ed553de..34c93ab 100644 --- a/drivers/infiniband/hw/Makefile +++ b/drivers/infiniband/hw/Makefile @@ -12,3 +12,4 @@ obj-$(CONFIG_INFINIBAND_USNIC) += usnic/ obj-$(CONFIG_INFINIBAND_HFI1) += hfi1/ obj-$(CONFIG_INFINIBAND_HNS) += hns/ obj-$(CONFIG_INFINIBAND_QEDR) += qedr/ +obj-$(CONFIG_INFINIBAND_BNXT_RE) += bnxt_re/ diff --git a/drivers/infiniband/hw/bnxt_re/Kconfig b/drivers/infiniband/hw/bnxt_re/Kconfig new file mode 100644 index 0000000..cd0175e --- /dev/null +++ b/drivers/infiniband/hw/bnxt_re/Kconfig @@ -0,0 +1,9 @@ +config INFINIBAND_BNXT_RE + tristate "Broadcom Netxtreme HCA support" + depends on ETHERNET && NETDEVICES && PCI && INET + select NET_VENDOR_BROADCOM + select BNXT + ---help--- + This driver supports Broadcom NetXtreme-E 10/25/40/50 gigabit + RoCE HCAs. To compile this driver as a module, choose M here: + the module will be called bnxt_re. diff --git a/drivers/infiniband/hw/bnxt_re/Makefile b/drivers/infiniband/hw/bnxt_re/Makefile new file mode 100644 index 0000000..036f84e --- /dev/null +++ b/drivers/infiniband/hw/bnxt_re/Makefile @@ -0,0 +1,6 @@ + +ccflags-y := -Idrivers/net/ethernet/broadcom/bnxt +obj-$(CONFIG_INFINIBAND_BNXT_RE) += bnxt_re.o +bnxt_re-y := main.o ib_verbs.o \ + qplib_res.o qplib_rcfw.o \ + qplib_sp.o qplib_fp.o