[ofa-general] [infiniband-diags] if perfquery -a is specified loop through ports if required and aggregate output

Al Chu chu11 at llnl.gov
Fri Oct 10 16:02:00 PDT 2008


Hey Sasha,

And finally the big patch.  If -a is specified and AllPortSelect is not
supported (and -l isn't specified) loop through all ports and aggregate
them into one output.

So the patch is a tad lengthy given the manual packet parsing/counting
that had to be done.  I'm not aware of any libs/helper funcs in OFED
that could have made this code shorter.  Please let me know if there are
some obvious funcs that could make this better. 

Also, my understanding is that in IB, counters don't wrap around.  When
they get to the max they stay at the max.  So wrap-around checks for all
of the counters is there as I added things up.  Couldn't find some
wrapper funcs for this in OFED already.  So hopefully I'm not repeating
code.

Al

-- 
Albert Chu
chu11 at llnl.gov
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory




More information about the general mailing list