win-pvdrivers

changeset 635:ca22d5c09eed

minor bug fix and tidyup
author James Harper <james.harper@bendigoit.com.au>
date Wed Aug 19 16:52:31 2009 +1000 (2009-08-19)
parents 743b1f6470d8
children 3c5e4640df28
files xennet/xennet_rx.c xennet/xennet_tx.c
line diff
     1.1 --- a/xennet/xennet_rx.c	Wed Aug 19 16:50:33 2009 +1000
     1.2 +++ b/xennet/xennet_rx.c	Wed Aug 19 16:52:31 2009 +1000
     1.3 @@ -447,6 +447,8 @@ XenNet_MakePackets(
     1.4    //FUNCTION_ENTER();
     1.5  
     1.6    parse_result = XenNet_ParsePacketHeader(pi, NULL, 0);
     1.7 +  
     1.8 +  //KdPrint((__DRIVER_NAME "     ip4_length = %d, tcp_length = %d\n", pi->ip4_length, pi->tcp_length));
     1.9  
    1.10    if ((xi->packet_filter & NDIS_PACKET_TYPE_MULTICAST)
    1.11      && !(xi->packet_filter & NDIS_PACKET_TYPE_ALL_MULTICAST)
    1.12 @@ -715,7 +717,6 @@ XenNet_RxBufferCheck(PKDPC dpc, PVOID co
    1.13        else
    1.14        {
    1.15          rxrsp = RING_GET_RESPONSE(&xi->rx, cons);
    1.16 -//KdPrint((__DRIVER_NAME "     status = %d, offset = %d\n", rxrsp->status, rxrsp->offset));
    1.17          if (rxrsp->status <= 0
    1.18            || rxrsp->offset + rxrsp->status > PAGE_SIZE)
    1.19          {
     2.1 --- a/xennet/xennet_tx.c	Wed Aug 19 16:50:33 2009 +1000
     2.2 +++ b/xennet/xennet_tx.c	Wed Aug 19 16:52:31 2009 +1000
     2.3 @@ -198,7 +198,7 @@ XenNet_HWSendPacket(struct xennet_info *
     2.4      }
     2.5      if (sg->NumberOfElements + !!ndis_lso > xi->tx_ring_free)
     2.6      {
     2.7 -      KdPrint((__DRIVER_NAME "     Full on send - required = %d, available = %d\n", sg->NumberOfElements + !!ndis_lso, xi->tx_ring_free));
     2.8 +      //KdPrint((__DRIVER_NAME "     Full on send - required = %d, available = %d\n", sg->NumberOfElements + !!ndis_lso, xi->tx_ring_free));
     2.9        //FUNCTION_EXIT();
    2.10        return FALSE;
    2.11      }
    2.12 @@ -427,6 +427,7 @@ XenNet_TxBufferGC(PKDPC dpc, PVOID conte
    2.13    if (xi->tx_shutting_down && !xi->tx_outstanding)
    2.14    {
    2.15      /* there is a chance that our Dpc had been queued just before the shutdown... */
    2.16 +    KeSetEvent(&xi->tx_idle_event, IO_NO_INCREMENT, FALSE);
    2.17      KeReleaseSpinLockFromDpcLevel(&xi->tx_lock);
    2.18      return;
    2.19    }