win-pvdrivers

changeset 493:750f70b8fa5c

Performance tweak
author James Harper <james.harper@bendigoit.com.au>
date Tue Dec 09 20:29:44 2008 +1100 (2008-12-09)
parents 2a4bfcd50b31
children c431d22ff34b
files xennet/xennet_tx.c
line diff
     1.1 --- a/xennet/xennet_tx.c	Mon Dec 08 23:34:29 2008 +1100
     1.2 +++ b/xennet/xennet_tx.c	Tue Dec 09 20:29:44 2008 +1100
     1.3 @@ -138,13 +138,6 @@ XenNet_HWSendPacket(struct xennet_info *
     1.4    {
     1.5      csum_info = (PNDIS_TCP_IP_CHECKSUM_PACKET_INFO)&NDIS_PER_PACKET_INFO_FROM_PACKET(
     1.6        packet, TcpIpChecksumPacketInfo);
     1.7 -    if (csum_info->Transmit.NdisPacketChecksumV6)
     1.8 -    {
     1.9 -      KdPrint((__DRIVER_NAME "     NdisPacketChecksumV6 not supported\n"));
    1.10 -      //NDIS_SET_PACKET_STATUS(packet, NDIS_STATUS_FAILURE);
    1.11 -      //return TRUE;
    1.12 -    }
    1.13 -
    1.14      if (csum_info->Transmit.NdisPacketChecksumV4)
    1.15      {
    1.16        if (csum_info->Transmit.NdisPacketIpChecksum && !xi->setting_csum.V4Transmit.IpChecksum)
    1.17 @@ -166,7 +159,7 @@ XenNet_HWSendPacket(struct xennet_info *
    1.18            //return TRUE;
    1.19          }
    1.20        }
    1.21 -      if (csum_info->Transmit.NdisPacketUdpChecksum)
    1.22 +      else if (csum_info->Transmit.NdisPacketUdpChecksum)
    1.23        {
    1.24          if (xi->setting_csum.V4Transmit.UdpChecksum)
    1.25          {
    1.26 @@ -180,6 +173,13 @@ XenNet_HWSendPacket(struct xennet_info *
    1.27          }
    1.28        }
    1.29      }
    1.30 +    else if (csum_info->Transmit.NdisPacketChecksumV6)
    1.31 +    {
    1.32 +      KdPrint((__DRIVER_NAME "     NdisPacketChecksumV6 not supported\n"));
    1.33 +      //NDIS_SET_PACKET_STATUS(packet, NDIS_STATUS_FAILURE);
    1.34 +      //return TRUE;
    1.35 +    }
    1.36 +
    1.37    }
    1.38      
    1.39    mss = PtrToUlong(NDIS_PER_PACKET_INFO_FROM_PACKET(packet, TcpLargeSendPacketInfo));