IB/isert: set rdma cm afonly flag
Subsystems (2)
PATCH 1/1 IB/isert: set rdma cm afonly flag
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 <[email protected]>
Reviewed-by Israel Rukshin <[email protected]>
Signed-off-by Max Gurtovoy <[email protected]>
--- drivers/infiniband/ulp/isert/ib_isert.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/infiniband/ulp/isert/ib_isert.c +10 -0
@@ -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);
Signature · 1 line
2.18.1
Reviewed-by Sagi Grimberg <[email protected]>
Quoted 10 lines · 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 <[email protected]>Reviewed-by Israel Rukshin <[email protected]>Signed-off-by Max Gurtovoy <[email protected]>Reviewed-by Sagi Grimberg <[email protected]>--- drivers/infiniband/ulp/isert/ib_isert.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
Applied to for-next, thanks
Jason