diff mbox series

[ovs-dev] tests: Fix 'ICMP related with SNAT' test case in offload scenario.

Message ID 338e0404b61e43c2d2a980500e702ba2e6a24791.1740471117.git.echaudro@redhat.com
State Accepted
Commit 69f0acc9af7e480e81c8ce002fe2dfa9c378d13b
Delegated to: aaron conole
Headers show
Series [ovs-dev] tests: Fix 'ICMP related with SNAT' test case in offload scenario. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/cirrus-robot success cirrus build: passed

Commit Message

Eelco Chaudron Feb. 25, 2025, 8:11 a.m. UTC
This commit fixes the 'ICMP related with SNAT' test case when running
'make check-offloads'. The test case was flushing the datapath rules
and then checking the conntrack entries. In the TC offload case, this
was clearing the conntrack entries. This fix moves the conntrack entry
test before flushing the datapath rules.

Fixes: 7b74454c72e3 ("system-tests: Test openflow matching for ct related packets with SNAT.")
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
---
 tests/system-traffic.at | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Aaron Conole March 13, 2025, 7:20 p.m. UTC | #1
Eelco Chaudron <echaudro@redhat.com> writes:

> This commit fixes the 'ICMP related with SNAT' test case when running
> 'make check-offloads'. The test case was flushing the datapath rules
> and then checking the conntrack entries. In the TC offload case, this
> was clearing the conntrack entries. This fix moves the conntrack entry
> test before flushing the datapath rules.
>
> Fixes: 7b74454c72e3 ("system-tests: Test openflow matching for ct related packets with SNAT.")
> Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
> ---

Applied, thanks!
diff mbox series

Patch

diff --git a/tests/system-traffic.at b/tests/system-traffic.at
index 021545323..f2d355280 100644
--- a/tests/system-traffic.at
+++ b/tests/system-traffic.at
@@ -7590,6 +7590,10 @@  dnl Solicit another "destination unreachable" response.
 dnl To verify that after flushing, the same openflow rules are matched.
 NS_CHECK_EXEC([at_ns0], [bash -c "echo a | nc $NC_EOF_OPT -u 10.1.1.2 10000"])
 
+AT_CHECK([ovs-appctl dpctl/dump-conntrack | FORMAT_CT(10.1.1.2) | sed -e 's/dst=10.1.1.2[[45]][[0-9]]/dst=10.1.1.2XX/'], [0], [dnl
+udp,orig=(src=10.1.1.1,dst=10.1.1.2,sport=<cleared>,dport=<cleared>),reply=(src=10.1.1.2,dst=10.1.1.2XX,sport=<cleared>,dport=<cleared>)
+])
+
 AT_CHECK([ovs-appctl revalidator/purge], [0])
 AT_CHECK([ovs-ofctl -O OpenFlow15 dump-flows br0 | ofctl_strip | ofctl_strip_bytes | sort | grep -v drop], [0], [dnl
  n_packets=1, priority=10,arp actions=NORMAL
@@ -7606,10 +7610,6 @@  AT_CHECK([ovs-ofctl -O OpenFlow15 dump-flows br0 | ofctl_strip | ofctl_strip_byt
 OFPST_FLOW reply (OF1.5):
 ])
 
-AT_CHECK([ovs-appctl dpctl/dump-conntrack | FORMAT_CT(10.1.1.2) | sed -e 's/dst=10.1.1.2[[45]][[0-9]]/dst=10.1.1.2XX/'], [0], [dnl
-udp,orig=(src=10.1.1.1,dst=10.1.1.2,sport=<cleared>,dport=<cleared>),reply=(src=10.1.1.2,dst=10.1.1.2XX,sport=<cleared>,dport=<cleared>)
-])
-
 AT_CHECK([tcpdump -n -v "icmp" -r p0.pcap 2>/dev/null | grep -E 'wrong|bad'], [1], [ignore-nolog])
 
 OVS_TRAFFIC_VSWITCHD_STOP