]> git.baikalelectronics.ru Git - kernel.git/commit
net: Update remote checksum segmentation to support use of GSO checksum
authorAlexander Duyck <aduyck@mirantis.com>
Fri, 5 Feb 2016 23:27:43 +0000 (15:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 13:55:33 +0000 (08:55 -0500)
commit796c8ca6191a1b89a1de4b90d73a49b1f2b8cd07
tree42636ed2f16d1317554f3aa4f5b6915df83b47bf
parent5cb5a8d8bc70f9fdbc1c74c3ca3fd8b133be15f4
net: Update remote checksum segmentation to support use of GSO checksum

This patch addresses two main issues.

First in the case of remote checksum offload we were avoiding dealing with
scatter-gather issues.  As a result it would be possible to assemble a
series of frames that used frags instead of being linearized as they should
have if remote checksum offload was enabled.

Second I have updated the code so that we now let GSO take care of doing
the checksum on the data itself and drop the special case that was added
for remote checksum offload.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c
net/ipv4/udp_offload.c