Re: [PATCH v2 39/49] IB/hfi1: add sysfs routines

ira.weiny
2015-07-08T23:22:42Z

On Wed, Jul 08, 2015 at 10:32:44PM +0000, Marciniszyn, Mike wrote:
> > > This sysfs entries are used by PSM2 to form packets from user space.
> >
> > You didn't explain what's SC and what's SC-to-VL and why PSM2 can't talk to
> > the SM to query that.

Like IB the SL to SC to VL maps are available via SMA queries on the local
port. However, it is more secure if SMP queries are limited to root or
management nodes. (This is also true in IB.)

So requiring PSM, ie regular applications, to issue SMA queries on the local
port is not appropriate as it precludes a more secure policy of restricting
the umad interface.

sysfs is IMO a reasonable interface to communicate these tables to regular
user applications.

Ira