[ofa-general] [PATCH 1/2] ib/sa: Add InformInfo/Notice support

Or Gerlitz ogerlitz at voltaire.com
Tue Jul 3 04:41:59 PDT 2007


Sean Hefty wrote:

> +static void inform_event_handler(struct ib_event_handler *handler,
> +				struct ib_event *event)
> +{
> +	struct inform_device *dev;
> +
> +	dev = container_of(handler, struct inform_device, event_handler);
> +
> +	switch (event->event) {
> +	case IB_EVENT_PORT_ERR:
> +	case IB_EVENT_LID_CHANGE:
> +	case IB_EVENT_SM_CHANGE:
> +	case IB_EVENT_CLIENT_REREGISTER:
> +		inform_groups_lost(&dev->port[event->element.port_num -
> +					      dev->start_port]);

I think you want to act here only if event->element.port_num is the port 
this inform_device is associated with (similar to IPoIB), also the same 
for mcast_event_handler.

Or.




More information about the general mailing list