From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Chiu Subject: [PATCH] libibmad: To reserve upper 8 bits of tid used by solaris SRIOV driver Date: Tue, 12 Mar 2013 12:35:34 -0700 Message-ID: <513F8386.5070208@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "iw >> Ira Weiny" Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org From: Brendan Doyle Signed-off-by: Brendan Doyle --- 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html