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
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to