[Pvfs2-cvs] commit by atchley in pvfs2/src/io/bmi/bmi_mx: mx.c mx.h
CVS commit program
cvs at parl.clemson.edu
Thu Feb 21 13:41:45 EST 2008
Update of /projects/cvsroot/pvfs2/src/io/bmi/bmi_mx
In directory parlweb1:/tmp/cvs-serv21015
Modified Files:
mx.c mx.h
Log Message:
Modified Files:
mx.c mx.h
Define BMX_MASK as ~0ULL and replace -1ULL with it
Index: mx.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/bmi/bmi_mx/mx.c,v
diff -p -u -r1.12 -r1.13
--- mx.c 21 Feb 2008 16:41:57 -0000 1.12
+++ mx.c 21 Feb 2008 18:41:44 -0000 1.13
@@ -1637,7 +1637,7 @@ bmx_post_rx(struct bmx_ctx *rx)
segs = rx->mxc_seg_list;
}
mxret = mx_irecv(bmi_mx->bmx_ep, segs, rx->mxc_nseg,
- rx->mxc_match, -1ULL, (void *) rx, &rx->mxc_mxreq);
+ rx->mxc_match, BMX_MASK, (void *) rx, &rx->mxc_mxreq);
if (mxret != MX_SUCCESS) {
ret = -BMI_ENOMEM;
bmx_deq_pending_ctx(rx); /* uses peer lock */
@@ -1865,7 +1865,7 @@ bmx_post_unexpected_recv(mx_endpoint_add
debug(BMX_DB_CTX, "%s rx match= 0x%llx length= %lld", __func__,
llu(rx->mxc_match), lld(rx->mxc_nob));
mxret = mx_irecv(bmi_mx->bmx_ep, &rx->mxc_seg, rx->mxc_nseg,
- rx->mxc_match, -1ULL, (void *) rx, &rx->mxc_mxreq);
+ rx->mxc_match, BMX_MASK, (void *) rx, &rx->mxc_mxreq);
if (mxret != MX_SUCCESS) {
debug((BMX_DB_MX|BMX_DB_CTX), "mx_irecv() failed with %s for an "
"unexpected recv with tag %d length %d",
@@ -1921,7 +1921,7 @@ bmx_unexpected_recv(void *context, mx_en
debug(BMX_DB_CONN, "%s rx match= 0x%llx length= %lld",
__func__, llu(rx->mxc_match), lld(rx->mxc_nob));
mxret = mx_irecv(bmi_mx->bmx_ep, &rx->mxc_seg, rx->mxc_nseg,
- rx->mxc_match, -1ULL, (void *) rx, &rx->mxc_mxreq);
+ rx->mxc_match, BMX_MASK, (void *) rx, &rx->mxc_mxreq);
if (mxret != MX_SUCCESS) {
debug(BMX_DB_CONN, "mx_irecv() failed for an "
"unexpected recv with %s",
Index: mx.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/bmi/bmi_mx/mx.h,v
diff -p -u -r1.5 -r1.6
--- mx.h 4 Oct 2007 13:56:13 -0000 1.5
+++ mx.h 21 Feb 2008 18:41:44 -0000 1.6
@@ -122,6 +122,8 @@ typedef struct qlist_head list_t;
* 0-31 Version
*/
+#define BMX_MASK (~0ULL)
+
#define BMX_MAX_PEER_ID ((1<<20) - 1) /* 20 bits - actually 1,048,574 peers
1 to 1,048,575 */
More information about the Pvfs2-cvs
mailing list