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

Sasha Khapyorsky sashak at voltaire.com
Mon Nov 26 13:07:20 PST 2007


On 13:41 Sat 17 Nov     , Jason Gunthorpe wrote:
> 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.

Not sure this was discussed explicitly (probably it should be). My
feeling based on the feedback from people (emails, opened bugs, etc)
was that desired *IDs formats are decimal for LIDs, LMC and hexadecimal
for GUIDs, MLIDs.

I don't remember that GID was discussed at all and I think that Jason's
proposition about ipv6 format is first here.

Any other opinions? Should *IDs formats be formalized at all? Thoughts?

Sasha



More information about the general mailing list