summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorAlexander Duyck <aduyck@mirantis.com>2016-02-05 15:28:20 -0800
committerDavid S. Miller <davem@davemloft.net>2016-02-11 08:55:34 -0500
commitdbef491ebe7f3a4fb1b9111878b86a426fd540b7 (patch)
treeed9f7d5c31117b0413b97e3d37f8739df6954a21 /net/core
parentfdaefd62fd658b266a8f389cdf7991630b4bc7b4 (diff)
udp: Use uh->len instead of skb->len to compute checksum in segmentation
The segmentation code was having to do a bunch of work to pull the skb->len and strip the udp header offset before the value could be used to adjust the checksum. Instead of doing all this work we can just use the value that goes into uh->len since that is the correct value with the correct byte order that we need anyway. By using this value we can save ourselves a bunch of pain as there is no need to do multiple byte swaps. Signed-off-by: Alexander Duyck <aduyck@mirantis.com> Acked-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions