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

Sean Hefty mshefty at ichips.intel.com
Fri Apr 21 09:33:51 PDT 2006


Hal Rosenstock wrote:
>> 	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 ?

It would retrieve a large number of paths, and the resulting cache would be 
huge.  Thinking about this more, I will change IB_MAX_PATHS_PER_QUERY to be a 
module parameter.

- Sean



More information about the general mailing list