• S
    netvsc: fix checksum on UDP IPV6 · ad19bc8a
    stephen hemminger 提交于
    The software calculation of UDP checksum in Netvsc driver was
    only handling IPv4 case. By using skb_checksum_help() instead
    all protocols can be handled. Rearrange code to eliminate goto
    and look like other drivers.
    
    This is a temporary solution; recent versions of Window Server etc
    do support UDP checksum offload, just need to do the appropriate negotiation
    with host to validate before using. This will be done in later patch.
    
    Please queue this for -stable as well.
    Signed-off-by: NStephen Hemminger <sthemmin@microsoft.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    ad19bc8a
netvsc_drv.c 38.9 KB