ipv6: Allow for partial checksums on non-ufo packets
authorVlad Yasevich <vyasevich@gmail.com>
Sat, 31 Jan 2015 15:40:18 +0000 (10:40 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Feb 2015 03:28:05 +0000 (19:28 -0800)
commit32dce968dd987adfb0c00946d78dad9154f64759
treeb5005ef754bb0dd4d6b15a37d94be210e2ee9045
parent03485f2adcde0c2d4e9228b659be78e872486bbb
ipv6: Allow for partial checksums on non-ufo packets

Currntly, if we are not doing UFO on the packet, all UDP
packets will start with CHECKSUM_NONE and thus perform full
checksum computations in software even if device support
IPv6 checksum offloading.

Let's start start with CHECKSUM_PARTIAL if the device
supports it and we are sending only a single packet at
or below mtu size.

Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c