tests: test vnet_calc_checksums_inline(...) 92/26692/3
authorDave Barach <dave@barachs.net>
Fri, 24 Apr 2020 13:43:14 +0000 (09:43 -0400)
committerDave Wallace <dwallacelf@gmail.com>
Fri, 24 Apr 2020 15:01:29 +0000 (15:01 +0000)
commit82192ca4dca41de77a2e8a2dd50d72b5573e9a49
tree1ee0f7c2045c4f4d20f265426b539d7f94cac69a
parent69de9fadbfd2e6e256a5133513e002712705ded3
tests: test vnet_calc_checksums_inline(...)

Use a hand-crafted packet generator script to inject packets with
deliberately broken ip4 and udp checksums - and the appropriate
checksum offload flags - into src/vnet/interface_output.c
vnet_interface_output_node_inline(...), and make sure that the
resulting checksums are correct.

Use the packet tracer to catch one of the packets. Parse through the
packet trace, and make sure that the checksums have been correctly
computed.

Type: test

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Ic08b4b64d7ef27061558a3abf0b79917ead254b5
test/test_offload.py [new file with mode: 0644]