diff --git a/SOURCES/openvswitch-2.16.0.patch b/SOURCES/openvswitch-2.16.0.patch index 55f5101..3720591 100644 --- a/SOURCES/openvswitch-2.16.0.patch +++ b/SOURCES/openvswitch-2.16.0.patch @@ -1658,6 +1658,33 @@ index c502d23112..72e2ec5f71 100644 #define CMAP_CURSOR_FOR_EACH(NODE, MEMBER, CURSOR, CMAP) \ for (*(CURSOR) = cmap_cursor_start(CMAP); \ +diff --git a/lib/conntrack-other.c b/lib/conntrack-other.c +index d3b4601858..7f3e63c384 100644 +--- a/lib/conntrack-other.c ++++ b/lib/conntrack-other.c +@@ -48,18 +48,19 @@ other_conn_update(struct conntrack *ct, struct conn *conn_, + struct dp_packet *pkt OVS_UNUSED, bool reply, long long now) + { + struct conn_other *conn = conn_other_cast(conn_); +- enum ct_update_res ret = CT_UPDATE_VALID; + + if (reply && conn->state != OTHERS_BIDIR) { + conn->state = OTHERS_BIDIR; + } else if (conn->state == OTHERS_FIRST) { + conn->state = OTHERS_MULTIPLE; +- ret = CT_UPDATE_VALID_NEW; + } + + conn_update_expiration(ct, &conn->up, other_timeouts[conn->state], now); + +- return ret; ++ if (conn->state == OTHERS_BIDIR) { ++ return CT_UPDATE_VALID; ++ } ++ return CT_UPDATE_VALID_NEW; + } + + static bool diff --git a/lib/conntrack.c b/lib/conntrack.c index 551c2061a7..b8183faa2d 100644 --- a/lib/conntrack.c @@ -11120,7 +11147,7 @@ index 1714273e35..270956d13f 100644 dnl Delete ip address. AT_CHECK([ip addr del 10.0.0.17/24 dev p1-route], [0], [stdout]) diff --git a/tests/system-traffic.at b/tests/system-traffic.at -index f400cfabc9..4c368eded4 100644 +index f400cfabc9..26fea94a4d 100644 --- a/tests/system-traffic.at +++ b/tests/system-traffic.at @@ -218,6 +218,7 @@ OVS_TRAFFIC_VSWITCHD_STOP @@ -11259,6 +11286,15 @@ index f400cfabc9..4c368eded4 100644 OVS_CHECK_GENEVE() OVS_TRAFFIC_VSWITCHD_START() +@@ -666,7 +724,7 @@ NS_CHECK_EXEC([at_ns0], [ping -q -c 3 10.1.1.100 | FORMAT_PING], [0], [dnl + ]) + + dnl Test OVS handles TLV map modifictions properly when restores frozen state. +-NS_CHECK_EXEC([at_ns0], [ping 10.1.1.100 > /dev/null &]) ++NETNS_DAEMONIZE([at_ns0], [ping 10.1.1.100 > /dev/null], [ping0.pid]) + + AT_CHECK([ovs-ofctl add-tlv-map br0 "{class=0xffff,type=0x88,len=4}->tun_metadata1"]) + sleep 1 @@ -680,6 +738,7 @@ OVS_TRAFFIC_VSWITCHD_STOP AT_CLEANUP @@ -11419,7 +11455,23 @@ index f400cfabc9..4c368eded4 100644 AT_SETUP([conntrack - multiple bridges]) CHECK_CONNTRACK() OVS_TRAFFIC_VSWITCHD_START( -@@ -3305,6 +3474,46 @@ NS_CHECK_EXEC([at_ns0], [ping6 -s 3200 -q -c 3 -i 0.3 -w 2 fc00::2 | FORMAT_PING +@@ -2384,6 +2553,15 @@ NXST_FLOW reply: + table=1, priority=100,ct_state=+est+trk,in_port=1 actions=output:2 + ]) + ++dnl Send a 3rd UDP packet on port 1 ++AT_CHECK([ovs-ofctl -O OpenFlow13 packet-out br0 "in_port=1 packet=50540000000a50540000000908004500001c000000000011a4cd0a0101010a0101020001000200080000 actions=resubmit(,0)"]) ++ ++dnl There still should not be any packet that matches the established ct_state. ++AT_CHECK([ovs-ofctl dump-flows br0 "table=1 in_port=1,ct_state=+trk+est" | ofctl_strip], [0], [dnl ++NXST_FLOW reply: ++ table=1, priority=100,ct_state=+est+trk,in_port=1 actions=output:2 ++]) ++ + OVS_TRAFFIC_VSWITCHD_STOP + AT_CLEANUP + +@@ -3305,6 +3483,46 @@ NS_CHECK_EXEC([at_ns0], [ping6 -s 3200 -q -c 3 -i 0.3 -w 2 fc00::2 | FORMAT_PING OVS_TRAFFIC_VSWITCHD_STOP AT_CLEANUP @@ -11466,7 +11518,7 @@ index f400cfabc9..4c368eded4 100644 AT_SETUP([conntrack - resubmit to ct multiple times]) CHECK_CONNTRACK() -@@ -3464,15 +3673,15 @@ action=normal +@@ -3464,15 +3682,15 @@ action=normal AT_CHECK([ovs-ofctl --bundle add-flows br0 flows.txt]) @@ -11485,7 +11537,7 @@ index f400cfabc9..4c368eded4 100644 "1616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161610a, actions=ct(table=1)"]) AT_CHECK([ovs-appctl dpctl/dump-flows | head -2 | tail -1 | grep -q -e ["]udp[(]src=5001["]]) -@@ -5817,7 +6026,7 @@ on_exit 'ovs-appctl revalidator/purge' +@@ -5817,7 +6035,7 @@ on_exit 'ovs-appctl revalidator/purge' on_exit 'ovs-appctl dpif/dump-flows br0' dnl Should work with the virtual IP address through NAT @@ -11494,7 +11546,7 @@ index f400cfabc9..4c368eded4 100644 echo Request $i NS_CHECK_EXEC([at_ns1], [wget 10.1.1.64 -t 5 -T 1 --retry-connrefused -v -o wget$i.log]) done -@@ -6106,6 +6315,132 @@ AT_CHECK([ovs-ofctl dump-flows br0 | grep table=2, | OFPROTO_CLEAR_DURATION_IDLE +@@ -6106,6 +6324,132 @@ AT_CHECK([ovs-ofctl dump-flows br0 | grep table=2, | OFPROTO_CLEAR_DURATION_IDLE OVS_TRAFFIC_VSWITCHD_STOP AT_CLEANUP diff --git a/SPECS/openvswitch2.16.spec b/SPECS/openvswitch2.16.spec index 43d22a1..cce708f 100644 --- a/SPECS/openvswitch2.16.spec +++ b/SPECS/openvswitch2.16.spec @@ -57,7 +57,7 @@ Summary: Open vSwitch Group: System Environment/Daemons daemon/database/utilities URL: http://www.openvswitch.org/ Version: 2.16.0 -Release: 87%{?dist} +Release: 88%{?dist} # Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the # lib/sflow*.[ch] files are SISSL @@ -699,6 +699,13 @@ exit 0 %endif %changelog +* Mon Jul 25 2022 Open vSwitch CI - 2.16.0-88 +- Merging upstream branch-2.16 [RH git: 11b35522e2] + Commit list: + dfc4a324b0 system-traffic: Properly stop dangling ping after geneve test. + 1c017da8ed conntrack: Fix conntrack multiple new state. + + * Thu Jul 14 2022 Open vSwitch CI - 2.16.0-87 - Merging upstream branch-2.16 [RH git: 092b9c8e76] Commit list: