[ofa-general] Re: [PATCH] infiniband: modify ammasso driver to use send with invalidate

Roland Dreier rdreier at cisco.com
Wed May 2 10:16:24 PDT 2007


 > > +			if (ib_wr->send_flags & IB_SEND_SOLICITED
 > > +				&& ib_wr->send_flags & IB_SEND_INVALIDATE) {
 > 
 > How about
 > 	if (ib_wr->send_flags & (IB_SEND_SOLICITED | IB_SEND_INVALIDATE))

These two aren't equivalent -- the first has an &&, yours works like ||.
Which is correct?



More information about the general mailing list