diff --git a/SOURCES/openvswitch-2.13.0.patch b/SOURCES/openvswitch-2.13.0.patch index 731c2fe..afb3546 100644 --- a/SOURCES/openvswitch-2.13.0.patch +++ b/SOURCES/openvswitch-2.13.0.patch @@ -121084,6 +121084,44 @@ index f8a0e19524..d177333297 100644 nl_msg_put_unspec(b, OVS_TUNNEL_KEY_ATTR_GENEVE_OPTS, tun->metadata.opts.gnv, flow->metadata.present.len); +diff --git a/lib/unaligned.h b/lib/unaligned.h +index f40e4e10df..15334e3c76 100644 +--- a/lib/unaligned.h ++++ b/lib/unaligned.h +@@ -95,7 +95,7 @@ GCC_UNALIGNED_ACCESSORS(ovs_be64, be64); + static inline uint16_t get_unaligned_u16(const uint16_t *p_) + { + const uint8_t *p = (const uint8_t *) p_; +- return ntohs((p[0] << 8) | p[1]); ++ return ntohs(((uint16_t) p[0] << 8) | (uint16_t) p[1]); + } + + static inline void put_unaligned_u16(uint16_t *p_, uint16_t x_) +@@ -110,7 +110,8 @@ static inline void put_unaligned_u16(uint16_t *p_, uint16_t x_) + static inline uint32_t get_unaligned_u32(const uint32_t *p_) + { + const uint8_t *p = (const uint8_t *) p_; +- return ntohl((p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]); ++ return ntohl(((uint32_t) p[0] << 24) | ((uint32_t) p[1] << 16) | ++ ((uint32_t) p[2] << 8) | (uint32_t) p[3]); + } + + static inline void put_unaligned_u32(uint32_t *p_, uint32_t x_) +@@ -131,10 +132,10 @@ static inline uint64_t get_unaligned_u64__(const uint64_t *p_) + | ((uint64_t) p[1] << 48) + | ((uint64_t) p[2] << 40) + | ((uint64_t) p[3] << 32) +- | (p[4] << 24) +- | (p[5] << 16) +- | (p[6] << 8) +- | p[7]); ++ | ((uint64_t) p[4] << 24) ++ | ((uint64_t) p[5] << 16) ++ | ((uint64_t) p[6] << 8) ++ | (uint64_t) p[7]); + } + + static inline void put_unaligned_u64__(uint64_t *p_, uint64_t x_) diff --git a/lib/util.c b/lib/util.c index 830e14516f..25635b27ff 100644 --- a/lib/util.c @@ -125159,9 +125197,46 @@ index a7982de381..39d9aa391e 100644 ]) AT_CLEANUP diff --git a/tests/dpif-netdev.at b/tests/dpif-netdev.at -index 0aeb4e788f..1ec0054c5b 100644 +index 0aeb4e788f..a84cfa1774 100644 --- a/tests/dpif-netdev.at +++ b/tests/dpif-netdev.at +@@ -6,15 +6,15 @@ m4_divert_push([PREPARE_TESTS]) + # that vary from one run to another (e.g., timing and bond actions). + strip_timers () { + sed ' +- s/duration:[0-9]*\.[0-9]*/duration:0.0/ +- s/used:[0-9]*\.[0-9]*/used:0.0/ ++ s/duration:[0-9\.][0-9\.]*/duration:0.0/ ++ s/used:[0-9\.][0-9\.]*/used:0.0/ + ' + } + + strip_xout () { + sed ' + s/ufid:[-0-9a-f]* // +- s/used:[0-9]*\.[0-9]*/used:0.0/ ++ s/used:[0-9\.][0-9\.]*/used:0.0/ + s/actions:.*/actions: / + s/packets:[0-9]*/packets:0/ + s/bytes:[0-9]*/bytes:0/ +@@ -24,7 +24,7 @@ strip_xout () { + strip_xout_keep_actions () { + sed ' + s/ufid:[-0-9a-f]* // +- s/used:[0-9]*\.[0-9]*/used:0.0/ ++ s/used:[0-9\.][0-9\.]*/used:0.0/ + s/packets:[0-9]*/packets:0/ + s/bytes:[0-9]*/bytes:0/ + ' | sort +@@ -49,7 +49,7 @@ filter_hw_packet_netdev_dummy () { + filter_flow_dump () { + grep 'flow_dump ' | sed ' + s/.*flow_dump // +- s/used:[0-9]*\.[0-9]*/used:0.0/ ++ s/used:[0-9\.][0-9\.]*/used:0.0/ + ' | sort | uniq + } + @@ -293,60 +293,87 @@ type=drop rate=1 burst_size=2 ]) @@ -128342,6 +128417,19 @@ index 328ae2bc9d..49ac45275a 100755 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. +diff --git a/tests/stp.at b/tests/stp.at +index 7ddacfc3a0..69475843e5 100644 +--- a/tests/stp.at ++++ b/tests/stp.at +@@ -368,7 +368,7 @@ AT_CLEANUP + # Strips out uninteresting parts of flow output, as well as parts + # that vary from one run to another (e.g., timing and bond actions). + m4_define([STRIP_USED], [[sed ' +- s/used:[0-9]*\.[0-9]*/used:0.0/ ++ s/used:[0-9\.][0-9\.]*/used:0.0/ + s/duration=[0-9.]*s*/duration=Xs/ + s/idle_age=[0-9]*,/idle_age=X,/ + ']]) diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at index 68c8774d1a..9d5e24a292 100644 --- a/tests/system-common-macros.at diff --git a/SPECS/openvswitch2.13.spec b/SPECS/openvswitch2.13.spec index 1ff6449..fb54670 100644 --- a/SPECS/openvswitch2.13.spec +++ b/SPECS/openvswitch2.13.spec @@ -59,7 +59,7 @@ Summary: Open vSwitch Group: System Environment/Daemons daemon/database/utilities URL: http://www.openvswitch.org/ Version: 2.13.0 -Release: 206%{?commit0:.%{date}git%{shortcommit0}}%{?commit1:dpdk%{shortcommit1}}%{?dist} +Release: 207%{?commit0:.%{date}git%{shortcommit0}}%{?commit1:dpdk%{shortcommit1}}%{?dist} # Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the # lib/sflow*.[ch] files are SISSL @@ -715,6 +715,13 @@ exit 0 %endif %changelog +* Wed Oct 26 2022 Open vSwitch CI - 2.13.0-207 +- Merging upstream branch-2.13 [RH git: 791c333503] + Commit list: + 8163066d40 unaligned: Correct the stats of packet_count and byte_count on Windows. + cd35f38cca tests: Fix filtering of whole-second durations. + + * Thu Oct 13 2022 Open vSwitch CI - 2.13.0-206 - Merging upstream branch-2.13 [RH git: 1634691a83] Commit list: