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