Re: [PATCH IB/core 2/2] IB/cm: Send authentic pkey in REQ msg and check eligibility of the pkeys

From: Jason Gunthorpe
Date: Mon May 14 2018 - 17:05:13 EST


On Fri, May 11, 2018 at 12:55:00PM +0200, HÃkon Bugge wrote:
> > I'll check upstream OpenSM when I get a chance to see if same problem
> > exists. Oracle OpenSM forked from upstream long time ago and not sure
> > how similar the path record code is. There were various impacts for the
> > shared port virtualization (for CX-3) in terms of adding the ability to
> > allow both pkeys.
>
> I just had a chat with Line H. here in Oracle. She confirms that Oracleâs SM and the upstream one act similar in this matter.
>
> Further, using shared port virtualization, OpenSM will adhere to the
> physical ports only, and doesnât even know the PKey assignments to
> the VFs assigned the VMs.

Yes, but that isn't the point. If the VM receives a PR with a pkey
that is not found in the VM's table then it should not even send a CM
REQ in the first place.

Jason