[ofa-general] Re: [PATCH] infiniband-diags/ibtracert: print lids in decimal form

Jason Gunthorpe jgunthorpe at obsidianresearch.com
Sat Nov 17 12:41:11 PST 2007


On Thu, Nov 15, 2007 at 06:30:17AM -0800, Hal Rosenstock wrote:
> On Thu, 2007-11-15 at 12:37 +0200, Sasha Khapyorsky wrote:
> > As stated in bug#504 (https://bugs.openfabrics.org/show_bug.cgi?id=504)
> > lid output format unification is needed. Print LIDs as decimal in
> > ibtracert.
> 
> I'd prefer to see this done as some sort of option. Also, I think hex is
> better for MLIDs.

FWIW, we consistently use hex notation in our switch products in the
format '0x10/16' which specifies both the LMC and the LID in a compact
manner.

Since both GIDs, GUIDs and MACs are printed in hex, choosing decimal for lid
seems like an inconsistent choice to me. It also makes it harder to
read out the LMC bits.

Also, this same kind of unification is needed for GID's. They should
always be printed and accepted in IPv6 format, not 128 bit
decimal.

Jason



More information about the general mailing list