win-pvdrivers

changeset 113:e96b7ebe0147

xennet: buffer pool should never be exhausted -- if it is, it's a bug
author Andy Grover <andy.grover@oracle.com>
date Fri Jan 11 11:47:58 2008 -0800 (2008-01-11)
parents 57b0d44f10f5
children 64e4596aec1c
files xennet/xennet.c
line diff
     1.1 --- a/xennet/xennet.c	Fri Jan 11 11:40:45 2008 -0800
     1.2 +++ b/xennet/xennet.c	Fri Jan 11 11:47:58 2008 -0800
     1.3 @@ -296,12 +296,7 @@ XenNet_RxBufferAlloc(struct xennet_info 
     1.4        break;
     1.5      }
     1.6      NdisAllocateBuffer(&status, &buffer, xi->buffer_pool, start, PAGE_SIZE);
     1.7 -    if (status != NDIS_STATUS_SUCCESS)
     1.8 -    {
     1.9 -      KdPrint(("NdisAllocateBuffer Failed! status = 0x%x\n", status));
    1.10 -      NdisFreeMemory(start, 0, 0);
    1.11 -      break;
    1.12 -    }
    1.13 +    ASSERT(status == NDIS_STATUS_SUCCESS); // should never fail
    1.14  
    1.15      /* Give to netback */
    1.16      id = (unsigned short)(req_prod + i) & (NET_RX_RING_SIZE - 1);