RDMA/bnxt_re: Add bnxt_re driver build support
authorSelvin Xavier <selvin.xavier@broadcom.com>
Fri, 10 Feb 2017 11:19:53 +0000 (03:19 -0800)
committerDoug Ledford <dledford@redhat.com>
Tue, 14 Feb 2017 14:51:28 +0000 (09:51 -0500)
Makefile and Kconfig changes for enabling bnxt_re compilation

Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
MAINTAINERS
drivers/infiniband/Kconfig
drivers/infiniband/hw/Makefile
drivers/infiniband/hw/bnxt_re/Kconfig [new file with mode: 0644]
drivers/infiniband/hw/bnxt_re/Makefile [new file with mode: 0644]

index 5f0420a0da5b674b314718fa5393201aa61815b7..468d2e8e2d4defb59c245a987e7585e400008684 100644 (file)
@@ -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 <selvin.xavier@broadcom.com>
+M:     Devesh Sharma <devesh.sharma@broadcom.com>
+M:     Somnath Kotur <somnath.kotur@broadcom.com>
+M:     Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
+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 <anil.gurumurthy@qlogic.com>
 M:     Sudarsana Kalluru <sudarsana.kalluru@qlogic.com>
index 670917387eda919cb000395bc9c4bc14064683ef..66f86027ed4741566c59e1c9321e4bf439c538b4 100644 (file)
@@ -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
index ed553de2ca125a1c6791603145a8fd77dd566c95..34c93abf0fe03913441c3bcd6f410ebdcf5445d1 100644 (file)
@@ -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 (file)
index 0000000..cd0175e
--- /dev/null
@@ -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 (file)
index 0000000..036f84e
--- /dev/null
@@ -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