public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* missing port number(s) in trap 128?
@ 2014-05-08 11:51 Jesus Camacho Villanueva
       [not found] ` <CAA8OkbuY4F9N1RkNQFgDCYveWkzDVzcRmqK4F=CBdSC+Hv5APg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Jesus Camacho Villanueva @ 2014-05-08 11:51 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Hello Everyone,

When OpenSM receives a trap 128 indicating a "Link state of at least
one port of switch at <LIDADDR> has changed", it seems there is not
any information about the port number(s) of the affected link(s).

Do you know if there is any chance to retrieve this information from
this trap or through other incoming MAD(s)?

Any ideas or suggestions would be greatly appreciated.

Kind regards,
Jesus Camacho
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: missing port number(s) in trap 128?
       [not found] ` <CAA8OkbuY4F9N1RkNQFgDCYveWkzDVzcRmqK4F=CBdSC+Hv5APg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-05-08 13:20   ` Hal Rosenstock
       [not found]     ` <536B8483.1050502-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Hal Rosenstock @ 2014-05-08 13:20 UTC (permalink / raw)
  To: Jesus Camacho Villanueva; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

On 5/8/2014 7:51 AM, Jesus Camacho Villanueva wrote:
> Hello Everyone,
> 
> When OpenSM receives a trap 128 indicating a "Link state of at least
> one port of switch at <LIDADDR> has changed", it seems there is not
> any information about the port number(s) of the affected link(s).
> 
> Do you know if there is any chance to retrieve this information from
> this trap or through other incoming MAD(s)?
> 
> Any ideas or suggestions would be greatly appreciated.

Per current IBTA spec, port number is not included in link state change
trap 128. It would need to include a set of ports which changed state
and not just single port.

Once SM receives trap 128 from some switch, SM is responsible for
querying that switch and determining which ports changed state from
"last" time it queried them. It can do this via querying PortInfo MAD
for all the ports on that switch. PortInfo MAD contains the PortState.
SM also resets the PortStateChange bit in SwitchInfo MAD for that switch.

-- Hal

> 
> Kind regards,
> Jesus Camacho
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: missing port number(s) in trap 128?
       [not found]     ` <536B8483.1050502-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2014-05-08 14:05       ` Jesus Camacho Villanueva
  0 siblings, 0 replies; 3+ messages in thread
From: Jesus Camacho Villanueva @ 2014-05-08 14:05 UTC (permalink / raw)
  To: Hal Rosenstock; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Hal,

thanks for your quick and clear response.

Jesus


On 8 May 2014 15:20, Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:
>
> On 5/8/2014 7:51 AM, Jesus Camacho Villanueva wrote:
> > Hello Everyone,
> >
> > When OpenSM receives a trap 128 indicating a "Link state of at least
> > one port of switch at <LIDADDR> has changed", it seems there is not
> > any information about the port number(s) of the affected link(s).
> >
> > Do you know if there is any chance to retrieve this information from
> > this trap or through other incoming MAD(s)?
> >
> > Any ideas or suggestions would be greatly appreciated.
>
> Per current IBTA spec, port number is not included in link state change
> trap 128. It would need to include a set of ports which changed state
> and not just single port.
>
> Once SM receives trap 128 from some switch, SM is responsible for
> querying that switch and determining which ports changed state from
> "last" time it queried them. It can do this via querying PortInfo MAD
> for all the ports on that switch. PortInfo MAD contains the PortState.
> SM also resets the PortStateChange bit in SwitchInfo MAD for that switch.
>
> -- Hal
>
> >
> > Kind regards,
> > Jesus Camacho
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-08 14:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-08 11:51 missing port number(s) in trap 128? Jesus Camacho Villanueva
     [not found] ` <CAA8OkbuY4F9N1RkNQFgDCYveWkzDVzcRmqK4F=CBdSC+Hv5APg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-08 13:20   ` Hal Rosenstock
     [not found]     ` <536B8483.1050502-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2014-05-08 14:05       ` Jesus Camacho Villanueva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox