[openib-general] [PATCH] RFC: allow send only registration from userspace

Hal Rosenstock halr at voltaire.com
Tue Mar 29 07:20:00 PST 2005


On Mon, 2005-03-28 at 22:43, Roland Dreier wrote: 
> It seems that ib_umad does not allow userspace to register an agent
> for solicited MADs only.  The documentation says that if userspace
> passes a mgmt_class of 0 then the agent will not receive any
> unsolicited MADs, but in this case ib_umad still passes a
> ib_mad_reg_req struct to ib_register_mad_agent() so the registration
> just fails.
> 
> I'm surprised that no one has complained about this yet.  How did
> ibping work in userspace if the kernel had already registered for the
> ping class?

The management class for the ping registrations (for the server) is not
0 so you can't run both kernel and usermode ibping server
simultaneously.

> Does this patch look right to everyone?

It looks right. Have you tried it out ?

Also, there was a thread a while ago on adding async event support to
user_mad.c. This is needed by OpenSM. Any comments on this ?

-- Hal





More information about the general mailing list