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. Link: https://lore.kernel.org/r/20210524085225.29064-1-mgurtovoy@nvidia.com 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> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
Родитель
ad215aaea4
Коммит
221442ea0f
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче