Re: [PATCH 0/3] RDMA net namespace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




在 2022/10/23 21:04, Leon Romanovsky 写道:
On Sun, Oct 23, 2022 at 06:04:47PM -0400, Zhu Yanjun wrote:
From: Zhu Yanjun <yanjun.zhu@xxxxxxxxx>

There are shared and exclusive modes in RDMA net namespace. After
discussion with Leon, the above modes are compatible with legacy IB
device.

To the RoCE and iWARP devices, the ib devices should be in the same net
namespace with the related net devices regardless of in shared or
exclusive mode.

In the first commit, when the net devices are moved to a new net
namespace, the related ib devices are also moved to the same net
namespace.
I think that rdma_dev_net_ops are supposed to handle this.

Yes. rdma_dev_net_ops can move ib devices from one net to another net.

But these functions are called by a netlink command "rdma dev...".


In my commit, to RoCE devices, ib devices and net devices should be in the same net.

That is, when the net devices are moved to another net, the ib devices are moved

to the same net automically instead of running a netlink command to move ib devices.


To legacy ib devices, this netlink command is needed. To RoCE devices, this command

is not needed. When net devices are moved to new net, the ib devices are also moved automically.

Per our discussion, if RoCE's net devices and ib devices are separated in the different net, ib devices

can not work.

Zhu Yanjun


Thanks



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux