win-pvdrivers

changeset 481:2a18182e3090

Performance.
author James Harper <james.harper@bendigoit.com.au>
date Sat Dec 06 16:21:03 2008 +1100 (2008-12-06)
parents dd2fefa6b374
children 7656d3624f98
files xennet/xennet_rx.c
line diff
     1.1 --- a/xennet/xennet_rx.c	Sat Dec 06 16:20:45 2008 +1100
     1.2 +++ b/xennet/xennet_rx.c	Sat Dec 06 16:21:03 2008 +1100
     1.3 @@ -381,12 +381,11 @@ XenNet_MakePackets(
     1.4            {
     1.5              csum_info->Receive.NdisPacketTcpChecksumSucceeded = TRUE;
     1.6            }
     1.7 -        }
     1.8 -        if (xi->setting_csum.V4Receive.UdpChecksum && xi->rxpi.ip_proto == 17)
     1.9 +        } else if (xi->setting_csum.V4Receive.UdpChecksum && xi->rxpi.ip_proto == 17)
    1.10          {
    1.11            csum_info->Receive.NdisPacketUdpChecksumSucceeded = TRUE;
    1.12          }
    1.13 -        if (xi->rxpi.csum_blank) // && !csum_info->Value)
    1.14 +        if (xi->rxpi.csum_blank)
    1.15          {
    1.16            XenNet_SumPacketData(&xi->rxpi, packet, TRUE);
    1.17          }
    1.18 @@ -403,8 +402,7 @@ XenNet_MakePackets(
    1.19            {
    1.20              csum_info->Receive.NdisPacketTcpChecksumFailed = TRUE;
    1.21            }
    1.22 -        }
    1.23 -        if (xi->setting_csum.V4Receive.UdpChecksum && xi->rxpi.ip_proto == 17)
    1.24 +        } else if (xi->setting_csum.V4Receive.UdpChecksum && xi->rxpi.ip_proto == 17)
    1.25          {
    1.26            if (XenNet_SumPacketData(&xi->rxpi, packet, FALSE))
    1.27            {