Forgot to check in a result
authorSayantan Chakravorty <sayantan_chak@yahoo.com>
Sun, 15 Jul 2007 04:24:02 +0000 (04:24 +0000)
committerSayantan Chakravorty <sayantan_chak@yahoo.com>
Sun, 15 Jul 2007 04:24:02 +0000 (04:24 +0000)
src/arch/net/machine-ibverbs.c

index dbf1c4e259b5508c4a43f65eec84e95399f5010a..fba55176efb262ecc24f372e91831a6a29ac926e 100644 (file)
@@ -57,7 +57,7 @@ static double regTime;
 static double processBufferedTime;
 static int processBufferedCount;
 
-#define CMK_IBVERBS_STATS 1
+#define CMK_IBVERBS_STATS 0
 #define CMK_IBVERBS_INCTOKENS 1
 #define CMK_IBVERBS_DEBUG 0
 
@@ -1763,12 +1763,13 @@ static void increasePostedRecvs(int nodeNo){
                assert(0);
        }
        context->recvCqSize += tokenIncrease;
-
-       //create another bufferPool and attach it to the top of the current one
-       struct infiBufferPool *newPool = allocateInfiBufferPool(recvIncrease,packetSize);
-       newPool->next = context->recvBufferPool;
-       context->recvBufferPool = newPool;
-       postInitialRecvs(newPool,recvIncrease,packetSize);
+       if(recvIncrease > 0){
+               //create another bufferPool and attach it to the top of the current one
+               struct infiBufferPool *newPool = allocateInfiBufferPool(recvIncrease,packetSize);
+               newPool->next = context->recvBufferPool;
+               context->recvBufferPool = newPool;
+               postInitialRecvs(newPool,recvIncrease,packetSize);
+       }
 
 };