win-pvdrivers

changeset 65:fd2827973086

xennet: set field in packet which kept rx from working; turn off some kdprints
author Andy Grover <andy.grover@oracle.com>
date Tue Dec 18 20:44:13 2007 -0800 (2007-12-18)
parents ed27484c3ab8
children 6de0f54b913c
files xennet/xennet.c
line diff
     1.1 --- a/xennet/xennet.c	Tue Dec 18 20:21:32 2007 -0800
     1.2 +++ b/xennet/xennet.c	Tue Dec 18 20:44:13 2007 -0800
     1.3 @@ -283,6 +283,7 @@ XenNet_AllocRXBuffers(struct xennet_info
     1.4        break;
     1.5      }
     1.6      NdisChainBufferAtBack(packet, buffer);
     1.7 +    NDIS_SET_PACKET_HEADER_SIZE(packet, XN_HDR_SIZE);
     1.8  
     1.9      /* Give to netback */
    1.10      id = (unsigned short)(req_prod + i) & (NET_RX_RING_SIZE - 1);
    1.11 @@ -386,7 +387,7 @@ XenNet_Interrupt(
    1.12  
    1.13    UNREFERENCED_PARAMETER(Interrupt);
    1.14  
    1.15 -  KdPrint((__DRIVER_NAME "     ***XenNet Interrupt***\n"));  
    1.16 +  //KdPrint((__DRIVER_NAME "     ***XenNet Interrupt***\n"));  
    1.17  
    1.18    if (xi->connected)
    1.19    {
    1.20 @@ -1012,7 +1013,7 @@ XenNet_ReturnPacket(
    1.21    NdisFreeBuffer(buffer);
    1.22    NdisFreePacket(Packet);
    1.23  
    1.24 -  KdPrint((__FUNCTION__ " called\n"));
    1.25 +  //KdPrint((__FUNCTION__ " called\n"));
    1.26  }
    1.27  
    1.28  PMDL
    1.29 @@ -1071,7 +1072,7 @@ XenNet_SendPackets(
    1.30  
    1.31      NdisQueryPacket(curr_packet, NULL, NULL, NULL, &pkt_size);
    1.32  
    1.33 -    KdPrint(("sending pkt, len %d\n", pkt_size));
    1.34 +    //KdPrint(("sending pkt, len %d\n", pkt_size));
    1.35  
    1.36      pmdl = XenNet_Linearize(curr_packet);
    1.37      if (!pmdl)