linux-stable/net/sunrpc/xprtrdma
Guy Shapiro fa20105e09 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>
2015-10-28 12:32:48 -04:00
..
fmr_ops.c xprtrdma: Replace global lkey with lkey local to PD 2015-09-25 10:46:51 -04:00
frwr_ops.c xprtrdma: Replace global lkey with lkey local to PD 2015-09-25 10:46:51 -04:00
Makefile rpcrdma: Merge svcrdma and xprtrdma modules into one 2015-06-04 16:56:02 -04:00
module.c rpcrdma: Merge svcrdma and xprtrdma modules into one 2015-06-04 16:56:02 -04:00
physical_ops.c xprtrdma: Replace global lkey with lkey local to PD 2015-09-25 10:46:51 -04:00
rpc_rdma.c xprtrdma: Count RDMA_NOMSG type calls 2015-08-05 16:21:28 -04:00
svc_rdma.c rpcrdma: Merge svcrdma and xprtrdma modules into one 2015-06-04 16:56:02 -04:00
svc_rdma_marshal.c svcrdma: Keep rpcrdma_msg fields in network byte-order 2015-06-04 16:55:59 -04:00
svc_rdma_recvfrom.c svcrdma: Use max_sge_rd for destination read depths 2015-08-28 23:02:11 -04:00
svc_rdma_sendto.c svcrdma: Clean up svc_rdma_get_reply_array() 2015-07-20 14:58:47 -04:00
svc_rdma_transport.c IB/cma: Add support for network namespaces 2015-10-28 12:32:48 -04:00
transport.c xprtrdma: Count RDMA_NOMSG type calls 2015-08-05 16:21:28 -04:00
verbs.c IB/cma: Add support for network namespaces 2015-10-28 12:32:48 -04:00
xprt_rdma.h xprtrdma: Replace global lkey with lkey local to PD 2015-09-25 10:46:51 -04:00