[openib-general] [PATCH] expand local SA cache to include all path records from source

Hal Rosenstock halr at voltaire.com
Fri Apr 21 04:45:40 PDT 2006


On Thu, 2006-04-20 at 18:28, Sean Hefty wrote:

> Index: core/local_sa.c
> ===================================================================
> --- core/local_sa.c	(revision 6542)
> +++ core/local_sa.c	(working copy)

> +
> +enum {
> +	IB_MAX_PATHS_PER_QUERY = 0x7F
> +};

>  static void recv_handler(struct ib_mad_agent *mad_agent,
> @@ -251,12 +316,10 @@ static void format_path_req(struct sa_db
>  	mad->mad_hdr.attr_id	   = cpu_to_be16(IB_SA_ATTR_PATH_REC);
>  	mad->mad_hdr.tid	   = form_tid(msg->mad_agent->hi_tid);
>  
> -	mad->sa_hdr.comp_mask = IB_SA_PATH_REC_SGID | IB_SA_PATH_REC_PKEY |
> -				IB_SA_PATH_REC_NUMB_PATH;
> +	mad->sa_hdr.comp_mask = IB_SA_PATH_REC_SGID | IB_SA_PATH_REC_NUMB_PATH;
>  
>  	path_rec.sgid = port->gid;
> -	path_rec.pkey = port->pkey;
> -	path_rec.numb_path = 1;
> +	path_rec.numb_path = IB_MAX_PATHS_PER_QUERY;
>  	ib_sa_pack_attr(mad->data, &path_rec, IB_SA_ATTR_PATH_REC);
>  }

How does this work in a large subnet ?

-- Hal





More information about the general mailing list