[ofa-general] Re: [PATCH] IB/core: Enhance SMI for switch support

Roland Dreier rdreier at cisco.com
Thu Mar 29 10:56:43 PDT 2007


 > >   Especially the "if (!retsmi)" is very
 > > hard to follow.
 > 
 > Is it hard to follow ?

It doesn't follow the convention of returning 0 if success, non-zero
if failure -- the only way I could know that !retsmi means something
other than "success" is if I go read the comment that tells me "0 if
the SMP should be completed up the stack," and there's no reason why I
would go search for that comment.

 - R.



More information about the general mailing list