Re: [PATCH] rdma: not display the rdma link in other net namespace

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

 



On Thu, Oct 06, 2022 at 10:26:33PM +0800, Yanjun Zhu wrote:
> 
> 在 2022/10/6 20:53, Leon Romanovsky 写道:
> > On Fri, Sep 30, 2022 at 03:25:00PM +0800, Yanjun Zhu wrote:
> > > 在 2022/9/28 14:04, Leon Romanovsky 写道:
> > > > On Tue, Sep 27, 2022 at 06:58:50PM +0800, Yanjun Zhu wrote:
> > > > > 在 2022/9/27 18:34, Leon Romanovsky 写道:
> > > > > > On Sun, Sep 25, 2022 at 10:40:33PM -0400, yanjun.zhu@xxxxxxxxx wrote:
> > > > > > > From: Zhu Yanjun <yanjun.zhu@xxxxxxxxx>
> > <...>
> > 
> > > Is it better to append "exclusive" or "shared" in the end of the line?
> > No, exclusive/shared is global property, applied to all links.
> 
> OK.
> 
> When running "rdma link show", there is no difference between shared and
> exclusive.
> 
> Is it acceptable?

exclusive/shared is ib_core module parameter, so or all links are shared
or all links are exclusive. They can't be both at the same time.

> 
> 
> And in exclusive mode, a rdma link that can not be accessed in net namespace
> A still
> 
> appears in net namespace A when running "rdma link show" in net namespace A.
> 
> The above is different from others in net namespace.
> 
> For example, in net namespace, if net device NIC0 is moved to net namespace
> B from net namespace A,
> 
> this NIC0 will not appear in net namespace A when running "ip link" command
> in net namespace A.
> 
> Is it a problem?

rdmatool presents IB devices. It has no logic that decides if that
device is usable/operable or not.

Thanks

> 
> 
> 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