[ofw] RE: [PATCH] IPoIB - add guid2mac table

Sean Hefty sean.hefty at intel.com
Sun Dec 7 22:36:58 PST 2008


>+const ipoib_guid2mac_translation_t guid2mac_table[] = {
>+ {0x30, 0x48, 0xE7},
>+ {0x05, 0xAD, 0xE7},
>+ {0x18, 0x8B, 0xE7},
>+ {0x1A, 0x4B, 0xE7},
>+ {0x17, 0x08, 0xE7},
>+ {0x1E, 0x0B, 0xE7},
>+
>+ {0x00, 0x00, 0x00},
>+};

Why not sort the GUIDs, so that a binary search can be used instead?  Or is this
table never examined during any speed path operations?

- Sean




More information about the ofw mailing list