[openib-general] Re: Incoorect cm_find_port result.

Sean Hefty mshefty at ichips.intel.com
Wed Jan 26 17:06:54 PST 2005


Sean Hefty wrote:
> Index: core/cache.c
> ===================================================================
> --- core/cache.c	(revision 1665)
> +++ core/cache.c	(working copy)
> @@ -112,7 +112,7 @@ int ib_find_cached_gid(struct ib_device 
>  		cache = device->cache.gid_cache[p];
>  		for (i = 0; i < cache->table_len; ++i) {
>  			if (!memcmp(gid, &cache->table[i], sizeof *gid)) {
> -				*port_num = p;
> +				*port_num = p + start_port(device);
>  				if (index)
>  					*index = i;
>  				ret = 0;

I've committed this change, since the returned port number does not 
match that used by the device.

- Sean



More information about the general mailing list