win-pvdrivers

changeset 106:64f2791889f4

xennet: fix compile ifdef OFFLOAD_LARGE_SEND (but leave it undefined for now)
author Andy Grover <andy.grover@oracle.com>
date Wed Jan 09 12:10:32 2008 -0800 (2008-01-09)
parents 2f6159eaf2b1
children 1937a3bf6f64
files xennet/xennet.c
line diff
     1.1 --- a/xennet/xennet.c	Wed Jan 09 23:32:54 2008 +1100
     1.2 +++ b/xennet/xennet.c	Wed Jan 09 12:10:32 2008 -0800
     1.3 @@ -910,7 +910,7 @@ NDIS_OID supported_oids[] =
     1.4      len = 8; \
     1.5      } }
     1.6  
     1.7 -//#define LARGE_SEND
     1.8 +//#define OFFLOAD_LARGE_SEND
     1.9  
    1.10  NDIS_STATUS 
    1.11  XenNet_QueryInformation(
    1.12 @@ -931,7 +931,7 @@ XenNet_QueryInformation(
    1.13    PNDIS_TASK_OFFLOAD_HEADER ntoh;
    1.14    PNDIS_TASK_OFFLOAD nto;
    1.15    PNDIS_TASK_TCP_IP_CHECKSUM nttic;
    1.16 -#ifdef LARGE_SEND
    1.17 +#ifdef OFFLOAD_LARGE_SEND
    1.18    PNDIS_TASK_TCP_LARGE_SEND nttls;
    1.19  #endif
    1.20  
    1.21 @@ -1102,8 +1102,9 @@ XenNet_QueryInformation(
    1.22        nttic->V6Receive.UdpChecksum = 0;
    1.23  
    1.24  #ifdef OFFLOAD_LARGE_SEND
    1.25 +      /* offset from start of current NTO to start of next NTO */
    1.26        nto->OffsetNextTask = FIELD_OFFSET(NDIS_TASK_OFFLOAD, TaskBuffer)
    1.27 -        + pto->TaskBufferLength;
    1.28 +        + nto->TaskBufferLength;
    1.29  
    1.30        /* fill in second nto */
    1.31        nto = (PNDIS_TASK_OFFLOAD)((PCHAR)(ntoh) + nto->OffsetNextTask);