[ofa-general] [PATCH 1/4] ib/ipoib: specify TClass and FlowLabelwith PR queries for QoS support

Eitan Zahavi eitan at mellanox.co.il
Tue Aug 7 03:24:43 PDT 2007


Hi Sean

Just making sure.
The SL should also be copied from the multicast group and be provided
with the PR query.
So should be the rate.

So actually for IPoIB subnets the QoS parameters are defined "per
partition" and set on the broadcast group by the SM.
(or the first joining member ... But this is really calling for an
argument).

> --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c
> +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c
> @@ -468,9 +468,11 @@ static struct ipoib_path 
> *path_rec_create(struct net_device *dev, void *gid)
>  	INIT_LIST_HEAD(&path->neigh_list);
>  
>  	memcpy(path->pathrec.dgid.raw, gid, sizeof (union ib_gid));
> -	path->pathrec.sgid      = priv->local_gid;
> -	path->pathrec.pkey      = cpu_to_be16(priv->pkey);
> -	path->pathrec.numb_path = 1;
> +	path->pathrec.sgid          = priv->local_gid;
> +	path->pathrec.pkey          = cpu_to_be16(priv->pkey);
> +	path->pathrec.numb_path     = 1;
> +	path->pathrec.flow_label    = 
> priv->broadcast->mcmember.flow_label;
> +	path->pathrec.traffic_class = 
> priv->broadcast->mcmember.traffic_class;
>  
>  	return path;



More information about the general mailing list