Why does this need to be done in user space? This seems like something which should be done in the kernel for all Transaction ID's which might be sent to the umad layer.
Ira On Tue, Mar 12, 2013 at 12:35 PM, Boris Chiu <[email protected]> wrote: > From: Brendan Doyle <[email protected]> > > Signed-off-by: Brendan Doyle <[email protected]> > --- > src/mad.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/src/mad.c b/src/mad.c > index 70a69dd..fb5f5eb 100644 > --- a/src/mad.c > +++ b/src/mad.c > @@ -62,6 +62,9 @@ uint64_t mad_trid(void) > trid = random(); > } > next = ++trid | (base << 32); > +#if defined(__SVR4) && defined(__sun) > + next &= 0x00ffffffffffffff; > +#endif > return next; > } > > -- > 1.7.1 > > -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
