* [PATCH 1/1] IB/isert: set rdma cm afonly flag
@ 2021-05-24 8:52 Max Gurtovoy
2021-05-25 15:52 ` Sagi Grimberg
2021-05-28 23:34 ` Jason Gunthorpe
0 siblings, 2 replies; 3+ messages in thread
From: Max Gurtovoy @ 2021-05-24 8:52 UTC (permalink / raw)
To: sagi, linux-rdma, jgg; +Cc: israelr, alaa, Max Gurtovoy
This will allow both IPv4 and IPv6 sockets to bind a single port at the
same time. Same behaviour is implemented in NVMe/RDMA target.
Reviewed-by: Alaa Hleihel <alaa@nvidia.com>
Reviewed-by: Israel Rukshin <israelr@nvidia.com>
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
---
drivers/infiniband/ulp/isert/ib_isert.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c
index 18266f07c58d..160efef66031 100644
--- a/drivers/infiniband/ulp/isert/ib_isert.c
+++ b/drivers/infiniband/ulp/isert/ib_isert.c
@@ -2231,6 +2231,16 @@ isert_setup_id(struct isert_np *isert_np)
}
isert_dbg("id %p context %p\n", id, id->context);
+ /*
+ * Allow both IPv4 and IPv6 sockets to bind a single port
+ * at the same time.
+ */
+ ret = rdma_set_afonly(id, 1);
+ if (ret) {
+ isert_err("rdma_set_afonly() failed: %d\n", ret);
+ goto out_id;
+ }
+
ret = rdma_bind_addr(id, sa);
if (ret) {
isert_err("rdma_bind_addr() failed: %d\n", ret);
--
2.18.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] IB/isert: set rdma cm afonly flag
2021-05-24 8:52 [PATCH 1/1] IB/isert: set rdma cm afonly flag Max Gurtovoy
@ 2021-05-25 15:52 ` Sagi Grimberg
2021-05-28 23:34 ` Jason Gunthorpe
1 sibling, 0 replies; 3+ messages in thread
From: Sagi Grimberg @ 2021-05-25 15:52 UTC (permalink / raw)
To: Max Gurtovoy, linux-rdma, jgg; +Cc: israelr, alaa
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] IB/isert: set rdma cm afonly flag
2021-05-24 8:52 [PATCH 1/1] IB/isert: set rdma cm afonly flag Max Gurtovoy
2021-05-25 15:52 ` Sagi Grimberg
@ 2021-05-28 23:34 ` Jason Gunthorpe
1 sibling, 0 replies; 3+ messages in thread
From: Jason Gunthorpe @ 2021-05-28 23:34 UTC (permalink / raw)
To: Max Gurtovoy; +Cc: sagi, linux-rdma, israelr, alaa
On Mon, May 24, 2021 at 11:52:25AM +0300, Max Gurtovoy wrote:
> This will allow both IPv4 and IPv6 sockets to bind a single port at the
> same time. Same behaviour is implemented in NVMe/RDMA target.
>
> Reviewed-by: Alaa Hleihel <alaa@nvidia.com>
> Reviewed-by: Israel Rukshin <israelr@nvidia.com>
> Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
> Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
> ---
> drivers/infiniband/ulp/isert/ib_isert.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
Applied to for-next, thanks
Jason
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-28 23:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24 8:52 [PATCH 1/1] IB/isert: set rdma cm afonly flag Max Gurtovoy
2021-05-25 15:52 ` Sagi Grimberg
2021-05-28 23:34 ` Jason Gunthorpe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.