Fix a variable naming error within the verify method that was causing an attribute error during runtime.
Fixes: 05d7ad873798 ("dts: resolve mypy type errors") Signed-off-by: Dean Marx <dm...@iol.unh.edu> --- dts/tests/TestSuite_checksum_offload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dts/tests/TestSuite_checksum_offload.py b/dts/tests/TestSuite_checksum_offload.py index c1680bd388..14b246d16f 100644 --- a/dts/tests/TestSuite_checksum_offload.py +++ b/dts/tests/TestSuite_checksum_offload.py @@ -88,8 +88,8 @@ def send_packet_and_verify_checksum( verbose_output = testpmd.extract_verbose_output(testpmd.stop()) for testpmd_packet in verbose_output: if testpmd_packet.dst_mac == id: - isIP = PacketOffloadFlag.RTE_MBUF_F_RX_IP_CKSUM_GOOD in packet.ol_flags - isL4 = PacketOffloadFlag.RTE_MBUF_F_RX_L4_CKSUM_GOOD in packet.ol_flags + isIP = PacketOffloadFlag.RTE_MBUF_F_RX_IP_CKSUM_GOOD in testpmd_packet.ol_flags + isL4 = PacketOffloadFlag.RTE_MBUF_F_RX_L4_CKSUM_GOOD in testpmd_packet.ol_flags self.verify(isL4 == goodL4, "Layer 4 checksum flag did not match expected checksum flag.") self.verify(isIP == goodIP, "IP checksum flag did not match expected checksum flag.") -- 2.44.0