Hosts after Windows 7 use LSOv2 by default. The issue is with using Windows XP 
VM on a Win2012R2 host. The latter will be forced to use LSOv1 since XP doesn't 
support V2. We discussed about this in the previous IRC meeting. You can check 
the history of the irc channel for more info. 

Regards,
Sairam Venugopal

On Apr 26, 2016, at 9:08 AM, Alin Serdean <aserd...@cloudbasesolutions.com> 
wrote:

>>> -    UINT32 encapMss = OvsGetExternalMtu(switchContext) - sizeof(IPHdr) -
>>> sizeof(TCPHdr);
>>> +    UINT32 encapMss = OvsGetExternalMtu(switchContext)
>>> +                      - sizeof(IPHdr)
>>> +                      - sizeof(TCPHdr);
>>>    if (ipTotalLen > encapMss) {
>>> -        lsoInfo.Value = 0;
>>> -        lsoInfo.LsoV2Transmit.TcpHeaderOffset = tcpHeaderOffset;
>>> -        lsoInfo.LsoV2Transmit.MSS = encapMss;
>>> -        lsoInfo.LsoV2Transmit.Type =
>> NDIS_TCP_LARGE_SEND_OFFLOAD_V2_TYPE;
>>> -        lsoInfo.LsoV2Transmit.IPVersion =
>>> NDIS_TCP_LARGE_SEND_OFFLOAD_IPv4;
>>> +        outerIpHdr->check = IPChecksum((UINT8 *)outerIpHdr,
>>> +                                       sizeof *outerIpHdr, 0);
>>> +        outerTcpHdr->check = IPPseudoChecksum(&fwdInfo->srcIpAddr,
>>> +                                              (uint32 *) &tunKey->dst,
>>> +                                              IPPROTO_TCP, (uint16)
>>> + 0);
>>> +
>> 
>> Sai: We discussed about this in the Hyper-V IRC meeting. You can get rid of
>> the V1 type since we canĀ¹t enforce the type of an inner VM on outer host.
> [Alin Gabriel Serdean: ] My question would be the following. What happens if 
> the miniport (the actual host adapter) does not support LSO V2.
> 
> Alin. 
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to