win-pvdrivers

changeset 57:1acf9205fc43

xennet: set packet status before indicating
author Andy Grover <andy.grover@oracle.com>
date Mon Dec 17 18:37:43 2007 -0800 (2007-12-17)
parents b1f7c8a9eb17
children d01d2a544b72
files xennet/xennet.c
line diff
     1.1 --- a/xennet/xennet.c	Mon Dec 17 15:23:20 2007 -0800
     1.2 +++ b/xennet/xennet.c	Mon Dec 17 18:37:43 2007 -0800
     1.3 @@ -317,7 +317,6 @@ XenNet_RxBufferCheck(struct xennet_info 
     1.4    RING_IDX cons, prod;
     1.5  
     1.6    PNDIS_PACKET pkt;
     1.7 -  PNDIS_PACKET packets[1];
     1.8    PNDIS_BUFFER buffer;
     1.9    PVOID buff_va;
    1.10    UINT buff_len;
    1.11 @@ -347,11 +346,12 @@ XenNet_RxBufferCheck(struct xennet_info 
    1.12        ASSERT(rxrsp->offset == 0);
    1.13        ASSERT(rxrsp->status > 0);
    1.14        NdisAdjustBufferLength(buffer, rxrsp->status);
    1.15 -      /* just indicate 1 packet for now */
    1.16 -      packets[0] = pkt;
    1.17  
    1.18        xi->stat_rx_ok++;
    1.19 -      NdisMIndicateReceivePacket(xi->adapter_handle, packets, 1);
    1.20 +      NDIS_SET_PACKET_STATUS(pkt, NDIS_STATUS_SUCCESS);
    1.21 +
    1.22 +      /* just indicate 1 packet for now */
    1.23 +      NdisMIndicateReceivePacket(xi->adapter_handle, &pkt, 1);
    1.24      }
    1.25  
    1.26      xi->rx.rsp_cons = prod;