]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma: Add an option to set net namespace of rdma device
authorParav Pandit <parav@mellanox.com>
Fri, 31 May 2019 03:11:16 +0000 (22:11 -0500)
committerDavid Ahern <dsahern@gmail.com>
Fri, 31 May 2019 22:10:32 +0000 (15:10 -0700)
commitd17a0248a287cabf59936bc34b0e1b960ae83f46
treeb5b7d3fbe9d7ae20af2502c337291f82580404cd
parente86127201504d00987d89c9c48eebc6b0c7eb2c8
rdma: Add an option to set net namespace of rdma device

Enrich rdmatool with an option to set network namespace of RDMA
device. After successful execution of it, rdma device will
be accessible only in assigned network namespace.

rdma tool command examples and output.

First set netns mode to exclusive.

$ rdma system set netns exclusive

Now create network namespace and assign RDMA device to this
network namespace.

$ ip netns add foo
$ rdma dev set mlx5_1 netns foo

Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
rdma/dev.c