From patchwork Wed Dec 21 11:42:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 9482969 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 3F27760772 for ; Wed, 21 Dec 2016 11:44:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20F5D283F4 for ; Wed, 21 Dec 2016 11:44:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15A432841D; Wed, 21 Dec 2016 11:44:36 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 56569283F4 for ; Wed, 21 Dec 2016 11:44:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933162AbcLULo2 (ORCPT ); Wed, 21 Dec 2016 06:44:28 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:37569 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933077AbcLULoW (ORCPT ); Wed, 21 Dec 2016 06:44:22 -0500 Received: by mail-wm0-f52.google.com with SMTP id t79so156292335wmt.0 for ; Wed, 21 Dec 2016 03:44:21 -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=hksIsheXwl0/3jI7BVMdqvD7bS7L1Ybfa1ix9XvAfaU=; b=S9j/RuVfAwW1Zd2jQoPrYAdWGdKZzFG5AvV+p4nNdniaN+kptSay/+VJp0TFCA4cZn i6XbuR6Sv/e9K5TmA9CCgKp571kyAKFfsSMTM4VUqDat2eNM8wEAZPZ7rsMaJZL5cfzi UzbgI6FiY7l/moG6WSacvgyY+5jUq5CQFp+Ho= 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=hksIsheXwl0/3jI7BVMdqvD7bS7L1Ybfa1ix9XvAfaU=; b=KZvcX9Dxez886cMJopsVX5ArwhMc9+NYRhpCkju0iR46UB9aWfKB6Jy7Hce+aT0k0k LnTpCpXnBHXHxSg+AjZh0zBdGyC/gXt7o28zHdV3IhB6Mu3lOaX+HeFde6rJmop3MvR6 QrDMo7lWb2InzQwUjaMrwsnPOCYN2+96GMSB700+gO/rbBbE2EoHz3iYUCudbfmQVlm2 VJm9qdQMQ/3iFy2dOmSIdXoEoXdjHUykrLmcJ1AOLhGAulEKmwBLXgYISn72VtNPG7rz TxtpgkxdelS9QIedezqj93Cm+f2Tf5bSjlGK/7oBodeISRRkgd9t4+GLVc4qM1yCcyrf hhKg== X-Gm-Message-State: AIkVDXJsG7e1j5u2prmUA9Zg3PlYKNyTLyJSEBR5N1mZxMp/nHGwKsQft+jqy2VDEhAi1090 X-Received: by 10.28.149.135 with SMTP id x129mr6821469wmd.71.1482320660547; Wed, 21 Dec 2016 03:44:20 -0800 (PST) Received: from dhcp-10-192-206-197.iig.avagotech.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id t194sm2997257wmd.1.2016.12.21.03.44.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Dec 2016 03:44:19 -0800 (PST) From: Selvin Xavier To: dledford@redhat.com, linux-rdma@vger.kernel.org Cc: netdev@vger.kernel.org, michael.chan@broadcom.com, Selvin Xavier , Devesh Sharma , Somnath Kotur , Sriharsha Basavapatna Subject: [PATCH for bnxt_re V4 21/21] RDMA/bnxt_re: Add bnxt_re driver build support Date: Wed, 21 Dec 2016 03:42:10 -0800 Message-Id: <1482320530-5344-22-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1482320530-5344-1-git-send-email-selvin.xavier@broadcom.com> References: <1482320530-5344-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 --- 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 331f6af..a4e7b13 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2776,6 +2776,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 fb3fb89..257172c 100644 --- a/drivers/infiniband/Kconfig +++ b/drivers/infiniband/Kconfig @@ -91,4 +91,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 e7a5ed9..b8b7545 100644 --- a/drivers/infiniband/hw/Makefile +++ b/drivers/infiniband/hw/Makefile @@ -11,3 +11,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