OSDN Git Service

IB/cma: Separate port allocation to network namespaces
authorHaggai Eran <haggaie@mellanox.com>
Thu, 22 Oct 2015 12:20:09 +0000 (15:20 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 28 Oct 2015 16:32:48 +0000 (12:32 -0400)
commit4be74b42a6d05a74a21362010cd3920fa17f63c7
tree1a55242de7505cc90b30d13c79cabc6324ad264c
parent565edd1d555513ab5d67a847d50d7c14c82ef6c3
IB/cma: Separate port allocation to network namespaces

Keep a struct for each network namespace containing the IDRs for the RDMA
CM port spaces. The struct is created dynamically using the generic_net
mechanism.

This patch is internal infrastructure work for the following patches. In
this patch, init_net is statically used as the network namespace for
the new port-space API.

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: Guy Shapiro <guysh@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c