public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libibmad: To reserve upper 8 bits of tid used by solaris SRIOV driver
@ 2013-03-12 19:35 Boris Chiu
       [not found] ` <513F8386.5070208-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Boris Chiu @ 2013-03-12 19:35 UTC (permalink / raw)
  To: iw >> Ira Weiny; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

From: Brendan Doyle <brendan.doyle-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>

Signed-off-by: Brendan Doyle <brendan.doyle-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
---
 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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-03-21 20:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-12 19:35 [PATCH] libibmad: To reserve upper 8 bits of tid used by solaris SRIOV driver Boris Chiu
     [not found] ` <513F8386.5070208-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2013-03-20 22:11   ` Ira Weiny
     [not found]     ` <CAMLCd9LOuajya0_s4NhuUD4hUtHnc_NLi8sELnsEprash6t5Eg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-03-20 22:33       ` Jason Gunthorpe
     [not found]         ` <514A3996.601@oracle.com>
     [not found]           ` <514A3996.601-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2013-03-21  0:20             ` Fwd: " brendan doyle
     [not found]               ` <514A525F.7030706-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2013-03-21  0:51                 ` Weiny, Ira
     [not found]                   ` <2807E5FD2F6FDA4886F6618EAC48510EBB428F-8k97q/ur5Z1cIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-03-21  1:23                     ` brendan doyle
2013-03-21  5:07                 ` Jason Gunthorpe
     [not found]                   ` <20130321050709.GA20882-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-03-21 18:14                     ` brendan doyle
     [not found]                       ` <514B4E17.5020703-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2013-03-21 18:45                         ` Jason Gunthorpe
     [not found]                           ` <20130321184507.GB8044-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-03-21 20:40                             ` brendan doyle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox