[openib-general] APM support in openib stack

Sean Hefty mshefty at ichips.intel.com
Mon Oct 30 16:47:59 PST 2006


> Sean, i don't familiar with the cm.c code, but i believe that the 
> following patch will solve this issue:
> 
> Index: last_stable/drivers/infiniband/core/cm.c
> ===================================================================
> --- last_stable.orig/drivers/infiniband/core/cm.c       2006-10-29 16:58:08.000000000 +0200
> +++ last_stable/drivers/infiniband/core/cm.c    2006-10-29 17:31:57.000000000 +0200
> @@ -3221,6 +3221,7 @@ static int cm_init_qp_rtr_attr(struct cm
>                 if (cm_id_priv->alt_av.ah_attr.dlid) {
>                         *qp_attr_mask |= IB_QP_ALT_PATH;
>                         qp_attr->alt_port_num = cm_id_priv->alt_av.port->port_num;
> +                       qp_attr->alt_timeout = cm_id_priv->alt_av.packet_life_time;
>                         qp_attr->alt_ah_attr = cm_id_priv->alt_av.ah_attr;
>                 }
>                 ret = 0;

Thanks - something like this does appear to be needed.  To mirror the primary 
path local ack time, we want something like packet_life_time + 1.  We're also 
missing setting the alt_pkey_index here as well.

I've switched around my schedule to work on the path failover code now, so I'll 
work on some patches and a test program for this.

- Sean




More information about the general mailing list