Skip to content

Commit

Permalink
dts: fix attribute error in checksum offload suite
Browse files Browse the repository at this point in the history
Fix a variable naming error within the verify method
that was causing an attribute error during runtime.

Fixes: 05d7ad8 ("dts: resolve mypy type errors")

Signed-off-by: Dean Marx <dmarx@iol.unh.edu>
  • Loading branch information
Dean Marx authored and PatrickRobbIOL committed Jan 19, 2025
1 parent 07e4408 commit d748916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dts/tests/TestSuite_checksum_offload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit d748916

Please sign in to comment.