win-pvdrivers

changeset 295:626be056aed2 wdm

merge of 262
author Andy Grover <andy.grover@oracle.com>
date Mon Jun 09 21:04:33 2008 -0700 (2008-06-09)
parents ad900d2d7507 2fc877b00cfd
children a507de94dedf
files xennet/xennet_rx.c xennet/xennet_tx.c
line diff
     1.1 --- a/xennet/xennet_rx.c	Sun Jun 08 23:13:49 2008 +1000
     1.2 +++ b/xennet/xennet_rx.c	Mon Jun 09 21:04:33 2008 -0700
     1.3 @@ -29,7 +29,9 @@ XenNet_RxBufferAlloc(struct xennet_info 
     1.4    int i, batch_target, notify;
     1.5    RING_IDX req_prod = xi->rx.req_prod_pvt;
     1.6    netif_rx_request_t *req;
     1.7 +#ifdef DEBUG
     1.8    int cycles = 0;
     1.9 +#endif
    1.10  #if defined(XEN_PROFILE)
    1.11    LARGE_INTEGER tsc, dummy;
    1.12  #endif
    1.13 @@ -363,7 +365,9 @@ XenNet_RxBufferCheck(struct xennet_info 
    1.14    struct netif_rx_response *rxrsp = NULL;
    1.15    struct netif_extra_info *ei;
    1.16    USHORT id;
    1.17 +#ifdef DEBUG
    1.18    int cycles = 0;
    1.19 +#endif
    1.20  #if defined(XEN_PROFILE)
    1.21    LARGE_INTEGER tsc, dummy;
    1.22  #endif
    1.23 @@ -497,7 +501,9 @@ XenNet_ReturnPacket(
    1.24  {
    1.25    struct xennet_info *xi = MiniportAdapterContext;
    1.26    PMDL mdl;
    1.27 +#ifdef DEBUG
    1.28    int cycles = 0;
    1.29 +#endif
    1.30  #if defined(XEN_PROFILE)
    1.31    LARGE_INTEGER tsc, dummy;
    1.32  #endif
     2.1 --- a/xennet/xennet_tx.c	Sun Jun 08 23:13:49 2008 +1000
     2.2 +++ b/xennet/xennet_tx.c	Mon Jun 09 21:04:33 2008 -0700
     2.3 @@ -251,8 +251,10 @@ XenNet_SendQueuedPackets(struct xennet_i
     2.4  #if defined(XEN_PROFILE)
     2.5    LARGE_INTEGER tsc, dummy;
     2.6  #endif
     2.7 -  
     2.8 +
     2.9 +#ifdef DEBUG
    2.10    int cycles = 0;
    2.11 +#endif
    2.12    BOOLEAN success;
    2.13  
    2.14  #if defined(XEN_PROFILE)
    2.15 @@ -297,7 +299,9 @@ XenNet_TxBufferGC(struct xennet_info *xi
    2.16    ULONG packet_count = 0;
    2.17    int moretodo;
    2.18    ULONG i;
    2.19 +#ifdef DEBUG
    2.20    int cycles = 0;
    2.21 +#endif
    2.22  #if defined(XEN_PROFILE)
    2.23    LARGE_INTEGER tsc, dummy;
    2.24  #endif