osm_vendor_get_all_port_attr() will return attributes for only IB ports
and will filter out all non-IB (iWARP) devices.

Signed-off-by: Sasha Khapyorsky <[EMAIL PROTECTED]>
---
 opensm/libvendor/osm_vendor_ibumad.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/opensm/libvendor/osm_vendor_ibumad.c 
b/opensm/libvendor/osm_vendor_ibumad.c
index 522325b..977a3b2 100644
--- a/opensm/libvendor/osm_vendor_ibumad.c
+++ b/opensm/libvendor/osm_vendor_ibumad.c
@@ -571,6 +571,8 @@ osm_vendor_get_all_port_attr(IN osm_vendor_t * const p_vend,
                 * For each CA, retrieve the port guids
                 */
                if (umad_get_ca(p_vend->ca_names[i], &ca) == 0) {
+                       if (ca.node_type < 1 || ca.node_type > 3)
+                               continue;
                        for (j = 0; j <= ca.numports; j++) {
                                if (!ca.ports[j])
                                        continue;
-- 
1.5.4.rc2.38.gd6da3

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

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

Reply via email to