win-pvdrivers

changeset 214:b400fd002071

xennet: tx_outstanding inc/dec appear to have been backwards
author Andy Grover <andy.grover@oracle.com>
date Thu Mar 20 16:39:32 2008 -0700 (2008-03-20)
parents 9ae143ae1f91
children e12cad680f3c
files xennet/xennet_tx.c
line diff
     1.1 --- a/xennet/xennet_tx.c	Wed Mar 19 16:34:54 2008 -0700
     1.2 +++ b/xennet/xennet_tx.c	Thu Mar 20 16:39:32 2008 -0700
     1.3 @@ -376,7 +376,7 @@ XenNet_TxBufferGC(struct xennet_info *xi
     1.4        put_gref_on_freelist(xi, xi->tx_grefs[id]);
     1.5        xi->tx_grefs[id] = 0;
     1.6        put_id_on_freelist(xi, id);
     1.7 -      xi->tx_outstanding++;
     1.8 +      xi->tx_outstanding--;
     1.9      }
    1.10  
    1.11      xi->tx.rsp_cons = prod;
    1.12 @@ -438,7 +438,7 @@ XenNet_SendPackets(
    1.13      *(ULONG *)&packet->MiniportReservedEx = 0;
    1.14      entry = (PLIST_ENTRY)&packet->MiniportReservedEx[sizeof(PVOID)];
    1.15      InsertTailList(&xi->tx_waiting_pkt_list, entry);
    1.16 -    xi->tx_outstanding--;
    1.17 +    xi->tx_outstanding++;
    1.18  #if defined(XEN_PROFILE)
    1.19      ProfCount_PacketsPerSendPackets++;
    1.20  #endif