]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Paritially checksum full MTU frames
authorVlad Yasevich <vyasevich@gmail.com>
Mon, 30 Jan 2017 03:52:53 +0000 (22:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2017 20:51:12 +0000 (15:51 -0500)
commit0cc90cd5d9d93658bfd3c70f0bb6f43611af7e78
tree84d46ed640f648af30847b308ccc88a467dba2df
parent4ee9764e4c411efad0652981d440fecbff34d2cb
ipv6: Paritially checksum full MTU frames

IPv6 will mark data that is smaller that mtu - headersize as
CHECKSUM_PARTIAL, but if the data will completely fill the mtu,
the packet checksum will be computed in software instead.
Extend the conditional to include the data that fills the mtu
as well.

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