From 2381ab8df8289966ea941152a4aac096d8ae5015 Mon Sep 17 00:00:00 2001 From: Open vSwitch CI Date: Dec 11 2024 23:14:09 +0000 Subject: Import openvswitch3.2-3.2.0-112 from Fast DataPath --- diff --git a/SOURCES/openvswitch-3.2.0.patch b/SOURCES/openvswitch-3.2.0.patch index 76368ac..9c143c2 100644 --- a/SOURCES/openvswitch-3.2.0.patch +++ b/SOURCES/openvswitch-3.2.0.patch @@ -37,7 +37,7 @@ index c28b6819a3..133e8d9673 100755 # Install python test dependencies pip3 install -r python/test_requirements.txt diff --git a/.cirrus.yml b/.cirrus.yml -index 48931fa085..d73154a971 100644 +index 48931fa085..fa3cc86b4e 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -2,8 +2,8 @@ freebsd_build_task: @@ -46,8 +46,8 @@ index 48931fa085..d73154a971 100644 matrix: - image_family: freebsd-12-4-snap - image_family: freebsd-13-2-snap -+ image_family: freebsd-13-3-snap -+ image_family: freebsd-14-1-snap ++ image_family: freebsd-13-4-snap ++ image_family: freebsd-14-2-snap cpu: 4 memory: 4G @@ -14509,7 +14509,7 @@ index 62b5123029..05b6ba91fc 100644 c = getopt_long(argc, argv, short_options, options, &idx); diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c -index e9110c1d80..57f4d5f5ed 100644 +index e9110c1d80..8ae79e740a 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -3352,7 +3352,8 @@ bridge_run(void) @@ -14522,6 +14522,86 @@ index e9110c1d80..57f4d5f5ed 100644 } } +@@ -4003,6 +4004,8 @@ static void + bridge_configure_tables(struct bridge *br) + { + static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5); ++ char *prev_prefixes = NULL; ++ int prev_start = 0; + int n_tables; + int i, j; + +@@ -4064,18 +4067,21 @@ bridge_configure_tables(struct bridge *br) + } + mf = mf_from_name(name); + if (!mf) { +- VLOG_WARN("bridge %s: 'prefixes' with unknown field: %s", +- br->name, name); ++ VLOG_WARN_RL(&rl, "bridge %s: " ++ "'prefixes' with unknown field: %s", ++ br->name, name); + continue; + } + if (mf->flow_be32ofs < 0 || mf->n_bits % 32) { +- VLOG_WARN("bridge %s: 'prefixes' with incompatible field: " +- "%s", br->name, name); ++ VLOG_WARN_RL(&rl, "bridge %s: " ++ "'prefixes' with incompatible field: %s", ++ br->name, name); + continue; + } + if (s.n_prefix_fields >= ARRAY_SIZE(s.prefix_fields)) { +- VLOG_WARN("bridge %s: 'prefixes' with too many fields, " +- "field not used: %s", br->name, name); ++ VLOG_WARN_RL(&rl, "bridge %s: " ++ "'prefixes' with too many fields, " ++ "field not used: %s", br->name, name); + continue; + } + use_default_prefixes = false; +@@ -4087,8 +4093,10 @@ bridge_configure_tables(struct bridge *br) + s.n_prefix_fields = ARRAY_SIZE(default_prefix_fields); + memcpy(s.prefix_fields, default_prefix_fields, + sizeof default_prefix_fields); +- } else { ++ } ++ if (VLOG_IS_DBG_ENABLED()) { + struct ds ds = DS_EMPTY_INITIALIZER; ++ + for (int k = 0; k < s.n_prefix_fields; k++) { + if (k) { + ds_put_char(&ds, ','); +@@ -4098,8 +4106,16 @@ bridge_configure_tables(struct bridge *br) + if (s.n_prefix_fields == 0) { + ds_put_cstr(&ds, "none"); + } +- VLOG_INFO("bridge %s table %d: Prefix lookup with: %s.", +- br->name, i, ds_cstr(&ds)); ++ if (!prev_prefixes) { ++ prev_prefixes = ds_steal_cstr(&ds); ++ prev_start = i; ++ } else if (prev_prefixes && strcmp(prev_prefixes, ds_cstr(&ds))) { ++ VLOG_DBG("bridge %s tables %d-%d: Prefix lookup with: %s.", ++ br->name, prev_start, i - 1, prev_prefixes); ++ free(prev_prefixes); ++ prev_prefixes = ds_steal_cstr(&ds); ++ prev_start = i; ++ } + ds_destroy(&ds); + } + +@@ -4107,6 +4123,11 @@ bridge_configure_tables(struct bridge *br) + + free(s.groups); + } ++ if (prev_prefixes) { ++ VLOG_DBG("bridge %s tables %d-%d: Prefix lookup with: %s.", ++ br->name, prev_start, n_tables - 1, prev_prefixes); ++ free(prev_prefixes); ++ } + for (; j < br->cfg->n_flow_tables; j++) { + VLOG_WARN_RL(&rl, "bridge %s: ignoring configuration for flow table " + "%"PRId64" not supported by this datapath", br->name, diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml index cfcde34ffe..e400043ce7 100644 --- a/vswitchd/vswitch.xml diff --git a/SPECS/openvswitch3.2.spec b/SPECS/openvswitch3.2.spec index e7fa7bd..2bf6118 100644 --- a/SPECS/openvswitch3.2.spec +++ b/SPECS/openvswitch3.2.spec @@ -57,7 +57,7 @@ Summary: Open vSwitch Group: System Environment/Daemons daemon/database/utilities URL: http://www.openvswitch.org/ Version: 3.2.0 -Release: 111%{?dist} +Release: 112%{?dist} # Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the # lib/sflow*.[ch] files are SISSL @@ -763,6 +763,13 @@ exit 0 %endif %changelog +* Wed Dec 11 2024 Open vSwitch CI - 3.2.0-112 +- Merging upstream branch-3.2 [RH git: 658df78e7f] + Commit list: + ebcbf71dca cirrus: Update to FreeBSD 14.2 and 13.4. + 81ee17e4dd bridge: Fix log spam about prefixes. + + * Fri Nov 29 2024 Open vSwitch CI - 3.2.0-111 - Merging upstream branch-3.2 [RH git: 4660a038ee] Commit list: