* [PATCH 1/6] nvme: depend on INFINIBAND_ADDR_TRANS
2018-04-26 18:19 [PATCH 0/6] IB: make INFINIBAND_ADDR_TRANS configurable Greg Thelen
@ 2018-04-26 18:19 ` Greg Thelen
2018-04-26 18:19 ` [PATCH 2/6] nvmet-rdma: " Greg Thelen
` (5 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Greg Thelen @ 2018-04-26 18:19 UTC (permalink / raw)
To: Bart.VanAssche, hch, dledford, jgg, axboe, keith.busch, sagi,
sfrench, linux-rdma, linux-nvme, linux-cifs, linux-kernel,
gthelen, tarick
Cc: linux-rdma, linux-nvme, linux-cifs, linux-kernel, Greg Thelen,
Tarick Bedeir
NVME_RDMA code depends on INFINIBAND_ADDR_TRANS provided symbols. So
declare the kconfig dependency. This is necessary to allow for enabling
INFINIBAND without INFINIBAND_ADDR_TRANS.
Signed-off-by: Greg Thelen <gthelen@google.com>
Cc: Tarick Bedeir <tarick@google.com>
---
drivers/nvme/host/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/host/Kconfig b/drivers/nvme/host/Kconfig
index b979cf3bce65..88a8b5916624 100644
--- a/drivers/nvme/host/Kconfig
+++ b/drivers/nvme/host/Kconfig
@@ -27,7 +27,7 @@ config NVME_FABRICS
config NVME_RDMA
tristate "NVM Express over Fabrics RDMA host driver"
- depends on INFINIBAND && BLOCK
+ depends on INFINIBAND && INFINIBAND_ADDR_TRANS && BLOCK
select NVME_CORE
select NVME_FABRICS
select SG_POOL
--
2.17.0.484.g0c8726318c-goog
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 2/6] nvmet-rdma: depend on INFINIBAND_ADDR_TRANS
2018-04-26 18:19 [PATCH 0/6] IB: make INFINIBAND_ADDR_TRANS configurable Greg Thelen
2018-04-26 18:19 ` [PATCH 1/6] nvme: depend on INFINIBAND_ADDR_TRANS Greg Thelen
@ 2018-04-26 18:19 ` Greg Thelen
2018-04-26 18:19 ` [PATCH 3/6] ib_srpt: " Greg Thelen
` (4 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Greg Thelen @ 2018-04-26 18:19 UTC (permalink / raw)
To: Bart.VanAssche, hch, dledford, jgg, axboe, keith.busch, sagi,
sfrench, linux-rdma, linux-nvme, linux-cifs, linux-kernel,
gthelen, tarick
Cc: linux-rdma, linux-nvme, linux-cifs, linux-kernel, Greg Thelen,
Tarick Bedeir
NVME_TARGET_RDMA code depends on INFINIBAND_ADDR_TRANS provided symbols.
So declare the kconfig dependency. This is necessary to allow for
enabling INFINIBAND without INFINIBAND_ADDR_TRANS.
Signed-off-by: Greg Thelen <gthelen@google.com>
Cc: Tarick Bedeir <tarick@google.com>
---
drivers/nvme/target/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/target/Kconfig b/drivers/nvme/target/Kconfig
index 5f4f8b16685f..3c7b61ddb0d1 100644
--- a/drivers/nvme/target/Kconfig
+++ b/drivers/nvme/target/Kconfig
@@ -27,7 +27,7 @@ config NVME_TARGET_LOOP
config NVME_TARGET_RDMA
tristate "NVMe over Fabrics RDMA target support"
- depends on INFINIBAND
+ depends on INFINIBAND && INFINIBAND_ADDR_TRANS
depends on NVME_TARGET
select SGL_ALLOC
help
--
2.17.0.484.g0c8726318c-goog
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 3/6] ib_srpt: depend on INFINIBAND_ADDR_TRANS
2018-04-26 18:19 [PATCH 0/6] IB: make INFINIBAND_ADDR_TRANS configurable Greg Thelen
2018-04-26 18:19 ` [PATCH 1/6] nvme: depend on INFINIBAND_ADDR_TRANS Greg Thelen
2018-04-26 18:19 ` [PATCH 2/6] nvmet-rdma: " Greg Thelen
@ 2018-04-26 18:19 ` Greg Thelen
2018-04-26 18:25 ` Bart Van Assche
2018-04-26 18:19 ` [PATCH 4/6] cifs: smbd: " Greg Thelen
` (3 subsequent siblings)
6 siblings, 1 reply; 11+ messages in thread
From: Greg Thelen @ 2018-04-26 18:19 UTC (permalink / raw)
To: Bart.VanAssche, hch, dledford, jgg, axboe, keith.busch, sagi,
sfrench, linux-rdma, linux-nvme, linux-cifs, linux-kernel,
gthelen, tarick
Cc: linux-rdma, linux-nvme, linux-cifs, linux-kernel, Greg Thelen,
Tarick Bedeir
INFINIBAND_SRPT code depends on INFINIBAND_ADDR_TRANS provided symbols.
So declare the kconfig dependency. This is necessary to allow for
enabling INFINIBAND without INFINIBAND_ADDR_TRANS.
Signed-off-by: Greg Thelen <gthelen@google.com>
Cc: Tarick Bedeir <tarick@google.com>
---
drivers/infiniband/ulp/srpt/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/ulp/srpt/Kconfig b/drivers/infiniband/ulp/srpt/Kconfig
index 31ee83d528d9..fb8b7182f05e 100644
--- a/drivers/infiniband/ulp/srpt/Kconfig
+++ b/drivers/infiniband/ulp/srpt/Kconfig
@@ -1,6 +1,6 @@
config INFINIBAND_SRPT
tristate "InfiniBand SCSI RDMA Protocol target support"
- depends on INFINIBAND && TARGET_CORE
+ depends on INFINIBAND && INFINIBAND_ADDR_TRANS && TARGET_CORE
---help---
Support for the SCSI RDMA Protocol (SRP) Target driver. The
--
2.17.0.484.g0c8726318c-goog
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 3/6] ib_srpt: depend on INFINIBAND_ADDR_TRANS
2018-04-26 18:19 ` [PATCH 3/6] ib_srpt: " Greg Thelen
@ 2018-04-26 18:25 ` Bart Van Assche
0 siblings, 0 replies; 11+ messages in thread
From: Bart Van Assche @ 2018-04-26 18:25 UTC (permalink / raw)
To: tarick, linux-kernel, linux-rdma, sagi, hch, linux-cifs, axboe,
gthelen, linux-nvme, sfrench, keith.busch, jgg, dledford
On Thu, 2018-04-26 at 11:19 -0700, Greg Thelen wrote:
> INFINIBAND_SRPT code depends on INFINIBAND_ADDR_TRANS provided symbols.
> So declare the kconfig dependency. This is necessary to allow for
> enabling INFINIBAND without INFINIBAND_ADDR_TRANS.
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 4/6] cifs: smbd: depend on INFINIBAND_ADDR_TRANS
2018-04-26 18:19 [PATCH 0/6] IB: make INFINIBAND_ADDR_TRANS configurable Greg Thelen
` (2 preceding siblings ...)
2018-04-26 18:19 ` [PATCH 3/6] ib_srpt: " Greg Thelen
@ 2018-04-26 18:19 ` Greg Thelen
2018-04-26 18:19 ` [PATCH 5/6] ib_srp: " Greg Thelen
` (2 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Greg Thelen @ 2018-04-26 18:19 UTC (permalink / raw)
To: Bart.VanAssche, hch, dledford, jgg, axboe, keith.busch, sagi,
sfrench, linux-rdma, linux-nvme, linux-cifs, linux-kernel,
gthelen, tarick
Cc: linux-rdma, linux-nvme, linux-cifs, linux-kernel, Greg Thelen,
Tarick Bedeir
CIFS_SMB_DIRECT code depends on INFINIBAND_ADDR_TRANS provided symbols.
So declare the kconfig dependency. This is necessary to allow for
enabling INFINIBAND without INFINIBAND_ADDR_TRANS.
Signed-off-by: Greg Thelen <gthelen@google.com>
Cc: Tarick Bedeir <tarick@google.com>
Reviewed-by: Long Li <longli@microsoft.com>
---
fs/cifs/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/cifs/Kconfig b/fs/cifs/Kconfig
index 741749a98614..5f132d59dfc2 100644
--- a/fs/cifs/Kconfig
+++ b/fs/cifs/Kconfig
@@ -197,7 +197,7 @@ config CIFS_SMB311
config CIFS_SMB_DIRECT
bool "SMB Direct support (Experimental)"
- depends on CIFS=m && INFINIBAND || CIFS=y && INFINIBAND=y
+ depends on CIFS=m && INFINIBAND && INFINIBAND_ADDR_TRANS || CIFS=y && INFINIBAND=y && INFINIBAND_ADDR_TRANS=y
help
Enables SMB Direct experimental support for SMB 3.0, 3.02 and 3.1.1.
SMB Direct allows transferring SMB packets over RDMA. If unsure,
--
2.17.0.484.g0c8726318c-goog
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 5/6] ib_srp: depend on INFINIBAND_ADDR_TRANS
2018-04-26 18:19 [PATCH 0/6] IB: make INFINIBAND_ADDR_TRANS configurable Greg Thelen
` (3 preceding siblings ...)
2018-04-26 18:19 ` [PATCH 4/6] cifs: smbd: " Greg Thelen
@ 2018-04-26 18:19 ` Greg Thelen
2018-04-26 18:25 ` Bart Van Assche
2018-04-26 18:19 ` [PATCH 6/6] IB: make INFINIBAND_ADDR_TRANS configurable Greg Thelen
2018-04-27 16:07 ` [PATCH 0/6] " Doug Ledford
6 siblings, 1 reply; 11+ messages in thread
From: Greg Thelen @ 2018-04-26 18:19 UTC (permalink / raw)
To: Bart.VanAssche, hch, dledford, jgg, axboe, keith.busch, sagi,
sfrench, linux-rdma, linux-nvme, linux-cifs, linux-kernel,
gthelen, tarick
Cc: linux-rdma, linux-nvme, linux-cifs, linux-kernel, Greg Thelen,
Tarick Bedeir
INFINIBAND_SRP code depends on INFINIBAND_ADDR_TRANS provided symbols.
So declare the kconfig dependency. This is necessary to allow for
enabling INFINIBAND without INFINIBAND_ADDR_TRANS.
Signed-off-by: Greg Thelen <gthelen@google.com>
Cc: Tarick Bedeir <tarick@google.com>
---
drivers/infiniband/ulp/srp/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/ulp/srp/Kconfig b/drivers/infiniband/ulp/srp/Kconfig
index c74ee9633041..99db8fe5173a 100644
--- a/drivers/infiniband/ulp/srp/Kconfig
+++ b/drivers/infiniband/ulp/srp/Kconfig
@@ -1,6 +1,6 @@
config INFINIBAND_SRP
tristate "InfiniBand SCSI RDMA Protocol"
- depends on SCSI
+ depends on SCSI && INFINIBAND_ADDR_TRANS
select SCSI_SRP_ATTRS
---help---
Support for the SCSI RDMA Protocol over InfiniBand. This
--
2.17.0.484.g0c8726318c-goog
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 5/6] ib_srp: depend on INFINIBAND_ADDR_TRANS
2018-04-26 18:19 ` [PATCH 5/6] ib_srp: " Greg Thelen
@ 2018-04-26 18:25 ` Bart Van Assche
0 siblings, 0 replies; 11+ messages in thread
From: Bart Van Assche @ 2018-04-26 18:25 UTC (permalink / raw)
To: tarick, linux-kernel, linux-rdma, sagi, hch, linux-cifs, axboe,
gthelen, linux-nvme, sfrench, keith.busch, jgg, dledford
On Thu, 2018-04-26 at 11:19 -0700, Greg Thelen wrote:
> INFINIBAND_SRP code depends on INFINIBAND_ADDR_TRANS provided symbols.
> So declare the kconfig dependency. This is necessary to allow for
> enabling INFINIBAND without INFINIBAND_ADDR_TRANS.
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 6/6] IB: make INFINIBAND_ADDR_TRANS configurable
2018-04-26 18:19 [PATCH 0/6] IB: make INFINIBAND_ADDR_TRANS configurable Greg Thelen
` (4 preceding siblings ...)
2018-04-26 18:19 ` [PATCH 5/6] ib_srp: " Greg Thelen
@ 2018-04-26 18:19 ` Greg Thelen
2018-04-26 18:26 ` Bart Van Assche
2018-04-27 16:07 ` [PATCH 0/6] " Doug Ledford
6 siblings, 1 reply; 11+ messages in thread
From: Greg Thelen @ 2018-04-26 18:19 UTC (permalink / raw)
To: Bart.VanAssche, hch, dledford, jgg, axboe, keith.busch, sagi,
sfrench, linux-rdma, linux-nvme, linux-cifs, linux-kernel,
gthelen, tarick
Cc: linux-rdma, linux-nvme, linux-cifs, linux-kernel, Greg Thelen,
Tarick Bedeir
Allow INFINIBAND without INFINIBAND_ADDR_TRANS because fuzzing has been
finding fair number of CM bugs. So provide option to disable it.
Signed-off-by: Greg Thelen <gthelen@google.com>
Cc: Tarick Bedeir <tarick@google.com>
---
drivers/infiniband/Kconfig | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig
index ee270e065ba9..2a972ed6851b 100644
--- a/drivers/infiniband/Kconfig
+++ b/drivers/infiniband/Kconfig
@@ -61,9 +61,12 @@ config INFINIBAND_ON_DEMAND_PAGING
pages on demand instead.
config INFINIBAND_ADDR_TRANS
- bool
+ bool "RDMA/CM"
depends on INFINIBAND
default y
+ ---help---
+ Support for RDMA communication manager (CM).
+ This allows for a generic connection abstraction over RDMA.
config INFINIBAND_ADDR_TRANS_CONFIGFS
bool
--
2.17.0.484.g0c8726318c-goog
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 6/6] IB: make INFINIBAND_ADDR_TRANS configurable
2018-04-26 18:19 ` [PATCH 6/6] IB: make INFINIBAND_ADDR_TRANS configurable Greg Thelen
@ 2018-04-26 18:26 ` Bart Van Assche
0 siblings, 0 replies; 11+ messages in thread
From: Bart Van Assche @ 2018-04-26 18:26 UTC (permalink / raw)
To: tarick, linux-kernel, linux-rdma, sagi, hch, linux-cifs, axboe,
gthelen, linux-nvme, sfrench, keith.busch, jgg, dledford
On Thu, 2018-04-26 at 11:19 -0700, Greg Thelen wrote:
> Allow INFINIBAND without INFINIBAND_ADDR_TRANS because fuzzing has been
> finding fair number of CM bugs. So provide option to disable it.
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/6] IB: make INFINIBAND_ADDR_TRANS configurable
2018-04-26 18:19 [PATCH 0/6] IB: make INFINIBAND_ADDR_TRANS configurable Greg Thelen
` (5 preceding siblings ...)
2018-04-26 18:19 ` [PATCH 6/6] IB: make INFINIBAND_ADDR_TRANS configurable Greg Thelen
@ 2018-04-27 16:07 ` Doug Ledford
6 siblings, 0 replies; 11+ messages in thread
From: Doug Ledford @ 2018-04-27 16:07 UTC (permalink / raw)
To: Greg Thelen, Bart.VanAssche, hch, jgg, axboe, keith.busch, sagi,
sfrench, linux-rdma, linux-nvme, linux-cifs, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 681 bytes --]
On Thu, 2018-04-26 at 11:19 -0700, Greg Thelen wrote:
> This series allows for CONFIG_INFINIBAND without
> CONFIG_INFINIBAND_ADDR_TRANS (aka RDMA communication manager).
> Fuzzing has been finding fair number of CM bugs.
> So provide an option to disable it in systems which don't need it.
>
> Changes since last posting (https://lkml.org/lkml/2018/4/25/1266):
> - added ("ib_srp: depend on INFINIBAND_ADDR_TRANS") patch
[ snip explanation of series ]
Thanks for taking the time to research this out. Series applied.
--
Doug Ledford <dledford@redhat.com>
GPG KeyID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread