> From: Hal Rosenstock [mailto:h...@dev.mellanox.co.il]
> Sent: Wednesday, December 09, 2015 7:50 AM
> To: Wan, Kaike; Hefty, Sean
> Cc: linux-rdma@vger.kernel.org
> Subject: Re: [PATCH 1/1] Ibacm: default pkey for partitioned fabrics
> 
> On 12/8/2015 12:33 PM, kaike....@intel.com wrote:
> > From: Kaike Wan <kaike....@intel.com>
> >
> > In an insecure IB fabric, the default pkey in a port is 0xffff, where
> > each node is allowed to talk to any other node in the fabric,
> > including the SA node. However, in a secure fabric, to limit member
> > access, not all nodes can have the full-member default pkey 0xffff. A
> > typical configuration is to let SA node have pkey 0xffff while all
> > other nodes have pkey 0x7fff; in addition, each node can be assigned
> > some other full-member pkeys, such as
> > 0x8001 and 0x8002, so that it can be assigned to different partitions.
> > In this case, each node can access SA, and yet limits its other access
> > to only those nodes in its assigned partitions. In such a secure
> > fabric, however, ibacm will not work by interpreting "default" in its
> > default address file as 0xffff.
> >
> > To solve the problem, this patch introduces the following priority to
> > interpret default pkey:
> > 1. Find the first non-management full-member pkey; 2. If it fails,
> > find pkey 0xffff; 3. If pkey 0xffff is not available, use the first
> > pkey.
> > This approach will work in both securely and insecurely partitions
> > fabrics.
> 
> Shouldn't the pkey to be used for such interACM communication be
> configured ?
Yes. The purpose of this patch is only to make a secure system work out of box 
(default configuration). When a specific pkey is given in the ibacm_addr.cfg 
file, there will be no need to interpret the "default" pkey.

> First full member pkey is non-deterministic. Isn't it the case that
> it may not include proper set of ACMs to communicate with ?

This is only for the default configuration, where a reasonable assumption is 
that members of an intended partition (group of ports) will all have the same 
full-member pkey. One could argue that a port could have two or more 
full-member non-management pkeys because it is assigned to multiple partitions. 
In this case, the port will only join only one multicast group, not all the 
multicast groups. The reply is that the default ibacm_addr.cfg have only one 
endpoint with pkey "default" anyway. To make it really work, one needs to edit 
ibacm_addr.cfg.

Kaike

Reply via email to