win-pvdrivers

changeset 226:9f155354d6ba

Removed the ASSERT where max gso segment in the registry is too big. Just reduce it as required.
author James Harper <james.harper@bendigoit.com.au>
date Wed Mar 26 23:23:08 2008 +1100 (2008-03-26)
parents e90d63d5d794
children 4cc15e403eb5 93f3ccb775b6
files common.inc xennet/xennet.c
line diff
     1.1 --- a/common.inc	Wed Mar 26 22:05:03 2008 +1100
     1.2 +++ b/common.inc	Wed Mar 26 23:23:08 2008 +1100
     1.3 @@ -1,4 +1,4 @@
     1.4 -VERSION=0.8.5.90
     1.5 +VERSION=0.8.5.91
     1.6  TARGETPATH=..\Target\$(DDK_TARGET_OS)
     1.7  KMDF_VERSION=1
     1.8  !IF $(_NT_TOOLS_VERSION) > 0x700
     2.1 --- a/xennet/xennet.c	Wed Mar 26 22:05:03 2008 +1100
     2.2 +++ b/xennet/xennet.c	Wed Mar 26 23:23:08 2008 +1100
     2.3 @@ -278,13 +278,17 @@ XenNet_Init(
     2.4    if (!NT_SUCCESS(status))
     2.5    {
     2.6      KdPrint(("Could not read LargeSendOffload value (%08x)\n", status));
     2.7 -    xi->config_gso = 1;
     2.8 +    xi->config_gso = 0;
     2.9    }
    2.10    else
    2.11    {
    2.12      KdPrint(("LargeSendOffload = %d\n", config_param->ParameterData.IntegerData));
    2.13      xi->config_gso = config_param->ParameterData.IntegerData;
    2.14 -    ASSERT(xi->config_gso <= 61440);
    2.15 +    if (xi->config_gso > 61440)
    2.16 +    {
    2.17 +      xi->config_gso = 61440;
    2.18 +      KdPrint(("(clipped to %d)\n", xi->config_gso));
    2.19 +    }
    2.20    }
    2.21  
    2.22    NdisInitUnicodeString(&config_param_name, L"ChecksumOffload");