[ofa-general] Re: [PATCH] opensm: osm_send_trap144() function

Sasha Khapyorsky sashak at voltaire.com
Wed Oct 29 06:56:27 PDT 2008


On 16:26 Tue 28 Oct     , Hal Rosenstock wrote:
> On Sat, Oct 25, 2008 at 1:52 PM, Sasha Khapyorsky <sashak at voltaire.com> wrote:
> >
> > Add ability to send trap 144 - osm_send_trap144() function. This can be
> > useful when SMA doesn't support trap sending on some events, such as
> > CapabilityMask change (ConnectX), OtherLocalChanges (no one supports
> > this AFAIK).
> 
> What component beside the SMA would send the ones mentioned above ?
> Also, how would it know whether or not to do this ?

I hope I answered this in previous email, anyway this is the code:

> > +       /* don't bother with sending trap when SMA supports this */
> > +       if (!local &&
> > +           pi->capability_mask&(IB_PORT_CAP_HAS_TRAP|IB_PORT_CAP_HAS_CAP_NTC))
> > +               return 0;
> > +

That should work fine for CapabilityMask change. And I have no a good
idea about how to track capability of OtherLocalChanges trap sending.

Sasha



More information about the general mailing list