[ofw] [PATCH] libibumad: add new link_layer field
Hefty, Sean
sean.hefty at intel.com
Wed Jun 2 12:42:46 PDT 2010
Update libibumad to include a link_layer field as part of the port structure.
This updates the definition to match linux and is needed for the ib-diag
port.
Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
Index: ulp/libibumad/include/infiniband/umad.h
===================================================================
--- ulp/libibumad/include/infiniband/umad.h (revision 2812)
+++ ulp/libibumad/include/infiniband/umad.h (working copy)
@@ -111,6 +111,7 @@
uint64_t port_guid;
unsigned pkeys_size;
uint16_t *pkeys;
+ char link_layer[UMAD_CA_NAME_LEN];
} umad_port_t;
Index: ulp/libibumad/src/umad.cpp
===================================================================
--- ulp/libibumad/src/umad.cpp (revision 2812)
+++ ulp/libibumad/src/umad.cpp (working copy)
@@ -161,6 +161,8 @@
}
}
+ sprintf(port->link_layer, "IB");
+
return 0;
}
More information about the ofw
mailing list