110336
# Copyright (C) 2009, 2010, 2013, 2014 Nicira Networks, Inc.
110336
#
110336
# Copying and distribution of this file, with or without modification,
110336
# are permitted in any medium without royalty provided the copyright
110336
# notice and this notice are preserved.  This file is offered as-is,
110336
# without warranty of any kind.
110336
#
110336
# If tests have to be skipped while building, specify the '--without check'
110336
# option. For example:
110336
# rpmbuild -bb --without check rhel/openvswitch-fedora.spec
110336
110336
# This defines the base package name's version.
110336
ef58f0
%define pkgname openvswitch3.1
110336
110336
110336
%if 0%{?commit:1}
110336
%global shortcommit %(c=%{commit}; echo ${c:0:7})
110336
%endif
110336
110336
# Enable PIE, bz#955181
110336
%global _hardened_build 1
110336
110336
# RHEL-7 doesn't define _rundir macro yet
110336
# Fedora 15 onwards uses /run as _rundir
110336
%if 0%{!?_rundir:1}
110336
%define _rundir /run
110336
%endif
110336
110336
# FIXME Test "STP - flush the fdb and mdb when topology changed" fails on s390x
110336
# FIXME 2 tests fails on ppc64le. They will be hopefully fixed before official 2.11
110336
%ifarch %{ix86} x86_64 aarch64
110336
%bcond_without check
110336
%else
110336
%bcond_with check
110336
%endif
110336
# option to run kernel datapath tests, requires building as root!
110336
%bcond_with check_datapath_kernel
110336
# option to build with libcap-ng, needed for running OVS as regular user
110336
%bcond_without libcapng
110336
# option to build with ipsec support
110336
%bcond_without ipsec
110336
110336
# Build python2 (that provides python) and python3 subpackages on Fedora
110336
# Build only python3 (that provides python) subpackage on RHEL8
110336
# Build only python subpackage on RHEL7
110336
%if 0%{?rhel} > 7 || 0%{?fedora}
110336
# On RHEL8 Sphinx is included in buildroot
110336
%global external_sphinx 1
110336
%else
110336
# Don't use external sphinx (RHV doesn't have optional repositories enabled)
110336
%global external_sphinx 0
110336
%endif
110336
110336
Name: %{pkgname}
110336
Summary: Open vSwitch
110336
Group: System Environment/Daemons daemon/database/utilities
110336
URL: http://www.openvswitch.org/
ef58f0
Version: 3.1.0
Open vSwitch CI fcc9da
Release: 41%{?dist}
110336
110336
# Nearly all of openvswitch is ASL 2.0.  The bugtool is LGPLv2+, and the
110336
# lib/sflow*.[ch] files are SISSL
110336
# datapath/ is GPLv2 (although not built into any of the binary packages)
110336
License: ASL 2.0 and LGPLv2+ and SISSL
110336
ef58f0
%define dpdkver 22.11.1
110336
%define dpdkdir dpdk
110336
%define dpdksver %(echo %{dpdkver} | cut -d. -f-2)
110336
# NOTE: DPDK does not currently build for s390x
110336
# DPDK on aarch64 is not stable enough to be enabled in FDP
110336
%if 0%{?rhel} > 7 || 0%{?fedora}
110336
%define dpdkarches x86_64 ppc64le
110336
%else
110336
%define dpdkarches
110336
%endif
110336
110336
%if 0%{?commit:1}
110336
Source: https://github.com/openvswitch/ovs/archive/%{commit}.tar.gz#/openvswitch-%{commit}.tar.gz
110336
%else
110336
Source: https://github.com/openvswitch/ovs/archive/v%{version}.tar.gz#/openvswitch-%{version}.tar.gz
110336
%endif
Open vSwitch CI 772b08
Source2: openvswitch.sysusers
Open vSwitch CI 772b08
Source3: openvswitch-hugetlbfs.sysusers
110336
Source10: https://fast.dpdk.org/rel/dpdk-%{dpdkver}.tar.xz
110336
110336
%define docutilsver 0.12
110336
%define pygmentsver 1.4
110336
%define sphinxver   1.2.3
6c6af1
%define pyelftoolsver 0.27
110336
Source100: https://pypi.io/packages/source/d/docutils/docutils-%{docutilsver}.tar.gz
110336
Source101: https://pypi.io/packages/source/P/Pygments/Pygments-%{pygmentsver}.tar.gz
110336
Source102: https://pypi.io/packages/source/S/Sphinx/Sphinx-%{sphinxver}.tar.gz
6c6af1
Source103: https://pypi.io/packages/source/p/pyelftools/pyelftools-%{pyelftoolsver}.tar.gz
110336
ef58f0
Patch0:    openvswitch-%{version}.patch
110336
110336
# The DPDK is designed to optimize througput of network traffic using, among
110336
# other techniques, carefully crafted assembly instructions.  As such it
110336
# needs extensive work to port it to other architectures.
110336
ExclusiveArch: x86_64 aarch64 ppc64le s390x
110336
110336
# Do not enable this otherwise YUM will break on any upgrade.
110336
# Provides: openvswitch
ef58f0
Conflicts: openvswitch < 3.1
ef58f0
Conflicts: openvswitch-dpdk < 3.1
110336
Conflicts: openvswitch2.10
110336
Conflicts: openvswitch2.11
110336
Conflicts: openvswitch2.12
110336
Conflicts: openvswitch2.13
110336
Conflicts: openvswitch2.14
110336
Conflicts: openvswitch2.15
6c6af1
Conflicts: openvswitch2.16
ef58f0
Conflicts: openvswitch2.17
ef58f0
Conflicts: openvswitch3.0
110336
110336
# FIXME Sphinx is used to generate some manpages, unfortunately, on RHEL, it's
110336
# in the -optional repository and so we can't require it directly since RHV
110336
# doesn't have the -optional repository enabled and so TPS fails
110336
%if %{external_sphinx}
110336
BuildRequires: python3-sphinx
110336
%else
110336
# Sphinx dependencies
110336
BuildRequires: python-devel
110336
BuildRequires: python-setuptools
110336
#BuildRequires: python2-docutils
110336
BuildRequires: python-jinja2
110336
BuildRequires: python-nose
110336
#BuildRequires: python2-pygments
110336
# docutils dependencies
110336
BuildRequires: python-imaging
110336
# pygments dependencies
110336
BuildRequires: python-nose
110336
%endif
110336
110336
BuildRequires: gcc gcc-c++ make
110336
BuildRequires: autoconf automake libtool
Open vSwitch CI 772b08
BuildRequires: systemd-units systemd-rpm-macros openssl openssl-devel
110336
BuildRequires: python3-devel python3-setuptools
110336
BuildRequires: desktop-file-utils
110336
BuildRequires: groff-base graphviz
110336
BuildRequires: unbound-devel
6c6af1
BuildRequires: systemtap-sdt-devel
110336
# make check dependencies
110336
BuildRequires: procps-ng
110336
%if %{with check_datapath_kernel}
110336
BuildRequires: nmap-ncat
110336
# would be useful but not available in RHEL or EPEL
110336
#BuildRequires: pyftpdlib
110336
%endif
110336
110336
%if %{with libcapng}
110336
BuildRequires: libcap-ng libcap-ng-devel
110336
%endif
110336
110336
%ifarch %{dpdkarches}
110336
BuildRequires: meson
6c6af1
%if 0%{?rhel} > 8 || 0%{?fedora}
6c6af1
BuildRequires: python3-pyelftools
6c6af1
%endif
110336
# DPDK driver dependencies
13a7f7
BuildRequires: zlib-devel numactl-devel libarchive-devel
110336
%ifarch x86_64
110336
BuildRequires: rdma-core-devel >= 15 libmnl-devel
110336
%endif
110336
110336
# Required by packaging policy for the bundled DPDK
110336
Provides: bundled(dpdk) = %{dpdkver}
110336
%endif
110336
110336
Requires: openssl iproute module-init-tools
110336
#Upstream kernel commit 4f647e0a3c37b8d5086214128614a136064110c3
110336
#Requires: kernel >= 3.15.0-0
110336
Requires: openvswitch-selinux-extra-policy
110336
Open vSwitch CI 772b08
%{?sysusers_requires_compat}
110336
Requires(post): /bin/sed
110336
Requires(post): systemd-units
110336
Requires(preun): systemd-units
110336
Requires(postun): systemd-units
110336
Obsoletes: openvswitch-controller <= 0:2.1.0-1
110336
6c6af1
%if 0%{?rhel}
6c6af1
# sortedcontainers are not packaged on RHEL yet, but ovs includes it
6c6af1
%global __requires_exclude ^python%{python3_version}dist\\(sortedcontainers\\)$
6c6af1
%endif
6c6af1
110336
%description
110336
Open vSwitch provides standard network bridging functions and
110336
support for the OpenFlow protocol for remote per-flow control of
110336
traffic.
110336
110336
%package -n python3-%{pkgname}
110336
Summary: Open vSwitch python3 bindings
110336
License: ASL 2.0
110336
Requires: %{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
110336
Provides: python-%{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
110336
110336
%description -n python3-%{pkgname}
110336
Python bindings for the Open vSwitch database
110336
110336
%package test
110336
Summary: Open vSwitch testing utilities
110336
License: ASL 2.0
110336
BuildArch: noarch
110336
Requires: python3-%{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
110336
Requires: tcpdump
110336
110336
%description test
110336
Utilities that are useful to diagnose performance and connectivity
110336
issues in Open vSwitch setup.
110336
110336
%package devel
110336
Summary: Open vSwitch OpenFlow development package (library, headers)
110336
License: ASL 2.0
110336
Requires: %{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
110336
110336
%description devel
110336
This provides shared library, libopenswitch.so and the openvswitch header
110336
files needed to build an external application.
110336
6c6af1
%if 0%{?rhel} == 8 || 0%{?fedora} > 28
110336
%package -n network-scripts-%{name}
110336
Summary: Open vSwitch legacy network service support
110336
License: ASL 2.0
110336
Requires: network-scripts
110336
Supplements: (%{name} and network-scripts)
110336
110336
%description -n network-scripts-%{name}
110336
This provides the ifup and ifdown scripts for use with the legacy network
110336
service.
110336
%endif
110336
110336
%if %{with ipsec}
110336
%package ipsec
110336
Summary: Open vSwitch IPsec tunneling support
110336
License: ASL 2.0
110336
Requires: python3-%{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
110336
Requires: libreswan
110336
110336
%description ipsec
110336
This package provides IPsec tunneling support for OVS tunnels.
110336
%endif
110336
110336
%prep
110336
%if 0%{?commit:1}
110336
%setup -q -n ovs-%{commit} -a 10
110336
%else
110336
%setup -q -n ovs-%{version} -a 10
110336
%endif
110336
%if ! %{external_sphinx}
110336
%if 0%{?commit:1}
110336
%setup -n ovs-%{commit} -q -D -T -a 100 -a 101 -a 102
110336
%else
110336
%setup -n ovs-%{version} -q -D -T -a 100 -a 101 -a 102
110336
%endif
110336
%endif
6c6af1
%if 0%{?rhel} && 0%{?rhel} < 9
6c6af1
%if 0%{?commit:1}
6c6af1
%setup -n ovs-%{commit} -q -D -T -a 103
6c6af1
%else
6c6af1
%setup -n ovs-%{version} -q -D -T -a 103
6c6af1
%endif
6c6af1
%endif
110336
110336
mv dpdk-*/ %{dpdkdir}/
110336
ef58f0
%patch0 -p1
110336
110336
%build
6c6af1
%if 0%{?rhel} && 0%{?rhel} < 9
6c6af1
export PYTHONPATH="${PWD}/pyelftools-%{pyelftoolsver}"
6c6af1
%endif
110336
# Build Sphinx on RHEL
110336
%if ! %{external_sphinx}
110336
export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}%{_builddir}/pytmp/lib/python"
110336
for x in docutils-%{docutilsver} Pygments-%{pygmentsver} Sphinx-%{sphinxver}; do
110336
    pushd "$x"
110336
    python2 setup.py install --home %{_builddir}/pytmp
110336
    popd
110336
done
110336
110336
export PATH="$PATH:%{_builddir}/pytmp/bin"
110336
%endif
110336
110336
./boot.sh
110336
110336
%ifarch %{dpdkarches}    # build dpdk
110336
# Lets build DPDK first
110336
cd %{dpdkdir}
110336
110336
ENABLED_DRIVERS=(
110336
    bus/pci
110336
    bus/vdev
110336
    mempool/ring
110336
    net/failsafe
110336
    net/i40e
110336
    net/ring
110336
    net/vhost
110336
    net/virtio
110336
    net/tap
110336
)
110336
110336
%ifarch x86_64
110336
ENABLED_DRIVERS+=(
6c6af1
    bus/auxiliary
110336
    bus/vmbus
110336
    common/iavf
110336
    common/mlx5
110336
    net/bnxt
110336
    net/enic
110336
    net/iavf
110336
    net/ice
110336
    net/mlx5
110336
    net/netvsc
110336
    net/nfp
110336
    net/qede
110336
    net/vdev_netvsc
110336
)
110336
%endif
110336
110336
%ifarch aarch64 x86_64
110336
ENABLED_DRIVERS+=(
110336
    net/e1000
110336
    net/ixgbe
110336
)
110336
%endif
110336
6c6af1
for driver in "${ENABLED_DRIVERS[@]}"; do
6c6af1
    enable_drivers="${enable_drivers:+$enable_drivers,}"$driver
6c6af1
done
6c6af1
6c6af1
# As of 21.11-rc3, following libraries can be disabled:
6c6af1
# optional_libs = [
6c6af1
#         'bitratestats',
6c6af1
#         'gpudev',
6c6af1
#         'gro',
6c6af1
#         'gso',
6c6af1
#         'kni',
6c6af1
#         'jobstats',
6c6af1
#         'latencystats',
6c6af1
#         'metrics',
6c6af1
#         'pdump',
6c6af1
#         'power',
6c6af1
#         'vhost',
6c6af1
# ]
6c6af1
# If doing any updates, this must be aligned with:
6c6af1
# https://access.redhat.com/articles/3538141
6c6af1
DISABLED_LIBS=(
6c6af1
    gpudev
6c6af1
    kni
6c6af1
    jobstats
6c6af1
    power
6c6af1
)
6c6af1
6c6af1
for lib in "${DISABLED_LIBS[@]}"; do
6c6af1
    disable_libs="${disable_libs:+$disable_libs,}"$lib
110336
done
110336
110336
%set_build_flags
110336
%__meson --prefix=%{_builddir}/dpdk-build \
110336
         --buildtype=plain \
6c6af1
         -Ddisable_libs="$disable_libs" \
ef58f0
         -Ddisable_apps="*" \
6c6af1
         -Denable_drivers="$enable_drivers" \
6c6af1
         -Dplatform=generic \
Open vSwitch CI ba7c0c
         -Dmax_ethports=1024 \
110336
         -Dmax_numa_nodes=8 \
110336
         -Dtests=false \
110336
         %{_vpath_builddir}
110336
%meson_build
110336
%__meson install -C %{_vpath_builddir} --no-rebuild
110336
110336
# FIXME currently with LTO enabled OVS tries to link with both static and shared libraries
110336
rm -v %{_builddir}/dpdk-build/%{_lib}/*.so*
110336
110336
# Generate a list of supported drivers, its hard to tell otherwise.
110336
cat << EOF > README.DPDK-PMDS
110336
DPDK drivers included in this package:
110336
110336
EOF
110336
110336
for f in %{_builddir}/dpdk-build/%{_lib}/librte_net_*.a; do
110336
    basename ${f} | cut -c12- | cut -d. -f1 | tr [:lower:] [:upper:]
110336
done >> README.DPDK-PMDS
110336
110336
cat << EOF >> README.DPDK-PMDS
110336
110336
For further information about the drivers, see
110336
http://dpdk.org/doc/guides-%{dpdksver}/nics/index.html
110336
EOF
110336
110336
cd -
110336
%endif    # build dpdk
110336
110336
# And now for OVS...
110336
mkdir build-shared build-static
110336
pushd build-shared
110336
ln -s ../configure
110336
%configure \
110336
%if %{with libcapng}
110336
        --enable-libcapng \
110336
%else
110336
        --disable-libcapng \
110336
%endif
110336
        --disable-static \
110336
        --enable-shared \
110336
        --enable-ssl \
6c6af1
        --with-pkidir=%{_sharedstatedir}/openvswitch/pki \
ef58f0
        --enable-usdt-probes \
ef58f0
        --disable-afxdp
110336
make %{?_smp_mflags}
110336
popd
110336
pushd build-static
110336
ln -s ../configure
110336
%ifarch %{dpdkarches}
110336
PKG_CONFIG_PATH=%{_builddir}/dpdk-build/%{_lib}/pkgconfig \
110336
%endif
110336
%configure \
110336
%if %{with libcapng}
110336
        --enable-libcapng \
110336
%else
110336
        --disable-libcapng \
110336
%endif
110336
        --enable-ssl \
110336
%ifarch %{dpdkarches}
110336
        --with-dpdk=static \
110336
%endif
6c6af1
        --with-pkidir=%{_sharedstatedir}/openvswitch/pki \
ef58f0
        --enable-usdt-probes \
ef58f0
        --disable-afxdp
110336
make %{?_smp_mflags}
110336
popd
110336
110336
/usr/bin/python3 build-aux/dpdkstrip.py \
110336
        --dpdk \
110336
        < rhel/usr_lib_systemd_system_ovs-vswitchd.service.in \
110336
        > rhel/usr_lib_systemd_system_ovs-vswitchd.service
110336
110336
%install
110336
rm -rf $RPM_BUILD_ROOT
ef58f0
make -C build-shared install sbin_PROGRAMS=ovsdb/ovsdb-server DESTDIR=$RPM_BUILD_ROOT
ef58f0
make -C build-static install bin_PROGRAMS= sbin_PROGRAMS=vswitchd/ovs-vswitchd DESTDIR=$RPM_BUILD_ROOT
110336
110336
install -d -m 0755 $RPM_BUILD_ROOT%{_rundir}/openvswitch
110336
install -d -m 0750 $RPM_BUILD_ROOT%{_localstatedir}/log/openvswitch
110336
install -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch
110336
Open vSwitch CI 772b08
install -p -D -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysusersdir}/openvswitch.conf
Open vSwitch CI 772b08
%ifarch %{dpdkarches}
Open vSwitch CI 772b08
install -p -D -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysusersdir}/openvswitch-hugetlbfs.conf
Open vSwitch CI 772b08
%endif
Open vSwitch CI 772b08
110336
install -p -D -m 0644 rhel/usr_lib_udev_rules.d_91-vfio.rules \
110336
        $RPM_BUILD_ROOT%{_udevrulesdir}/91-vfio.rules
110336
110336
install -p -D -m 0644 \
110336
        rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
110336
        $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/openvswitch
110336
110336
for service in openvswitch ovsdb-server ovs-vswitchd \
110336
               ovs-delete-transient-ports; do
110336
        install -p -D -m 0644 \
110336
                        rhel/usr_lib_systemd_system_${service}.service \
110336
                        $RPM_BUILD_ROOT%{_unitdir}/${service}.service
110336
done
110336
110336
%if %{with ipsec}
110336
install -p -D -m 0644 rhel/usr_lib_systemd_system_openvswitch-ipsec.service \
110336
                      $RPM_BUILD_ROOT%{_unitdir}/openvswitch-ipsec.service
110336
%endif
110336
110336
install -m 0755 rhel/etc_init.d_openvswitch \
110336
        $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/openvswitch.init
110336
110336
install -p -D -m 0644 rhel/etc_openvswitch_default.conf \
110336
        $RPM_BUILD_ROOT/%{_sysconfdir}/openvswitch/default.conf
110336
110336
install -p -D -m 0644 rhel/etc_logrotate.d_openvswitch \
110336
        $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/openvswitch
110336
110336
install -m 0644 vswitchd/vswitch.ovsschema \
110336
        $RPM_BUILD_ROOT/%{_datadir}/openvswitch/vswitch.ovsschema
110336
6c6af1
%if 0%{?rhel} < 9
110336
install -d -m 0755 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/
110336
install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifdown-ovs \
110336
        $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
110336
install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifup-ovs \
110336
        $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
6c6af1
%endif
110336
110336
install -d -m 0755 $RPM_BUILD_ROOT%{python3_sitelib}
110336
cp -a $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/ovstest \
110336
        $RPM_BUILD_ROOT%{python3_sitelib}
110336
110336
# Build the JSON C extension for the Python lib (#1417738)
110336
pushd python
110336
(
110336
export CPPFLAGS="-I ../include -I ../build-shared/include"
110336
export LDFLAGS="%{__global_ldflags} -L $RPM_BUILD_ROOT%{_libdir}"
110336
%py3_build
110336
%py3_install
110336
[ -f "$RPM_BUILD_ROOT/%{python3_sitearch}/ovs/_json$(python3-config --extension-suffix)" ]
110336
)
110336
popd
110336
110336
rm -rf $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/
110336
110336
install -d -m 0755 $RPM_BUILD_ROOT/%{_sharedstatedir}/openvswitch
110336
110336
install -d -m 0755 $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/services/
110336
110336
install -p -D -m 0755 \
110336
        rhel/usr_share_openvswitch_scripts_ovs-systemd-reload \
110336
        $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/ovs-systemd-reload
110336
110336
touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db
110336
# The db needs special permission as IPsec Pre-shared keys are stored in it.
110336
chmod 0640 $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db
110336
110336
touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/system-id.conf
110336
110336
# remove unpackaged files
110336
rm -f $RPM_BUILD_ROOT/%{_bindir}/ovs-benchmark \
110336
        $RPM_BUILD_ROOT/%{_bindir}/ovs-docker \
110336
        $RPM_BUILD_ROOT/%{_bindir}/ovs-parse-backtrace \
110336
        $RPM_BUILD_ROOT/%{_bindir}/ovs-testcontroller \
110336
        $RPM_BUILD_ROOT/%{_sbindir}/ovs-vlan-bug-workaround \
110336
        $RPM_BUILD_ROOT/%{_mandir}/man1/ovs-benchmark.1* \
110336
        $RPM_BUILD_ROOT/%{_mandir}/man8/ovs-testcontroller.* \
110336
        $RPM_BUILD_ROOT/%{_mandir}/man8/ovs-vlan-bug-workaround.8*
110336
110336
%if ! %{with ipsec}
110336
rm -f $RPM_BUILD_ROOT/%{_datadir}/openvswitch/scripts/ovs-monitor-ipsec
110336
%endif
110336
110336
# remove ovn unpackages files
110336
rm -f $RPM_BUILD_ROOT%{_bindir}/ovn*
110336
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/ovn*
110336
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/ovn*
110336
rm -f $RPM_BUILD_ROOT%{_mandir}/man7/ovn*
110336
rm -f $RPM_BUILD_ROOT%{_mandir}/man8/ovn*
110336
rm -f $RPM_BUILD_ROOT%{_datadir}/openvswitch/ovn*
110336
rm -f $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/ovn*
110336
rm -f $RPM_BUILD_ROOT%{_includedir}/ovn/*
110336
110336
%check
110336
%if %{with check}
110336
    pushd build-static
110336
    touch resolv.conf
110336
    export OVS_RESOLV_CONF=$(pwd)/resolv.conf
110336
    if make check TESTSUITEFLAGS='%{_smp_mflags}' ||
110336
       make check TESTSUITEFLAGS='--recheck'; then :;
110336
    else
110336
        cat tests/testsuite.log
110336
        exit 1
110336
    fi
110336
    popd
110336
%endif
110336
%if %{with check_datapath_kernel}
110336
    pushd build-static
110336
    if make check-kernel RECHECK=yes; then :;
110336
    else
110336
        cat tests/system-kmod-testsuite.log
110336
        exit 1
110336
    fi
110336
    popd
110336
%endif
110336
110336
%clean
110336
rm -rf $RPM_BUILD_ROOT
110336
110336
%preun
110336
%if 0%{?systemd_preun:1}
110336
    %systemd_preun openvswitch.service
110336
%else
110336
    if [ $1 -eq 0 ] ; then
110336
    # Package removal, not upgrade
110336
        /bin/systemctl --no-reload disable openvswitch.service >/dev/null 2>&1 || :
110336
        /bin/systemctl stop openvswitch.service >/dev/null 2>&1 || :
110336
    fi
110336
%endif
110336
110336
%pre
Open vSwitch CI 772b08
%sysusers_create_compat %{SOURCE2}
110336
%ifarch %{dpdkarches}
Open vSwitch CI 772b08
%sysusers_create_compat %{SOURCE3}
110336
%endif
110336
110336
%post
110336
if [ $1 -eq 1 ]; then
110336
    sed -i 's:^#OVS_USER_ID=:OVS_USER_ID=:' /etc/sysconfig/openvswitch
110336
110336
%ifarch %{dpdkarches}
110336
    sed -i \
110336
        's@OVS_USER_ID="openvswitch:openvswitch"@OVS_USER_ID="openvswitch:hugetlbfs"@'\
110336
        /etc/sysconfig/openvswitch
110336
%endif
110336
fi
110336
chown -R openvswitch:openvswitch /etc/openvswitch
110336
110336
%if 0%{?systemd_post:1}
110336
    %systemd_post openvswitch.service
110336
%else
110336
    # Package install, not upgrade
110336
    if [ $1 -eq 1 ]; then
110336
        /bin/systemctl daemon-reload >dev/null || :
110336
    fi
110336
%endif
110336
110336
%postun
110336
%if 0%{?systemd_postun:1}
110336
    %systemd_postun openvswitch.service
110336
%else
110336
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
110336
%endif
110336
110336
%triggerun -- openvswitch < 2.5.0-22.git20160727%{?dist}
110336
# old rpm versions restart the service in postun, but
110336
# due to systemd some preparation is needed.
110336
if systemctl is-active openvswitch >/dev/null 2>&1 ; then
110336
    /usr/share/openvswitch/scripts/ovs-ctl stop >/dev/null 2>&1 || :
110336
    systemctl daemon-reload >/dev/null 2>&1 || :
110336
    systemctl stop openvswitch ovsdb-server ovs-vswitchd >/dev/null 2>&1 || :
110336
    systemctl start openvswitch >/dev/null 2>&1 || :
110336
fi
110336
exit 0
110336
110336
%files -n python3-%{pkgname}
110336
%{python3_sitearch}/ovs
110336
%{python3_sitearch}/ovs-*.egg-info
110336
%doc LICENSE
110336
110336
%files test
110336
%{_bindir}/ovs-pcap
110336
%{_bindir}/ovs-tcpdump
110336
%{_bindir}/ovs-tcpundump
ef58f0
%{_datadir}/openvswitch/scripts/usdt/*
110336
%{_mandir}/man1/ovs-pcap.1*
110336
%{_mandir}/man8/ovs-tcpdump.8*
110336
%{_mandir}/man1/ovs-tcpundump.1*
110336
%{_bindir}/ovs-test
110336
%{_bindir}/ovs-vlan-test
110336
%{_bindir}/ovs-l3ping
110336
%{_mandir}/man8/ovs-test.8*
110336
%{_mandir}/man8/ovs-vlan-test.8*
110336
%{_mandir}/man8/ovs-l3ping.8*
110336
%{python3_sitelib}/ovstest
110336
110336
%files devel
110336
%{_libdir}/*.so
110336
%{_libdir}/pkgconfig/*.pc
110336
%{_includedir}/openvswitch/*
110336
%{_includedir}/openflow/*
110336
%exclude %{_libdir}/*.a
110336
%exclude %{_libdir}/*.la
110336
6c6af1
%if 0%{?rhel} == 8 || 0%{?fedora} > 28
110336
%files -n network-scripts-%{name}
110336
%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
110336
%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
110336
%endif
110336
110336
%files
110336
%defattr(-,openvswitch,openvswitch)
110336
%dir %{_sysconfdir}/openvswitch
110336
%{_sysconfdir}/openvswitch/default.conf
110336
%config %ghost %verify(not owner group md5 size mtime) %{_sysconfdir}/openvswitch/conf.db
110336
%ghost %attr(0600,-,-) %verify(not owner group md5 size mtime) %{_sysconfdir}/openvswitch/.conf.db.~lock~
110336
%config %ghost %{_sysconfdir}/openvswitch/system-id.conf
110336
%defattr(-,root,root)
110336
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/openvswitch
110336
%{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
110336
%{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
110336
%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
110336
%{_unitdir}/openvswitch.service
110336
%{_unitdir}/ovsdb-server.service
110336
%{_unitdir}/ovs-vswitchd.service
110336
%{_unitdir}/ovs-delete-transient-ports.service
110336
%{_datadir}/openvswitch/scripts/openvswitch.init
110336
%{_datadir}/openvswitch/scripts/ovs-check-dead-ifs
110336
%{_datadir}/openvswitch/scripts/ovs-lib
110336
%{_datadir}/openvswitch/scripts/ovs-save
110336
%{_datadir}/openvswitch/scripts/ovs-vtep
110336
%{_datadir}/openvswitch/scripts/ovs-ctl
110336
%{_datadir}/openvswitch/scripts/ovs-kmod-ctl
110336
%{_datadir}/openvswitch/scripts/ovs-systemd-reload
13a7f7
%config %{_datadir}/openvswitch/local-config.ovsschema
110336
%config %{_datadir}/openvswitch/vswitch.ovsschema
110336
%config %{_datadir}/openvswitch/vtep.ovsschema
110336
%{_bindir}/ovs-appctl
110336
%{_bindir}/ovs-dpctl
110336
%{_bindir}/ovs-ofctl
110336
%{_bindir}/ovs-vsctl
110336
%{_bindir}/ovsdb-client
110336
%{_bindir}/ovsdb-tool
110336
%{_bindir}/ovs-pki
110336
%{_bindir}/vtep-ctl
110336
%{_libdir}/*.so.*
110336
%{_sbindir}/ovs-vswitchd
110336
%{_sbindir}/ovsdb-server
110336
%{_mandir}/man1/ovsdb-client.1*
110336
%{_mandir}/man1/ovsdb-server.1*
110336
%{_mandir}/man1/ovsdb-tool.1*
110336
%{_mandir}/man5/ovsdb.5*
13a7f7
%{_mandir}/man5/ovsdb.local-config.5*
110336
%{_mandir}/man5/ovsdb-server.5.*
110336
%{_mandir}/man5/ovs-vswitchd.conf.db.5*
110336
%{_mandir}/man5/vtep.5*
110336
%{_mandir}/man7/ovsdb-server.7*
110336
%{_mandir}/man7/ovsdb.7*
110336
%{_mandir}/man7/ovs-actions.7*
110336
%{_mandir}/man7/ovs-fields.7*
110336
%{_mandir}/man8/vtep-ctl.8*
110336
%{_mandir}/man8/ovs-appctl.8*
110336
%{_mandir}/man8/ovs-ctl.8*
110336
%{_mandir}/man8/ovs-dpctl.8*
110336
%{_mandir}/man8/ovs-kmod-ctl.8.*
110336
%{_mandir}/man8/ovs-ofctl.8*
110336
%{_mandir}/man8/ovs-pki.8*
110336
%{_mandir}/man8/ovs-vsctl.8*
110336
%{_mandir}/man8/ovs-vswitchd.8*
110336
%{_mandir}/man8/ovs-parse-backtrace.8*
110336
%{_udevrulesdir}/91-vfio.rules
110336
%doc LICENSE NOTICE README.rst NEWS rhel/README.RHEL.rst
110336
%ifarch %{dpdkarches}
110336
%doc %{dpdkdir}/README.DPDK-PMDS
Open vSwitch CI 3f9b5c
%attr(750,openvswitch,hugetlbfs) %verify(not owner group) /var/log/openvswitch
Open vSwitch CI 3f9b5c
%else
Open vSwitch CI 3f9b5c
%attr(750,openvswitch,openvswitch) %verify(not owner group) /var/log/openvswitch
110336
%endif
110336
/var/lib/openvswitch
110336
%ghost %attr(755,root,root) %verify(not owner group) %{_rundir}/openvswitch
110336
%{_datadir}/openvswitch/bugtool-plugins/
110336
%{_datadir}/openvswitch/scripts/ovs-bugtool-*
110336
%{_bindir}/ovs-dpctl-top
110336
%{_sbindir}/ovs-bugtool
110336
%{_mandir}/man8/ovs-dpctl-top.8*
110336
%{_mandir}/man8/ovs-bugtool.8*
110336
%if (0%{?rhel} && 0%{?rhel} <= 7) || (0%{?fedora} && 0%{?fedora} < 29)
110336
%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
110336
%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
110336
%endif
Open vSwitch CI 772b08
%{_sysusersdir}/openvswitch.conf
Open vSwitch CI 772b08
%ifarch %{dpdkarches}
Open vSwitch CI 772b08
%{_sysusersdir}/openvswitch-hugetlbfs.conf
Open vSwitch CI 772b08
%endif
110336
110336
%if %{with ipsec}
110336
%files ipsec
110336
%{_datadir}/openvswitch/scripts/ovs-monitor-ipsec
110336
%{_unitdir}/openvswitch-ipsec.service
110336
%endif
110336
110336
%changelog
Open vSwitch CI fcc9da
* Fri Aug 04 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-41
Open vSwitch CI fcc9da
- Merging upstream branch-3.1 [RH git: 9864a17a73]
Open vSwitch CI fcc9da
    Commit list:
Open vSwitch CI fcc9da
    27296cf482 ci: Fix OPTS not being passed to OSX builds.
Open vSwitch CI fcc9da
Open vSwitch CI fcc9da
Open vSwitch CI 6f8110
* Thu Aug 03 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-40
Open vSwitch CI 6f8110
- Merging upstream branch-3.1 [RH git: da4e71ef38]
Open vSwitch CI 6f8110
    Commit list:
Open vSwitch CI 6f8110
    8b1795c69f ovsdb-tool: Fix json leak while showing clustered log.
Open vSwitch CI 6f8110
    d4d068fef6 ovsdb-server: Fix excessive memory usage on DB open. (#2228464)
Open vSwitch CI 6f8110
    369daff0d4 tests: Add ovsdb execution cases for set size constraints.
Open vSwitch CI 6f8110
    eb33626b59 ovsdb: relay: Fix handling of XOR updates with size constraints.
Open vSwitch CI 6f8110
    8d2c8c33e7 ovsdb: file: Fix diff application to a default column value.
Open vSwitch CI 6f8110
    3797558158 ovsdb: file: Fix inability to read diffs that violate type size.
Open vSwitch CI 6f8110
    96d02ee7a8 ovs-tcpdump: Clear auto-assigned ipv6 address of mirror port.
Open vSwitch CI 6f8110
Open vSwitch CI 6f8110
Open vSwitch CI ccf44e
* Tue Aug 01 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-39
Open vSwitch CI ccf44e
- Merging upstream branch-3.1 [RH git: 9dbd076546]
Open vSwitch CI ccf44e
    Commit list:
Open vSwitch CI ccf44e
    618d3bdbb5 ofproto-dpif: Fix removal of renamed datapath ports.
Open vSwitch CI ccf44e
Open vSwitch CI ccf44e
Open vSwitch CI 2e892a
* Tue Jul 25 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-38
Open vSwitch CI 2e892a
- Merging upstream branch-3.1 [RH git: 63dcdf1a37]
Open vSwitch CI 2e892a
    Commit list:
Open vSwitch CI 2e892a
    11c542104e netdev-dpdk: Negotiate delivery of per-packet Rx metadata.
Open vSwitch CI 2e892a
Open vSwitch CI 2e892a
Open vSwitch CI ae84f5
* Fri Jul 21 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-37
Open vSwitch CI ae84f5
- Merging upstream branch-3.1 [RH git: de746f5ab8]
Open vSwitch CI ae84f5
    Commit list:
Open vSwitch CI ae84f5
    cad4759fa1 ofproto-dpif-upcall: Mirror packets that are modified. (#2155579)
Open vSwitch CI ae84f5
Open vSwitch CI ae84f5
Open vSwitch CI e56f2f
* Tue Jul 18 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-36
Open vSwitch CI e56f2f
- Merging upstream branch-3.1 [RH git: 413ddaaeec]
Open vSwitch CI e56f2f
    Commit list:
Open vSwitch CI e56f2f
    17022ea063 vswitchd: Wait for a bridge exit before replying to exit unixctl.
Open vSwitch CI e56f2f
Open vSwitch CI e56f2f
Open vSwitch CI e16950
* Tue Jun 27 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-35
Open vSwitch CI e16950
- Merging upstream branch-3.1 [RH git: 27d7ee3cae]
Open vSwitch CI e16950
    Commit list:
Open vSwitch CI e16950
    4aba34b82b Prepare for 3.1.3.
Open vSwitch CI e16950
    9167774475 Set release date for 3.1.2.
Open vSwitch CI e16950
Open vSwitch CI e16950
Open vSwitch CI 77a508
* Fri Jun 23 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-34
Open vSwitch CI 77a508
- Merging upstream branch-3.1 [RH git: 76fe0575e5]
Open vSwitch CI 77a508
    Commit list:
Open vSwitch CI 77a508
    aba1862d8b ofproto-dpif-upcall: Don't set statistics to 0 when they jump back.
Open vSwitch CI 77a508
Open vSwitch CI 77a508
Open vSwitch CI e0f361
* Fri Jun 16 2023 Timothy Redaelli <tredaelli@redhat.com> - 3.1.0-33
Open vSwitch CI e0f361
- redhat: always copy SYSUSERSFILES to SOURCES [RH git: e4524628b3]
Open vSwitch CI e0f361
Open vSwitch CI e0f361
Open vSwitch CI 7eac84
* Mon Jun 12 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-32
Open vSwitch CI 7eac84
- Merging upstream branch-3.1 [RH git: d3aff8ee5f]
Open vSwitch CI 7eac84
    Commit list:
Open vSwitch CI 7eac84
    859071224c ovsdb: monitor: Destroy initial change set when new columns added.
Open vSwitch CI 7eac84
    54e45e3fee ovsdb: Monitor: Keep and maintain the initial change set.
Open vSwitch CI 7eac84
Open vSwitch CI 7eac84
Open vSwitch CI 285dce
* Fri Jun 09 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-31
Open vSwitch CI 285dce
- Merging upstream branch-3.1 [RH git: d9cea495eb]
Open vSwitch CI 285dce
    Commit list:
Open vSwitch CI 285dce
    5fe322e169 fatal-signal: Don't share signal fds/handles with forked process.
Open vSwitch CI 285dce
Open vSwitch CI 285dce
Open vSwitch CI 93dcca
* Wed Jun 07 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-30
Open vSwitch CI 93dcca
- Merging upstream branch-3.1 [RH git: a29d6e27ae]
Open vSwitch CI 93dcca
    Commit list:
Open vSwitch CI 93dcca
    3fcb817840 cpu: Fix cpuid check for some AMD processors. (#2211747)
Open vSwitch CI 93dcca
    01f0668fdf tc: Fix crash on malformed reply from kernel.
Open vSwitch CI 93dcca
Open vSwitch CI 93dcca
Open vSwitch CI 93dcca
* Wed Jun 07 2023 Timothy Redaelli <tredaelli@redhat.com> - 3.1.0-29
Open vSwitch CI 93dcca
- redhat: Fix an unwanted change that prevent rh-fail-if-dirty to work [RH git: 9c39a6c81f]
Open vSwitch CI 93dcca
Open vSwitch CI 93dcca
Open vSwitch CI 5b04d8
* Fri Jun 02 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-28
Open vSwitch CI 5b04d8
- Merging upstream branch-3.1 [RH git: 0f2e734497]
Open vSwitch CI 5b04d8
    Commit list:
Open vSwitch CI 5b04d8
    45dba48f37 netdev-dpdk: Fix warning with gcc 13.
Open vSwitch CI 5b04d8
Open vSwitch CI 5b04d8
Open vSwitch CI 772b08
* Wed May 31 2023 Timothy Redaelli <tredaelli@redhat.com> - 3.1.0-27
Open vSwitch CI 772b08
- Be sure SYSUSERSFILES are copied to dist-git [RH git: 59999cf89f]
Open vSwitch CI 772b08
Open vSwitch CI 772b08
Open vSwitch CI 772b08
* Tue May 30 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-26
Open vSwitch CI 772b08
- Merging upstream branch-3.1 [RH git: 65b407d97b]
Open vSwitch CI 772b08
    Commit list:
Open vSwitch CI 772b08
    faddfa21df utilities/bashcomp: Fix PS1 generation on new bash. (#2170344)
Open vSwitch CI 772b08
    33db42a34b netdev-offload-dpdk: Fix crash in debug log.
Open vSwitch CI 772b08
    55535451bb stream-ssl: Disable alerts on unexpected EOF.
Open vSwitch CI 772b08
    e3b84fd4ab tests: layer3-tunnels: Skip bareudp tests if not supported by kernel.
Open vSwitch CI 772b08
    e913394054 ovs-fields: Modify the width of tpa and spa.
Open vSwitch CI 772b08
    23d77ba105 netdev-vport: RCU-fy tunnel config.
Open vSwitch CI 772b08
    0f303e4a7f smap: Make argument of smap_add_ipv6 constant.
Open vSwitch CI 772b08
    467b891f73 netdev-vport: Fix unsafe handling of GRE sequence number.
Open vSwitch CI 772b08
    ea20146882 tests: dpdk: Pass `--no-pci` to tests that do not use physical ports.
Open vSwitch CI 772b08
Open vSwitch CI 772b08
Open vSwitch CI 772b08
* Fri May 26 2023 Timothy Redaelli <tredaelli@redhat.com> - 3.1.0-25
Open vSwitch CI 772b08
- redhat: Use sysusers instead of useradd/groupadd directly [RH git: 4772a9b0e3] (#2193168)
Open vSwitch CI 772b08
    Reported-at: https://bugzilla.redhat.com/2193168
Open vSwitch CI 772b08
    Reported-by: Dan Williams <dcbw@redhat.com>
Open vSwitch CI 772b08
    Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Open vSwitch CI 772b08
Open vSwitch CI 772b08
Open vSwitch CI fc879c
* Tue May 16 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-24
Open vSwitch CI fc879c
- Merging upstream branch-3.1 [RH git: 63d9d4a1d7]
Open vSwitch CI fc879c
    Commit list:
Open vSwitch CI fc879c
    f4cc9ca824 dpctl: Fix dereferencing null pointer in parse_ct_limit_zones().
Open vSwitch CI fc879c
    9e27e8fe81 netdev-offload: Fix deadlock/recursive use of the netdev_hmap_rwlock rwlock. (#2182541)
Open vSwitch CI fc879c
    087439e416 ofproto-dpif-xlate: Fix use-after-free when xlate_actions().
Open vSwitch CI fc879c
Open vSwitch CI fc879c
Open vSwitch CI 49a9e2
* Fri May 05 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-23
Open vSwitch CI 49a9e2
- Merging upstream branch-3.1 [RH git: b4785c720a]
Open vSwitch CI 49a9e2
    Commit list:
Open vSwitch CI 49a9e2
    bf9c834e64 ci: Separate DPDK from OVS build.
Open vSwitch CI 49a9e2
Open vSwitch CI 49a9e2
Open vSwitch CI 46abaa
* Thu May 04 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-22
Open vSwitch CI 46abaa
- Merging upstream branch-3.1 [RH git: 390827119b]
Open vSwitch CI 46abaa
    Commit list:
Open vSwitch CI 46abaa
    bf1b32e20e ovsdb-idl.at: Fix write-changed-only tests without change tracking.
Open vSwitch CI 46abaa
Open vSwitch CI 46abaa
Open vSwitch CI a7040a
* Fri Apr 28 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-21
Open vSwitch CI a7040a
- Merging upstream branch-3.1 [RH git: 1bae2da8f7]
Open vSwitch CI a7040a
    Commit list:
Open vSwitch CI a7040a
    c6cb828870 tc: Fix cleaning chains.
Open vSwitch CI a7040a
Open vSwitch CI a7040a
Open vSwitch CI 6b16ed
* Thu Apr 27 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-20
Open vSwitch CI 6b16ed
- Merging upstream branch-3.1 [RH git: 107636a54b]
Open vSwitch CI 6b16ed
    Commit list:
Open vSwitch CI 6b16ed
    29c61a4024 python-stream: Handle SSL error in do_handshake.
Open vSwitch CI 6b16ed
Open vSwitch CI 6b16ed
Open vSwitch CI 7f2e72
* Tue Apr 25 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-19
Open vSwitch CI 7f2e72
- Merging upstream branch-3.1 [RH git: 50f8f99edc]
Open vSwitch CI 7f2e72
    Commit list:
Open vSwitch CI 7f2e72
    615548e532 dpif-netlink: Fix memory leak dpif_netlink_open().
Open vSwitch CI 7f2e72
    42edc9a1d5 ofp-parse: Check ranges on string to uint32_t conversion.
Open vSwitch CI 7f2e72
    d3a479c4b4 learning-switch: Fix coredump of OpenFlow15 learning-switch.
Open vSwitch CI 7f2e72
Open vSwitch CI 7f2e72
Open vSwitch CI db9a9b
* Mon Apr 24 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-18
Open vSwitch CI db9a9b
- Merging upstream branch-3.1 [RH git: 131742fa49]
Open vSwitch CI db9a9b
    Commit list:
Open vSwitch CI db9a9b
    9529e9aa96 ovsdb: Allow conversion records with no data in a clustered storage.
Open vSwitch CI db9a9b
    7006bb112b ovsdb: Check for ephemeral columns before writing a new schema.
Open vSwitch CI db9a9b
    27678b3a19 ovsdb-tool: Fix cluster-to-standalone for DB conversion records.
Open vSwitch CI db9a9b
Open vSwitch CI db9a9b
Open vSwitch CI bd45b6
* Tue Apr 11 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-17
Open vSwitch CI bd45b6
- Merging upstream branch-3.1 [RH git: 6064fd8c48]
Open vSwitch CI bd45b6
    Commit list:
Open vSwitch CI bd45b6
    771c989a9a ovs-tcpdump: Stdout is shutdown before ovs-tcpdump exit.
Open vSwitch CI bd45b6
Open vSwitch CI bd45b6
Open vSwitch CI bd45b6
* Thu Apr 06 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-16
Open vSwitch CI bd45b6
- Merging upstream branch-3.1 [RH git: 00ae3eef99]
Open vSwitch CI bd45b6
    Commit list:
Open vSwitch CI bd45b6
    8ac6375cac Prepare for 3.1.2.
Open vSwitch CI bd45b6
    0187eadfce Set release date for 3.1.1.
Open vSwitch CI bd45b6
Open vSwitch CI bd45b6
Open vSwitch CI bd45b6
* Thu Apr 06 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-15
Open vSwitch CI bd45b6
- Merging upstream branch-3.1 [RH git: 153731ce46]
Open vSwitch CI bd45b6
    Commit list:
Open vSwitch CI bd45b6
    61b39d8c47 ofproto-dpif-xlate: Always mask ip proto field. (#2134873)
Open vSwitch CI bd45b6
    8019b5896e conntrack-tp: Fix clang warning.
Open vSwitch CI bd45b6
Open vSwitch CI bd45b6
Open vSwitch CI aaf0be
* Tue Apr 04 2023 Timothy Redaelli <tredaelli@redhat.com> - 3.1.0-14
Open vSwitch CI aaf0be
- ofproto-dpif-xlate: Always mask ip proto field. [RH git: 492e7e5f38] (#2134873)
Open vSwitch CI aaf0be
    The ofproto layer currently treats nw_proto field as overloaded to mean
Open vSwitch CI aaf0be
    both that a proper nw layer exists, as well as the value contained in
Open vSwitch CI aaf0be
    the header for the nw proto.  However, this is incorrect behavior as
Open vSwitch CI aaf0be
    relevant standards permit that any value, including '0' should be treated
Open vSwitch CI aaf0be
    as a valid value.
Open vSwitch CI aaf0be
    
Open vSwitch CI aaf0be
    Because of this overload, when the ofproto layer builds action list for
Open vSwitch CI aaf0be
    a packet with nw_proto of 0, it won't build the complete action list that
Open vSwitch CI aaf0be
    we expect to be built for the packet.  That will cause a bad behavior
Open vSwitch CI aaf0be
    where all packets passing the datapath will fall into an incomplete
Open vSwitch CI aaf0be
    action set.
Open vSwitch CI aaf0be
    
Open vSwitch CI aaf0be
    The fix here is to unwildcard nw_proto, allowing us to preserve setting
Open vSwitch CI aaf0be
    actions for protocols which we know have support for the actions we
Open vSwitch CI aaf0be
    program.  This means that a traffic which contains nw_proto == 0 cannot
Open vSwitch CI aaf0be
    cause connectivity breakage with other traffic on the link.
Open vSwitch CI aaf0be
    
Open vSwitch CI aaf0be
    Reported-by: David Marchand <dmarchand@redhat.com>
Open vSwitch CI aaf0be
    Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=2134873
Open vSwitch CI aaf0be
    Acked-by: Ilya Maximets <i.maximets@ovn.org>
Open vSwitch CI aaf0be
    Signed-off-by: Aaron Conole <aconole@redhat.com>
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
* Mon Apr 03 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-13
Open vSwitch CI aaf0be
- Merging upstream branch-3.1 [RH git: bd072cf805]
Open vSwitch CI aaf0be
    Commit list:
Open vSwitch CI aaf0be
    b184a68a20 netdev-offload-tc: Del ufid mapping if device not exist.
Open vSwitch CI aaf0be
    037e2d9161 db-ctl-base: Partially revert b8bf410a5. (#2182767)
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
* Wed Mar 29 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-12
Open vSwitch CI aaf0be
- Merging upstream branch-3.1 [RH git: 156f12b12f]
Open vSwitch CI aaf0be
    Commit list:
Open vSwitch CI aaf0be
    fee5ea720 netdev-tc-offloads: Fix misaligned 8 byte read.
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
* Wed Mar 29 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-11
Open vSwitch CI aaf0be
- Merging dpdk submodule [RH git: 6381c14763]
Open vSwitch CI aaf0be
    Commit list:
Open vSwitch CI aaf0be
    3812e23f6b net/i40e: revert link status check on device start (#2173794)
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
* Mon Mar 27 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-10
Open vSwitch CI aaf0be
- Merging upstream branch-3.1 [RH git: 67119c752d]
Open vSwitch CI aaf0be
    Commit list:
Open vSwitch CI aaf0be
    fff04b838 ovs-thread: Fix cpus not read for the first 10s.
Open vSwitch CI aaf0be
    b2b467b3a dpif-netlink: Always create at least 1 handler.
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
* Wed Mar 22 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-9
Open vSwitch CI aaf0be
- Merging upstream branch-3.1 [RH git: 8e94eec75c]
Open vSwitch CI aaf0be
    Commit list:
Open vSwitch CI aaf0be
    0f30961e0 netdev-offload-tc: Fix parse_tc_flower_to_actions() reporting errors.
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
* Wed Mar 15 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-8
Open vSwitch CI aaf0be
- Merging upstream branch-3.1 [RH git: 4d763b8705]
Open vSwitch CI aaf0be
    Commit list:
Open vSwitch CI aaf0be
    3f50354a9 vswitch: Add missing documentation for "ct_flush" capability.
Open vSwitch CI aaf0be
    504f8c859 dpctl: Fix flush-conntrack with datapath as argument.
Open vSwitch CI aaf0be
    24b47072f ofproto-dpif-upcall: Wait for valid hw flow stats before applying min-revalidate-pps.
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
* Tue Mar 14 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-7
Open vSwitch CI aaf0be
- Merging upstream branch-3.1 [RH git: 299664e254]
Open vSwitch CI aaf0be
    Commit list:
Open vSwitch CI aaf0be
    9f9b4de38 system-traffic: Fix conntrack test cases which are failing with af_xdp.
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
* Mon Mar 06 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-6
Open vSwitch CI aaf0be
- Merging upstream branch-3.1 [RH git: b3975381cd]
Open vSwitch CI aaf0be
    Commit list:
Open vSwitch CI aaf0be
    dcdff1f42 netdev-windows: Add checking when creating netdev with system type on Windows
Open vSwitch CI aaf0be
    39a7a18c3 ofproto-dpif-upcall: Include hardware offloaded flows in total flows.
Open vSwitch CI aaf0be
    f7378bc7f ofproto-dpif-upcall: Reset ukey's last stats value if the datapath changed.
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
* Thu Mar 02 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-5
Open vSwitch CI aaf0be
- Merging upstream branch-3.1 [RH git: a954983882]
Open vSwitch CI aaf0be
    Commit list:
Open vSwitch CI aaf0be
    694c7b4e0 classifier: Fix missing masks on a final stage with ports trie.
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
* Tue Feb 28 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-4
Open vSwitch CI aaf0be
- Merging upstream branch-3.1 [RH git: 2cc76ba8ed]
Open vSwitch CI aaf0be
    Commit list:
Open vSwitch CI aaf0be
    87249e136 ofproto: Fix re-creation of tunnel backing interfaces on restart.
Open vSwitch CI aaf0be
Open vSwitch CI aaf0be
ef58f0
* Thu Feb 23 2023 Timothy Redaelli <tredaelli@redhat.com> - 3.1.0-3
ef58f0
- redhat: use git rev-parse instead of git name-rev [RH git: 03c7581609]
ef58f0
    Currenty, git name-rev --name-only HEAD is used in order to get the
ef58f0
    current branch, but it doesn't work correctly if a tag is created so use
ef58f0
    git rev-parse --symbolic-full-name --abbrev-ref instead.
Open vSwitch CI 6d8d2e
Open vSwitch CI 6d8d2e
ef58f0
* Tue Feb 21 2023 Open vSwitch CI <ovs-ci@redhat.com> - 3.1.0-2
ef58f0
- Merging upstream branch-3.1 [RH git: 55c87e48a3]
Open vSwitch CI 6d8d2e
    Commit list:
ef58f0
    cb4eecd01 conntrack: Fix conntrack_clean may access the same exp_list each time.
ef58f0
    372e1a835 ovs-actions: Correct typo in ovs-actions man page.
ef58f0
    9c34fc2f6 ofproto-ipfix: Use per-domain template timeouts.
ef58f0
    b72a7f925 Prepare for 3.1.1.
Open vSwitch CI 6d8d2e
Open vSwitch CI 6d8d2e
ef58f0
* Fri Feb 17 2023 Timothy Redaelli <tredaelli@redhat.com> - 3.1.0-1
ef58f0
- redhat: Use official 3.1.0 tarball [RH git: 1c4d3243b5]
110336
110336