summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2019-06-28 20:18:23 -0400
committerJason Gunthorpe <jgg@mellanox.com>2019-06-28 20:18:23 -0400
commit371bb62158d53c1fc33e2fb9b6aeb9522caf6cf4 (patch)
tree9442ae9b22e3cf24fbe8dcefae8862a3e4e05629 /drivers/infiniband/ulp
parent10dcc7448e9ea49488a38bca7551de1a9da06ad9 (diff)
parent4b972a01a7da614b4796475f933094751a295a2f (diff)
Merge tag 'v5.2-rc6' into rdma.git for-next
For dependencies in next patches. Resolve conflicts: - Use uverbs_get_cleared_udata() with new cq allocation flow - Continue to delete nes despite SPDX conflict - Resolve list appends in mlx5_command_str() - Use u16 for vport_rule stuff - Resolve list appends in struct ib_client Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/ipoib/Kconfig1
-rw-r--r--drivers/infiniband/ulp/iser/Kconfig1
-rw-r--r--drivers/infiniband/ulp/iser/Makefile1
-rw-r--r--drivers/infiniband/ulp/isert/Kconfig1
-rw-r--r--drivers/infiniband/ulp/isert/Makefile1
-rw-r--r--drivers/infiniband/ulp/isert/ib_isert.c10
-rw-r--r--drivers/infiniband/ulp/opa_vnic/Kconfig1
-rw-r--r--drivers/infiniband/ulp/opa_vnic/Makefile1
-rw-r--r--drivers/infiniband/ulp/srp/Kbuild1
-rw-r--r--drivers/infiniband/ulp/srp/Kconfig1
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.c18
-rw-r--r--drivers/infiniband/ulp/srpt/Kconfig1
-rw-r--r--drivers/infiniband/ulp/srpt/Makefile1
13 files changed, 29 insertions, 10 deletions
diff --git a/drivers/infiniband/ulp/ipoib/Kconfig b/drivers/infiniband/ulp/ipoib/Kconfig
index 569d614d0c41..7af68604af77 100644
--- a/drivers/infiniband/ulp/ipoib/Kconfig
+++ b/drivers/infiniband/ulp/ipoib/Kconfig
@@ -1,3 +1,4 @@
1# SPDX-License-Identifier: GPL-2.0-only
1config INFINIBAND_IPOIB 2config INFINIBAND_IPOIB
2 tristate "IP-over-InfiniBand" 3 tristate "IP-over-InfiniBand"
3 depends on NETDEVICES && INET && (IPV6 || IPV6=n) 4 depends on NETDEVICES && INET && (IPV6 || IPV6=n)
diff --git a/drivers/infiniband/ulp/iser/Kconfig b/drivers/infiniband/ulp/iser/Kconfig
index 299268f261ee..1d29dffeaff9 100644
--- a/drivers/infiniband/ulp/iser/Kconfig
+++ b/drivers/infiniband/ulp/iser/Kconfig
@@ -1,3 +1,4 @@
1# SPDX-License-Identifier: GPL-2.0-only
1config INFINIBAND_ISER 2config INFINIBAND_ISER
2 tristate "iSCSI Extensions for RDMA (iSER)" 3 tristate "iSCSI Extensions for RDMA (iSER)"
3 depends on SCSI && INET && INFINIBAND_ADDR_TRANS 4 depends on SCSI && INET && INFINIBAND_ADDR_TRANS
diff --git a/drivers/infiniband/ulp/iser/Makefile b/drivers/infiniband/ulp/iser/Makefile
index fe6cd15f2317..2f3e788638d4 100644
--- a/drivers/infiniband/ulp/iser/Makefile
+++ b/drivers/infiniband/ulp/iser/Makefile
@@ -1,3 +1,4 @@
1# SPDX-License-Identifier: GPL-2.0-only
1obj-$(CONFIG_INFINIBAND_ISER) += ib_iser.o 2obj-$(CONFIG_INFINIBAND_ISER) += ib_iser.o
2 3
3ib_iser-y := iser_verbs.o iser_initiator.o iser_memory.o \ 4ib_iser-y := iser_verbs.o iser_initiator.o iser_memory.o \
diff --git a/drivers/infiniband/ulp/isert/Kconfig b/drivers/infiniband/ulp/isert/Kconfig
index 02f9759ebb1a..1a3f5ca8354c 100644
--- a/drivers/infiniband/ulp/isert/Kconfig
+++ b/drivers/infiniband/ulp/isert/Kconfig
@@ -1,3 +1,4 @@
1# SPDX-License-Identifier: GPL-2.0-only
1config INFINIBAND_ISERT 2config INFINIBAND_ISERT
2 tristate "iSCSI Extensions for RDMA (iSER) target support" 3 tristate "iSCSI Extensions for RDMA (iSER) target support"
3 depends on INET && INFINIBAND_ADDR_TRANS && TARGET_CORE && ISCSI_TARGET 4 depends on INET && INFINIBAND_ADDR_TRANS && TARGET_CORE && ISCSI_TARGET
diff --git a/drivers/infiniband/ulp/isert/Makefile b/drivers/infiniband/ulp/isert/Makefile
index a4a4766e3e18..e19b16cafda7 100644
--- a/drivers/infiniband/ulp/isert/Makefile
+++ b/drivers/infiniband/ulp/isert/Makefile
@@ -1 +1,2 @@
1# SPDX-License-Identifier: GPL-2.0-only
1obj-$(CONFIG_INFINIBAND_ISERT) += ib_isert.o 2obj-$(CONFIG_INFINIBAND_ISERT) += ib_isert.o
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c
index 4b4998e888b9..a1a035270cab 100644
--- a/drivers/infiniband/ulp/isert/ib_isert.c
+++ b/drivers/infiniband/ulp/isert/ib_isert.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-or-later
1/******************************************************************************* 2/*******************************************************************************
2 * This file contains iSCSI extentions for RDMA (iSER) Verbs 3 * This file contains iSCSI extentions for RDMA (iSER) Verbs
3 * 4 *
@@ -5,15 +6,6 @@
5 * 6 *
6 * Nicholas A. Bellinger <nab@linux-iscsi.org> 7 * Nicholas A. Bellinger <nab@linux-iscsi.org>
7 * 8 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 ****************************************************************************/ 9 ****************************************************************************/
18 10
19#include <linux/string.h> 11#include <linux/string.h>
diff --git a/drivers/infiniband/ulp/opa_vnic/Kconfig b/drivers/infiniband/ulp/opa_vnic/Kconfig
index 48132ab5e6b9..a1f266b9c0b2 100644
--- a/drivers/infiniband/ulp/opa_vnic/Kconfig
+++ b/drivers/infiniband/ulp/opa_vnic/Kconfig
@@ -1,3 +1,4 @@
1# SPDX-License-Identifier: GPL-2.0-only
1config INFINIBAND_OPA_VNIC 2config INFINIBAND_OPA_VNIC
2 tristate "Intel OPA VNIC support" 3 tristate "Intel OPA VNIC support"
3 depends on X86_64 && INFINIBAND 4 depends on X86_64 && INFINIBAND
diff --git a/drivers/infiniband/ulp/opa_vnic/Makefile b/drivers/infiniband/ulp/opa_vnic/Makefile
index 8061b287cfe4..a8c21d140ccb 100644
--- a/drivers/infiniband/ulp/opa_vnic/Makefile
+++ b/drivers/infiniband/ulp/opa_vnic/Makefile
@@ -1,3 +1,4 @@
1# SPDX-License-Identifier: GPL-2.0-only
1# Makefile - Intel Omni-Path Virtual Network Controller driver 2# Makefile - Intel Omni-Path Virtual Network Controller driver
2# Copyright(c) 2017, Intel Corporation. 3# Copyright(c) 2017, Intel Corporation.
3# 4#
diff --git a/drivers/infiniband/ulp/srp/Kbuild b/drivers/infiniband/ulp/srp/Kbuild
index a16c73c667cb..d1f4e513b6a9 100644
--- a/drivers/infiniband/ulp/srp/Kbuild
+++ b/drivers/infiniband/ulp/srp/Kbuild
@@ -1 +1,2 @@
1# SPDX-License-Identifier: GPL-2.0
1obj-$(CONFIG_INFINIBAND_SRP) += ib_srp.o 2obj-$(CONFIG_INFINIBAND_SRP) += ib_srp.o
diff --git a/drivers/infiniband/ulp/srp/Kconfig b/drivers/infiniband/ulp/srp/Kconfig
index 99db8fe5173a..6f5e7b3a3864 100644
--- a/drivers/infiniband/ulp/srp/Kconfig
+++ b/drivers/infiniband/ulp/srp/Kconfig
@@ -1,3 +1,4 @@
1# SPDX-License-Identifier: GPL-2.0-only
1config INFINIBAND_SRP 2config INFINIBAND_SRP
2 tristate "InfiniBand SCSI RDMA Protocol" 3 tristate "InfiniBand SCSI RDMA Protocol"
3 depends on SCSI && INFINIBAND_ADDR_TRANS 4 depends on SCSI && INFINIBAND_ADDR_TRANS
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index 87848faa7502..0b09d0cd9b3c 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -148,6 +148,7 @@ MODULE_PARM_DESC(ch_count,
148 148
149static void srp_add_one(struct ib_device *device); 149static void srp_add_one(struct ib_device *device);
150static void srp_remove_one(struct ib_device *device, void *client_data); 150static void srp_remove_one(struct ib_device *device, void *client_data);
151static void srp_rename_dev(struct ib_device *device, void *client_data);
151static void srp_recv_done(struct ib_cq *cq, struct ib_wc *wc); 152static void srp_recv_done(struct ib_cq *cq, struct ib_wc *wc);
152static void srp_handle_qp_err(struct ib_cq *cq, struct ib_wc *wc, 153static void srp_handle_qp_err(struct ib_cq *cq, struct ib_wc *wc,
153 const char *opname); 154 const char *opname);
@@ -162,7 +163,8 @@ static struct workqueue_struct *srp_remove_wq;
162static struct ib_client srp_client = { 163static struct ib_client srp_client = {
163 .name = "srp", 164 .name = "srp",
164 .add = srp_add_one, 165 .add = srp_add_one,
165 .remove = srp_remove_one 166 .remove = srp_remove_one,
167 .rename = srp_rename_dev
166}; 168};
167 169
168static struct ib_sa_client srp_sa_client; 170static struct ib_sa_client srp_sa_client;
@@ -4121,6 +4123,20 @@ free_host:
4121 return NULL; 4123 return NULL;
4122} 4124}
4123 4125
4126static void srp_rename_dev(struct ib_device *device, void *client_data)
4127{
4128 struct srp_device *srp_dev = client_data;
4129 struct srp_host *host, *tmp_host;
4130
4131 list_for_each_entry_safe(host, tmp_host, &srp_dev->dev_list, list) {
4132 char name[IB_DEVICE_NAME_MAX + 8];
4133
4134 snprintf(name, sizeof(name), "srp-%s-%d",
4135 dev_name(&device->dev), host->port);
4136 device_rename(&host->dev, name);
4137 }
4138}
4139
4124static void srp_add_one(struct ib_device *device) 4140static void srp_add_one(struct ib_device *device)
4125{ 4141{
4126 struct srp_device *srp_dev; 4142 struct srp_device *srp_dev;
diff --git a/drivers/infiniband/ulp/srpt/Kconfig b/drivers/infiniband/ulp/srpt/Kconfig
index fb8b7182f05e..ce7567cea9f6 100644
--- a/drivers/infiniband/ulp/srpt/Kconfig
+++ b/drivers/infiniband/ulp/srpt/Kconfig
@@ -1,3 +1,4 @@
1# SPDX-License-Identifier: GPL-2.0-only
1config INFINIBAND_SRPT 2config INFINIBAND_SRPT
2 tristate "InfiniBand SCSI RDMA Protocol target support" 3 tristate "InfiniBand SCSI RDMA Protocol target support"
3 depends on INFINIBAND && INFINIBAND_ADDR_TRANS && TARGET_CORE 4 depends on INFINIBAND && INFINIBAND_ADDR_TRANS && TARGET_CORE
diff --git a/drivers/infiniband/ulp/srpt/Makefile b/drivers/infiniband/ulp/srpt/Makefile
index 43fbde42c58b..2d137928a4c2 100644
--- a/drivers/infiniband/ulp/srpt/Makefile
+++ b/drivers/infiniband/ulp/srpt/Makefile
@@ -1 +1,2 @@
1# SPDX-License-Identifier: GPL-2.0-only
1obj-$(CONFIG_INFINIBAND_SRPT) += ib_srpt.o 2obj-$(CONFIG_INFINIBAND_SRPT) += ib_srpt.o