aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/futex-contention.py
diff options
context:
space:
mode:
authorAlexander Duyck <[email protected]>2016-02-05 15:28:20 -0800
committerDavid S. Miller <[email protected]>2016-02-11 08:55:34 -0500
commitdbef491ebe7f3a4fb1b9111878b86a426fd540b7 (patch)
treeed9f7d5c31117b0413b97e3d37f8739df6954a21 /tools/perf/scripts/python/futex-contention.py
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 <[email protected]> Acked-by: Tom Herbert <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions