IB/cma: Add support for network namespaces
Add support for network namespaces in the ib_cma module. This is accomplished by: 1. Adding network namespace parameter for rdma_create_id. This parameter is used to populate the network namespace field in rdma_id_private. rdma_create_id keeps a reference on the network namespace. 2. Using the network namespace from the rdma_id instead of init_net inside of ib_cma, when listening on an ID and when looking for an ID for an incoming request. 3. Decrementing the reference count for the appropriate network namespace when calling rdma_destroy_id. In order to preserve the current behavior init_net is passed when calling from other modules. Signed-off-by:Guy Shapiro <guysh@mellanox.com> Signed-off-by:
Haggai Eran <haggaie@mellanox.com> Signed-off-by:
Yotam Kenneth <yotamke@mellanox.com> Signed-off-by:
Shachar Raindel <raindel@mellanox.com> Signed-off-by:
Doug Ledford <dledford@redhat.com>
Showing
- drivers/infiniband/core/cma.c 28 additions, 18 deletionsdrivers/infiniband/core/cma.c
- drivers/infiniband/core/ucma.c 2 additions, 1 deletiondrivers/infiniband/core/ucma.c
- drivers/infiniband/ulp/iser/iser_verbs.c 1 addition, 1 deletiondrivers/infiniband/ulp/iser/iser_verbs.c
- drivers/infiniband/ulp/isert/ib_isert.c 1 addition, 1 deletiondrivers/infiniband/ulp/isert/ib_isert.c
- drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h 3 additions, 1 deletiondrivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h
- include/rdma/rdma_cm.h 5 additions, 1 deletioninclude/rdma/rdma_cm.h
- net/9p/trans_rdma.c 2 additions, 2 deletionsnet/9p/trans_rdma.c
- net/rds/ib.c 1 addition, 1 deletionnet/rds/ib.c
- net/rds/ib_cm.c 1 addition, 1 deletionnet/rds/ib_cm.c
- net/rds/iw.c 1 addition, 1 deletionnet/rds/iw.c
- net/rds/iw_cm.c 1 addition, 1 deletionnet/rds/iw_cm.c
- net/rds/rdma_transport.c 2 additions, 2 deletionsnet/rds/rdma_transport.c
- net/sunrpc/xprtrdma/svc_rdma_transport.c 2 additions, 2 deletionsnet/sunrpc/xprtrdma/svc_rdma_transport.c
- net/sunrpc/xprtrdma/verbs.c 2 additions, 1 deletionnet/sunrpc/xprtrdma/verbs.c
Loading
Please register or sign in to comment