[openib-general] Re: [PATCH] Allow setting of NodeDescription

Michael S. Tsirkin mst at mellanox.co.il
Thu Sep 15 04:18:04 PDT 2005


Quoting Hal Rosenstock <halr at voltaire.com>:
> > > On Wed, 2005-09-14 at 19:43, Roland Dreier wrote:
> > > 
> > >> - Allows userspace to set node_desc by writing into sysfs file, eg.
> > >>     echo -n `hostname` >> /sys/class/infiniband/mthca0/node_desc
> >
> > I would think the way to use this is to add the above call to the
> > modprobe sequence.
> 
> That still leaves a window where the SM could get this after the driver
> and core are started but before this is set.

Well, if someone is really worried about this, we could add
a module parameter to drop NodeInfo MADs by default.
Then you can

modprobe ib_mad nodeinfo_drop=1
echo `hostname` > /sys/class/infiniband/mthca0/node_desc
echo 0 > /sys/class/infiniband/mthca0/nodeinfo_drop

Hmm, maybe this can be generalized to have a mask of MADs to drop.
I dont know if this is a good idea. Roland?

-- 
MST



More information about the general mailing list