Roland:

None of the functions in smi.c follow your definition. 
0 is used to say discard packet and 1 for completion up the stack.

So, I am not sure if reworking this one function with 3 return values buys
anything.

Thanks,
Suri

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Roland Dreier
> Sent: Thursday, March 29, 2007 1:57 PM
> To: Hal Rosenstock
> Cc: [email protected]
> Subject: Re: [ofa-general] Re: [PATCH] IB/core: Enhance SMI for switch support
> 
>  > >   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.
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to