aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorSabrina Dubroca <[email protected]>2015-02-04 23:08:50 +0100
committerDavid S. Miller <[email protected]>2015-02-05 15:41:34 -0800
commit7744b5f3693cc06695cb9d6667671c790282730f (patch)
tree5c444515404a89170ab1b10c353682a5573d9024 /tools/perf/scripts/python/event_analyzing_sample.py
parentc58da4c659803ac12eca5275c8a7064222adb4c7 (diff)
pktgen: fix UDP checksum computation
This patch fixes two issues in UDP checksum computation in pktgen. First, the pseudo-header uses the source and destination IP addresses. Currently, the ports are used for IPv4. Second, the UDP checksum covers both header and data. So we need to generate the data earlier (move pktgen_finalize_skb up), and compute the checksum for UDP header + data. Fixes: c26bf4a51308c ("pktgen: Add UDPCSUM flag to support UDP checksums") Signed-off-by: Sabrina Dubroca <[email protected]> Acked-by: Thomas Graf <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions