]> 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)
commit8255ccbf72b7f29a112d803d1e6d0f93f57709a1
tree42636ed2f16d1317554f3aa4f5b6915df83b47bf
parent33fdb13f4a260ee702df317c53018fc62360c1d7
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