a93e80
# Copyright (C) 2009, 2010, 2013, 2014 Nicira Networks, Inc.
a93e80
#
a93e80
# Copying and distribution of this file, with or without modification,
a93e80
# are permitted in any medium without royalty provided the copyright
a93e80
# notice and this notice are preserved.  This file is offered as-is,
a93e80
# without warranty of any kind.
a93e80
#
a93e80
# If tests have to be skipped while building, specify the '--without check'
a93e80
# option. For example:
a93e80
# rpmbuild -bb --without check rhel/openvswitch-fedora.spec
a93e80
a93e80
# This defines the base package name's version.
a93e80
a93e80
%define pkgname openvswitch2.13
a93e80
a93e80
#%%global commit0 2a4f006c79c06628634490627ac72d8c76477e56
a93e80
#%%global date 20200121
a93e80
#%%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
a93e80
# DPDK commit
a93e80
#%%global commit1 ef8b7c505f10897621c0801d8ef3e961385246f8
a93e80
#%%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})
a93e80
a93e80
# Enable PIE, bz#955181
a93e80
%global _hardened_build 1
a93e80
a93e80
# RHEL-7 doesn't define _rundir macro yet
a93e80
# Fedora 15 onwards uses /run as _rundir
a93e80
%if 0%{!?_rundir:1}
a93e80
%define _rundir /run
a93e80
%endif
a93e80
a93e80
# FIXME Test "STP - flush the fdb and mdb when topology changed" fails on s390x
a93e80
# FIXME 2 tests fails on ppc64le. They will be hopefully fixed before official 2.11
a93e80
%ifarch %{ix86} x86_64 aarch64
39e7cd
%bcond_without check
a93e80
%else
a93e80
%bcond_with check
a93e80
%endif
a93e80
# option to run kernel datapath tests, requires building as root!
a93e80
%bcond_with check_datapath_kernel
a93e80
# option to build with libcap-ng, needed for running OVS as regular user
a93e80
%bcond_without libcapng
a93e80
# option to build with ipsec support
387d36
%bcond_without ipsec
a93e80
a93e80
# Build python2 (that provides python) and python3 subpackages on Fedora
a93e80
# Build only python3 (that provides python) subpackage on RHEL8
a93e80
# Build only python subpackage on RHEL7
a93e80
%if 0%{?rhel} > 7 || 0%{?fedora}
a93e80
# On RHEL8 Sphinx is included in buildroot
a93e80
%global external_sphinx 1
a93e80
%else
a93e80
# Don't use external sphinx (RHV doesn't have optional repositories enabled)
a93e80
%global external_sphinx 0
a93e80
%endif
a93e80
a93e80
Name: %{pkgname}
a93e80
Summary: Open vSwitch
a93e80
Group: System Environment/Daemons daemon/database/utilities
a93e80
URL: http://www.openvswitch.org/
a93e80
Version: 2.13.0
Open vSwitch CI ffdc71
Release: 96%{?commit0:.%{date}git%{shortcommit0}}%{?commit1:dpdk%{shortcommit1}}%{?dist}
a93e80
a93e80
# Nearly all of openvswitch is ASL 2.0.  The bugtool is LGPLv2+, and the
a93e80
# lib/sflow*.[ch] files are SISSL
a93e80
# datapath/ is GPLv2 (although not built into any of the binary packages)
a93e80
License: ASL 2.0 and LGPLv2+ and SISSL
a93e80
4b3b86
%define dpdkver %{?commit1}%{!?commit1:19.11}
a93e80
%define dpdkdir dpdk
a93e80
%define dpdksver %(echo %{dpdkver} | cut -d. -f-2)
a93e80
# NOTE: DPDK does not currently build for s390x
a93e80
# DPDK on aarch64 is not stable enough to be enabled in FDP
a93e80
%define dpdkarches x86_64 ppc64le
a93e80
a93e80
%if 0%{?commit0:1}
a93e80
Source: https://github.com/openvswitch/ovs/archive/%{commit0}.tar.gz#/openvswitch-%{shortcommit0}.tar.gz
a93e80
%else
a93e80
Source: https://github.com/openvswitch/ovs/archive/v%{version}.tar.gz#/openvswitch-%{version}.tar.gz
a93e80
%endif
a93e80
%if 0%{?commit1:1}
a93e80
Source10: https://git.dpdk.org/dpdk/snapshot/dpdk-%{dpdkver}.tar.xz
a93e80
%else
a93e80
Source10: https://fast.dpdk.org/rel/dpdk-%{dpdkver}.tar.xz
a93e80
%endif
a93e80
a93e80
%define docutilsver 0.12
a93e80
%define pygmentsver 1.4
a93e80
%define sphinxver   1.1.3
a93e80
Source100: https://pypi.io/packages/source/d/docutils/docutils-%{docutilsver}.tar.gz
a93e80
Source101: https://pypi.io/packages/source/P/Pygments/Pygments-%{pygmentsver}.tar.gz
a93e80
Source102: https://pypi.io/packages/source/S/Sphinx/Sphinx-%{sphinxver}.tar.gz
a93e80
a93e80
Source500: configlib.sh
a93e80
Source502: set_config.sh
a93e80
a93e80
# Important: source503 is used as the actual copy file
a93e80
# @TODO: this causes a warning - fix it?
a93e80
Source504: arm64-armv8a-linuxapp-gcc-config
a93e80
Source505: ppc_64-power8-linuxapp-gcc-config
a93e80
Source506: x86_64-native-linuxapp-gcc-config
a93e80
a93e80
Patch:     openvswitch-%{version}.patch
a93e80
a93e80
# The DPDK is designed to optimize througput of network traffic using, among
a93e80
# other techniques, carefully crafted assembly instructions.  As such it
a93e80
# needs extensive work to port it to other architectures.
a93e80
ExclusiveArch: x86_64 aarch64 ppc64le s390x
a93e80
a93e80
# Do not enable this otherwise YUM will break on any upgrade.
a93e80
# Provides: openvswitch
a93e80
Conflicts: openvswitch < 2.13
a93e80
Conflicts: openvswitch-dpdk < 2.13
e3b3b7
Conflicts: openvswitch2.10
e3b3b7
Conflicts: openvswitch2.11
e3b3b7
Conflicts: openvswitch2.12
a93e80
a93e80
# dpdk_mach_arch maps between rpm and dpdk arch name, often same as _target_cpu
a93e80
# dpdk_mach_tmpl is the config template dpdk_mach name, often "native"
a93e80
# dpdk_mach is the actual dpdk_mach name used in the dpdk make system
a93e80
%ifarch x86_64
a93e80
%define dpdk_mach_arch x86_64
a93e80
%define dpdk_mach_tmpl native
a93e80
%define dpdk_mach default
a93e80
%endif
a93e80
%ifarch aarch64
a93e80
%define dpdk_mach_arch arm64
a93e80
%define dpdk_mach_tmpl armv8a
a93e80
%define dpdk_mach armv8a
a93e80
%endif
a93e80
%ifarch ppc64le
a93e80
%define dpdk_mach_arch ppc_64
a93e80
%define dpdk_mach_tmpl power8
a93e80
%define dpdk_mach power8
a93e80
%endif
a93e80
a93e80
%define dpdktarget %{dpdk_mach_arch}-%{dpdk_mach_tmpl}-linuxapp-gcc
a93e80
a93e80
# FIXME Sphinx is used to generate some manpages, unfortunately, on RHEL, it's
a93e80
# in the -optional repository and so we can't require it directly since RHV
a93e80
# doesn't have the -optional repository enabled and so TPS fails
a93e80
%if %{external_sphinx}
a93e80
BuildRequires: python3-sphinx
a93e80
%else
a93e80
# Sphinx dependencies
a93e80
BuildRequires: python-devel
a93e80
BuildRequires: python-setuptools
a93e80
#BuildRequires: python2-docutils
a93e80
BuildRequires: python-jinja2
a93e80
BuildRequires: python-nose
a93e80
#BuildRequires: python2-pygments
a93e80
# docutils dependencies
a93e80
BuildRequires: python-imaging
a93e80
# pygments dependencies
a93e80
BuildRequires: python-nose
a93e80
%endif
a93e80
a93e80
BuildRequires: gcc gcc-c++ make
a93e80
BuildRequires: autoconf automake libtool
a93e80
BuildRequires: systemd-units openssl openssl-devel
a93e80
BuildRequires: python3-devel python3-setuptools
a93e80
BuildRequires: desktop-file-utils
a93e80
BuildRequires: groff-base graphviz
a93e80
BuildRequires: unbound-devel
a93e80
# make check dependencies
a93e80
BuildRequires: procps-ng
a93e80
%if 0%{?rhel} > 7 || 0%{?fedora}
a93e80
BuildRequires: python3-pyOpenSSL
a93e80
%endif
a93e80
%if %{with check_datapath_kernel}
a93e80
BuildRequires: nmap-ncat
a93e80
# would be useful but not available in RHEL or EPEL
a93e80
#BuildRequires: pyftpdlib
a93e80
%endif
a93e80
a93e80
%if %{with libcapng}
a93e80
BuildRequires: libcap-ng libcap-ng-devel
a93e80
%endif
a93e80
a93e80
%ifarch %{dpdkarches}
a93e80
# DPDK driver dependencies
a93e80
BuildRequires: zlib-devel numactl-devel
a93e80
%ifarch x86_64
a93e80
BuildRequires: rdma-core-devel >= 15 libmnl-devel
a93e80
%endif
a93e80
a93e80
# Required by packaging policy for the bundled DPDK
a93e80
Provides: bundled(dpdk) = %{dpdkver}
a93e80
%endif
a93e80
a93e80
Requires: openssl iproute module-init-tools
a93e80
#Upstream kernel commit 4f647e0a3c37b8d5086214128614a136064110c3
a93e80
#Requires: kernel >= 3.15.0-0
a93e80
Requires: openvswitch-selinux-extra-policy
a93e80
a93e80
Requires(pre): shadow-utils
a93e80
Requires(post): /bin/sed
a93e80
Requires(post): /usr/sbin/usermod
a93e80
Requires(post): /usr/sbin/groupadd
a93e80
Requires(post): systemd-units
a93e80
Requires(preun): systemd-units
a93e80
Requires(postun): systemd-units
a93e80
Obsoletes: openvswitch-controller <= 0:2.1.0-1
a93e80
a93e80
%description
a93e80
Open vSwitch provides standard network bridging functions and
a93e80
support for the OpenFlow protocol for remote per-flow control of
a93e80
traffic.
a93e80
a93e80
%package -n python3-%{pkgname}
a93e80
Summary: Open vSwitch python3 bindings
a93e80
License: ASL 2.0
a93e80
Requires: %{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
a93e80
Provides: python-%{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
a93e80
a93e80
%description -n python3-%{pkgname}
a93e80
Python bindings for the Open vSwitch database
a93e80
a93e80
%package test
a93e80
Summary: Open vSwitch testing utilities
a93e80
License: ASL 2.0
a93e80
BuildArch: noarch
a93e80
Requires: python3-%{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
a93e80
Requires: tcpdump
a93e80
a93e80
%description test
a93e80
Utilities that are useful to diagnose performance and connectivity
a93e80
issues in Open vSwitch setup.
a93e80
a93e80
%package devel
a93e80
Summary: Open vSwitch OpenFlow development package (library, headers)
a93e80
License: ASL 2.0
a93e80
Requires: %{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
a93e80
a93e80
%description devel
a93e80
This provides shared library, libopenswitch.so and the openvswitch header
a93e80
files needed to build an external application.
a93e80
a93e80
%if 0%{?rhel} > 7 || 0%{?fedora} > 28
a93e80
%package -n network-scripts-%{name}
a93e80
Summary: Open vSwitch legacy network service support
a93e80
License: ASL 2.0
a93e80
Requires: network-scripts
a93e80
Supplements: (%{name} and network-scripts)
a93e80
a93e80
%description -n network-scripts-%{name}
a93e80
This provides the ifup and ifdown scripts for use with the legacy network
a93e80
service.
a93e80
%endif
a93e80
a93e80
%if %{with ipsec}
a93e80
%package ipsec
a93e80
Summary: Open vSwitch IPsec tunneling support
a93e80
License: ASL 2.0
a93e80
Requires: python3-%{pkgname} = %{?epoch:%{epoch}:}%{version}-%{release}
a93e80
Requires: libreswan
a93e80
a93e80
%description ipsec
a93e80
This package provides IPsec tunneling support for OVS tunnels.
a93e80
%endif
a93e80
a93e80
%prep
a93e80
%if 0%{?commit0:1}
a93e80
%setup -q -n ovs-%{commit0} -a 10
a93e80
%else
a93e80
%setup -q -n ovs-%{version} -a 10
a93e80
%endif
a93e80
%if ! %{external_sphinx}
a93e80
%if 0%{?commit0:1}
a93e80
%setup -n ovs-%{commit0} -q -D -T -a 100 -a 101 -a 102
a93e80
%else
a93e80
%setup -n ovs-%{version} -q -D -T -a 100 -a 101 -a 102
a93e80
%endif
a93e80
%endif
a93e80
a93e80
mv dpdk-*/ %{dpdkdir}/
a93e80
a93e80
%patch -p1
a93e80
a93e80
%build
a93e80
# Build Sphinx on RHEL
a93e80
%if ! %{external_sphinx}
a93e80
export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}%{_builddir}/pytmp/lib/python"
a93e80
for x in docutils-%{docutilsver} Pygments-%{pygmentsver} Sphinx-%{sphinxver}; do
a93e80
    pushd "$x"
a93e80
    python2 setup.py install --home %{_builddir}/pytmp
a93e80
    popd
a93e80
done
a93e80
a93e80
export PATH="$PATH:%{_builddir}/pytmp/bin"
a93e80
%endif
a93e80
a93e80
%if 0%{?commit0:1}
a93e80
# fix the snapshot unreleased version to be the released one.
a93e80
sed -i.old -e "s/^AC_INIT(openvswitch,.*,/AC_INIT(openvswitch, %{version},/" configure.ac
a93e80
%endif
a93e80
./boot.sh
a93e80
a93e80
%ifarch %{dpdkarches}    # build dpdk
a93e80
# Lets build DPDK first
a93e80
cd %{dpdkdir}
a93e80
a93e80
# In case dpdk-devel is installed
a93e80
unset RTE_SDK RTE_INCLUDE RTE_TARGET
a93e80
a93e80
# Avoid appending second -Wall to everything, it breaks upstream warning
a93e80
# disablers in makefiles. Strip explicit -march= from optflags since they
a93e80
# will only guarantee build failures, DPDK is picky with that.
a93e80
# Note: _hardening_ldflags has to go on the extra cflags line because dpdk is
a93e80
# astoundingly convoluted in how it processes its linker flags.  Fixing it in
a93e80
# dpdk is the preferred solution, but adjusting to allow a gcc option in the
a93e80
# ldflags, even when gcc is used as the linker, requires large tree-wide changes
a93e80
touch obj.o
a93e80
gcc -### obj.o 2>&1 | awk '/.*collect2.*/ { print $0}' | sed -e 's/\S*\.res\S*//g' -e 's/-z \S*//g' -e 's/[^ ]*\.o//g' -e 's/ /\n/g' | sort -u > ./noopts.txt
a93e80
gcc -### $RPM_LD_FLAGS obj.o 2>&1 | awk '/.*collect2.*/ {print $0}' | sed -e 's/\S*\.res\S*//g' -e 's/-z \S*//g' -e 's/[^ ]*\.o//g' -e 's/ /\n/g' | sort -u > ./opts.txt
a93e80
EXTRA_RPM_LDFLAGS=$(comm -13 ./noopts.txt ./opts.txt)
a93e80
rm -f obj.o
a93e80
a93e80
export EXTRA_CFLAGS="$(echo %{optflags} | sed -e 's:-Wall::g' -e 's:-march=[[:alnum:]]* ::g') -Wformat -fPIC -fcommon %{_hardening_ldflags}"
a93e80
export EXTRA_LDFLAGS=$(echo %{__global_ldflags} | sed -e's/-Wl,//g' -e's/-spec.*//')
a93e80
export HOST_EXTRA_CFLAGS="$EXTRA_CFLAGS $EXTRA_RPM_LDFLAGS"
a93e80
export EXTRA_HOST_LDFLAGS="$EXTRA_RPM_LDFLAGS $(echo %{__global_ldflags} | sed -e's/-spec.*//')"
a93e80
a93e80
# DPDK defaults to using builder-specific compiler flags.  However,
a93e80
# the config has been changed by specifying CONFIG_RTE_MACHINE=default
a93e80
# in order to build for a more generic host.  NOTE: It is possible that
a93e80
# the compiler flags used still won't work for all Fedora-supported
a93e80
# dpdk_machs, but runtime checks in DPDK will catch those situations.
a93e80
a93e80
make V=1 O=%{dpdktarget} T=%{dpdktarget} %{?_smp_mflags} config
a93e80
a93e80
cp -f %{SOURCE500} %{SOURCE502} "%{_sourcedir}/%{dpdktarget}-config" .
a93e80
%{SOURCE502} %{dpdktarget}-config "%{dpdktarget}/.config"
a93e80
Open vSwitch CI ffdc71
# Currently RHEL8.3+ includes binutils 2.30 with the patch to fix AVX512 support backported (#1870039),
Open vSwitch CI ffdc71
# but DPDK 19.11 blindly disables AVX512 support if ld version < 2.32
Open vSwitch CI ffdc71
binutils_version=$(rpm -q --qf '%%{version}-%%{release}' binutils)
Open vSwitch CI ffdc71
if [ "$binutils_version" "<" "2.30-79.el8" ]; then
Open vSwitch CI ffdc71
    make V=1 O=%{dpdktarget} %{?_smp_mflags}
Open vSwitch CI ffdc71
else
Open vSwitch CI ffdc71
    make LD_VERSION=2.32 V=1 O=%{dpdktarget} %{?_smp_mflags}
Open vSwitch CI ffdc71
fi
a93e80
a93e80
# Generate a list of supported drivers, its hard to tell otherwise.
a93e80
cat << EOF > README.DPDK-PMDS
a93e80
DPDK drivers included in this package:
a93e80
a93e80
EOF
a93e80
a93e80
for f in $(ls %{dpdk_mach_arch}-%{dpdk_mach_tmpl}-linuxapp-gcc/lib/lib*_pmd_*); do
a93e80
    basename ${f} | cut -c12- | cut -d. -f1 | tr [:lower:] [:upper:]
a93e80
done >> README.DPDK-PMDS
a93e80
a93e80
cat << EOF >> README.DPDK-PMDS
a93e80
a93e80
For further information about the drivers, see
a93e80
http://dpdk.org/doc/guides-%{dpdksver}/nics/index.html
a93e80
EOF
a93e80
a93e80
cd -
a93e80
%endif    # build dpdk
a93e80
a93e80
# And now for OVS...
a93e80
mkdir build-shared build-static
a93e80
pushd build-shared
a93e80
ln -s ../configure
a93e80
%configure \
a93e80
%if %{with libcapng}
a93e80
        --enable-libcapng \
a93e80
%else
a93e80
        --disable-libcapng \
a93e80
%endif
a93e80
        --disable-static \
a93e80
        --enable-shared \
a93e80
        --enable-ssl \
a93e80
        --with-pkidir=%{_sharedstatedir}/openvswitch/pki
a93e80
make %{?_smp_mflags}
a93e80
popd
a93e80
pushd build-static
a93e80
ln -s ../configure
a93e80
%configure \
a93e80
%if %{with libcapng}
a93e80
        --enable-libcapng \
a93e80
%else
a93e80
        --disable-libcapng \
a93e80
%endif
a93e80
        --enable-ssl \
a93e80
%ifarch %{dpdkarches}
a93e80
        --with-dpdk=$(pwd)/../%{dpdkdir}/%{dpdktarget} \
a93e80
%endif
a93e80
        --with-pkidir=%{_sharedstatedir}/openvswitch/pki \
a93e80
        ac_cv_search_mlx5dv_create_wq=-lmlx5
a93e80
        # mlx5dv_create_wq was added in rdma-core 16 since it's the first
a93e80
        # officially released release that adds support for mlx offloading,
a93e80
        # but currently on RHEL 7.7 we still have rdma-core 15 (with the
a93e80
        # offloading commits backported) and so configure is not able to detect
a93e80
        # it.
a93e80
make %{?_smp_mflags}
a93e80
popd
a93e80
a93e80
/usr/bin/python3 build-aux/dpdkstrip.py \
a93e80
        --dpdk \
a93e80
        < rhel/usr_lib_systemd_system_ovs-vswitchd.service.in \
a93e80
        > rhel/usr_lib_systemd_system_ovs-vswitchd.service
a93e80
a93e80
%install
a93e80
rm -rf $RPM_BUILD_ROOT
a93e80
make -C build-shared install-libLTLIBRARIES DESTDIR=$RPM_BUILD_ROOT
a93e80
make -C build-static install DESTDIR=$RPM_BUILD_ROOT
a93e80
a93e80
install -d -m 0755 $RPM_BUILD_ROOT%{_rundir}/openvswitch
a93e80
install -d -m 0750 $RPM_BUILD_ROOT%{_localstatedir}/log/openvswitch
a93e80
install -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch
a93e80
a93e80
install -p -D -m 0644 rhel/usr_lib_udev_rules.d_91-vfio.rules \
a93e80
        $RPM_BUILD_ROOT%{_udevrulesdir}/91-vfio.rules
a93e80
a93e80
install -p -D -m 0644 \
a93e80
        rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
a93e80
        $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/openvswitch
a93e80
a93e80
for service in openvswitch ovsdb-server ovs-vswitchd \
a93e80
               ovs-delete-transient-ports; do
a93e80
        install -p -D -m 0644 \
a93e80
                        rhel/usr_lib_systemd_system_${service}.service \
a93e80
                        $RPM_BUILD_ROOT%{_unitdir}/${service}.service
a93e80
done
a93e80
a93e80
%if %{with ipsec}
a93e80
install -p -D -m 0644 rhel/usr_lib_systemd_system_openvswitch-ipsec.service \
a93e80
                      $RPM_BUILD_ROOT%{_unitdir}/openvswitch-ipsec.service
a93e80
%endif
a93e80
a93e80
install -m 0755 rhel/etc_init.d_openvswitch \
a93e80
        $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/openvswitch.init
a93e80
a93e80
install -p -D -m 0644 rhel/etc_openvswitch_default.conf \
a93e80
        $RPM_BUILD_ROOT/%{_sysconfdir}/openvswitch/default.conf
a93e80
a93e80
install -p -D -m 0644 rhel/etc_logrotate.d_openvswitch \
a93e80
        $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/openvswitch
a93e80
a93e80
install -m 0644 vswitchd/vswitch.ovsschema \
a93e80
        $RPM_BUILD_ROOT/%{_datadir}/openvswitch/vswitch.ovsschema
a93e80
a93e80
install -d -m 0755 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/
a93e80
install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifdown-ovs \
a93e80
        $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
a93e80
install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifup-ovs \
a93e80
        $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
a93e80
a93e80
install -d -m 0755 $RPM_BUILD_ROOT%{python3_sitelib}
a93e80
cp -a $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/ovstest \
a93e80
        $RPM_BUILD_ROOT%{python3_sitelib}
a93e80
a93e80
# Build the JSON C extension for the Python lib (#1417738)
a93e80
pushd python
a93e80
(
a93e80
export CPPFLAGS="-I ../include -I ../build-shared/include"
a93e80
export LDFLAGS="%{__global_ldflags} -L $RPM_BUILD_ROOT%{_libdir}"
a93e80
%py3_build
a93e80
%py3_install
387d36
[ -f "$RPM_BUILD_ROOT/%{python3_sitearch}/ovs/_json$(python3-config --extension-suffix)" ]
a93e80
)
a93e80
popd
a93e80
a93e80
rm -rf $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/
a93e80
a93e80
install -d -m 0755 $RPM_BUILD_ROOT/%{_sharedstatedir}/openvswitch
a93e80
a93e80
install -d -m 0755 $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/services/
a93e80
a93e80
install -p -D -m 0755 \
a93e80
        rhel/usr_share_openvswitch_scripts_ovs-systemd-reload \
a93e80
        $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/ovs-systemd-reload
a93e80
a93e80
touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db
e3b3b7
# The db needs special permission as IPsec Pre-shared keys are stored in it.
e3b3b7
chmod 0640 $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db
e3b3b7
a93e80
touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/system-id.conf
a93e80
a93e80
# remove unpackaged files
a93e80
rm -f $RPM_BUILD_ROOT/%{_bindir}/ovs-benchmark \
a93e80
        $RPM_BUILD_ROOT/%{_bindir}/ovs-docker \
a93e80
        $RPM_BUILD_ROOT/%{_bindir}/ovs-parse-backtrace \
a93e80
        $RPM_BUILD_ROOT/%{_bindir}/ovs-testcontroller \
a93e80
        $RPM_BUILD_ROOT/%{_sbindir}/ovs-vlan-bug-workaround \
a93e80
        $RPM_BUILD_ROOT/%{_mandir}/man1/ovs-benchmark.1* \
a93e80
        $RPM_BUILD_ROOT/%{_mandir}/man8/ovs-testcontroller.* \
a93e80
        $RPM_BUILD_ROOT/%{_mandir}/man8/ovs-vlan-bug-workaround.8*
a93e80
a93e80
%if ! %{with ipsec}
a93e80
rm -f $RPM_BUILD_ROOT/%{_datadir}/openvswitch/scripts/ovs-monitor-ipsec
a93e80
%endif
a93e80
a93e80
# remove ovn unpackages files
a93e80
rm -f $RPM_BUILD_ROOT%{_bindir}/ovn*
a93e80
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/ovn*
a93e80
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/ovn*
a93e80
rm -f $RPM_BUILD_ROOT%{_mandir}/man7/ovn*
a93e80
rm -f $RPM_BUILD_ROOT%{_mandir}/man8/ovn*
a93e80
rm -f $RPM_BUILD_ROOT%{_datadir}/openvswitch/ovn*
a93e80
rm -f $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/ovn*
a93e80
rm -f $RPM_BUILD_ROOT%{_includedir}/ovn/*
a93e80
a93e80
%check
a93e80
%if %{with check}
a93e80
    pushd build-static
a93e80
    touch resolv.conf
a93e80
    export OVS_RESOLV_CONF=$(pwd)/resolv.conf
a93e80
    if make check TESTSUITEFLAGS='%{_smp_mflags}' ||
a93e80
       make check TESTSUITEFLAGS='--recheck'; then :;
a93e80
    else
a93e80
        cat tests/testsuite.log
a93e80
        exit 1
a93e80
    fi
a93e80
    popd
a93e80
%endif
a93e80
%if %{with check_datapath_kernel}
a93e80
    pushd build-static
a93e80
    if make check-kernel RECHECK=yes; then :;
a93e80
    else
a93e80
        cat tests/system-kmod-testsuite.log
a93e80
        exit 1
a93e80
    fi
a93e80
    popd
a93e80
%endif
a93e80
a93e80
%clean
a93e80
rm -rf $RPM_BUILD_ROOT
a93e80
a93e80
%preun
a93e80
%if 0%{?systemd_preun:1}
a93e80
    %systemd_preun openvswitch.service
a93e80
%else
a93e80
    if [ $1 -eq 0 ] ; then
a93e80
    # Package removal, not upgrade
a93e80
        /bin/systemctl --no-reload disable openvswitch.service >/dev/null 2>&1 || :
a93e80
        /bin/systemctl stop openvswitch.service >/dev/null 2>&1 || :
a93e80
    fi
a93e80
%endif
a93e80
a93e80
%pre
a93e80
getent group openvswitch >/dev/null || groupadd -r openvswitch
a93e80
getent passwd openvswitch >/dev/null || \
a93e80
    useradd -r -g openvswitch -d / -s /sbin/nologin \
a93e80
    -c "Open vSwitch Daemons" openvswitch
a93e80
a93e80
%ifarch %{dpdkarches}
a93e80
    getent group hugetlbfs >/dev/null || groupadd hugetlbfs
a93e80
    usermod -a -G hugetlbfs openvswitch
a93e80
%endif
a93e80
exit 0
a93e80
a93e80
%post
a93e80
if [ $1 -eq 1 ]; then
a93e80
    sed -i 's:^#OVS_USER_ID=:OVS_USER_ID=:' /etc/sysconfig/openvswitch
a93e80
a93e80
%ifarch %{dpdkarches}
a93e80
    sed -i \
a93e80
        's@OVS_USER_ID="openvswitch:openvswitch"@OVS_USER_ID="openvswitch:hugetlbfs"@'\
a93e80
        /etc/sysconfig/openvswitch
a93e80
%endif
a93e80
fi
a93e80
chown -R openvswitch:openvswitch /etc/openvswitch
a93e80
a93e80
%if 0%{?systemd_post:1}
a93e80
    %systemd_post openvswitch.service
a93e80
%else
a93e80
    # Package install, not upgrade
a93e80
    if [ $1 -eq 1 ]; then
a93e80
        /bin/systemctl daemon-reload >dev/null || :
a93e80
    fi
a93e80
%endif
a93e80
a93e80
%postun
a93e80
%if 0%{?systemd_postun:1}
a93e80
    %systemd_postun openvswitch.service
a93e80
%else
a93e80
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
a93e80
%endif
a93e80
a93e80
%triggerun -- openvswitch < 2.5.0-22.git20160727%{?dist}
a93e80
# old rpm versions restart the service in postun, but
a93e80
# due to systemd some preparation is needed.
a93e80
if systemctl is-active openvswitch >/dev/null 2>&1 ; then
a93e80
    /usr/share/openvswitch/scripts/ovs-ctl stop >/dev/null 2>&1 || :
a93e80
    systemctl daemon-reload >/dev/null 2>&1 || :
a93e80
    systemctl stop openvswitch ovsdb-server ovs-vswitchd >/dev/null 2>&1 || :
a93e80
    systemctl start openvswitch >/dev/null 2>&1 || :
a93e80
fi
a93e80
exit 0
a93e80
a93e80
%files -n python3-%{pkgname}
a93e80
%{python3_sitearch}/ovs
a93e80
%{python3_sitearch}/ovs-*.egg-info
a93e80
%doc LICENSE
a93e80
a93e80
%files test
a93e80
%{_bindir}/ovs-pcap
a93e80
%{_bindir}/ovs-tcpdump
a93e80
%{_bindir}/ovs-tcpundump
a93e80
%{_mandir}/man1/ovs-pcap.1*
a93e80
%{_mandir}/man8/ovs-tcpdump.8*
a93e80
%{_mandir}/man1/ovs-tcpundump.1*
a93e80
%{_bindir}/ovs-test
a93e80
%{_bindir}/ovs-vlan-test
a93e80
%{_bindir}/ovs-l3ping
a93e80
%{_mandir}/man8/ovs-test.8*
a93e80
%{_mandir}/man8/ovs-vlan-test.8*
a93e80
%{_mandir}/man8/ovs-l3ping.8*
a93e80
%{python3_sitelib}/ovstest
a93e80
a93e80
%files devel
a93e80
%{_libdir}/*.so
a93e80
%{_libdir}/pkgconfig/*.pc
a93e80
%{_includedir}/openvswitch/*
a93e80
%{_includedir}/openflow/*
a93e80
%exclude %{_libdir}/*.a
a93e80
%exclude %{_libdir}/*.la
a93e80
a93e80
%if 0%{?rhel} > 7 || 0%{?fedora} > 28
a93e80
%files -n network-scripts-%{name}
a93e80
%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
a93e80
%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
a93e80
%endif
a93e80
a93e80
%files
a93e80
%defattr(-,openvswitch,openvswitch)
a93e80
%dir %{_sysconfdir}/openvswitch
a93e80
%{_sysconfdir}/openvswitch/default.conf
a93e80
%config %ghost %verify(not owner group md5 size mtime) %{_sysconfdir}/openvswitch/conf.db
a93e80
%ghost %attr(0600,-,-) %verify(not owner group md5 size mtime) %{_sysconfdir}/openvswitch/.conf.db.~lock~
a93e80
%config %ghost %{_sysconfdir}/openvswitch/system-id.conf
a93e80
%defattr(-,root,root)
a93e80
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/openvswitch
a93e80
%{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
a93e80
%{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
a93e80
%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
a93e80
%{_unitdir}/openvswitch.service
a93e80
%{_unitdir}/ovsdb-server.service
a93e80
%{_unitdir}/ovs-vswitchd.service
a93e80
%{_unitdir}/ovs-delete-transient-ports.service
a93e80
%{_datadir}/openvswitch/scripts/openvswitch.init
a93e80
%{_datadir}/openvswitch/scripts/ovs-check-dead-ifs
a93e80
%{_datadir}/openvswitch/scripts/ovs-lib
a93e80
%{_datadir}/openvswitch/scripts/ovs-save
a93e80
%{_datadir}/openvswitch/scripts/ovs-vtep
a93e80
%{_datadir}/openvswitch/scripts/ovs-ctl
a93e80
%{_datadir}/openvswitch/scripts/ovs-kmod-ctl
a93e80
%{_datadir}/openvswitch/scripts/ovs-systemd-reload
a93e80
%config %{_datadir}/openvswitch/vswitch.ovsschema
a93e80
%config %{_datadir}/openvswitch/vtep.ovsschema
a93e80
%{_bindir}/ovs-appctl
a93e80
%{_bindir}/ovs-dpctl
a93e80
%{_bindir}/ovs-ofctl
a93e80
%{_bindir}/ovs-vsctl
a93e80
%{_bindir}/ovsdb-client
a93e80
%{_bindir}/ovsdb-tool
a93e80
%{_bindir}/ovs-pki
a93e80
%{_bindir}/vtep-ctl
a93e80
%{_libdir}/*.so.*
a93e80
%{_sbindir}/ovs-vswitchd
a93e80
%{_sbindir}/ovsdb-server
a93e80
%{_mandir}/man1/ovsdb-client.1*
a93e80
%{_mandir}/man1/ovsdb-server.1*
a93e80
%{_mandir}/man1/ovsdb-tool.1*
a93e80
%{_mandir}/man5/ovsdb.5*
a93e80
%{_mandir}/man5/ovsdb-server.5.*
a93e80
%{_mandir}/man5/ovs-vswitchd.conf.db.5*
a93e80
%{_mandir}/man5/vtep.5*
a93e80
%{_mandir}/man7/ovsdb-server.7*
a93e80
%{_mandir}/man7/ovsdb.7*
a93e80
%{_mandir}/man7/ovs-actions.7*
a93e80
%{_mandir}/man7/ovs-fields.7*
a93e80
%{_mandir}/man8/vtep-ctl.8*
a93e80
%{_mandir}/man8/ovs-appctl.8*
a93e80
%{_mandir}/man8/ovs-ctl.8*
a93e80
%{_mandir}/man8/ovs-dpctl.8*
a93e80
%{_mandir}/man8/ovs-kmod-ctl.8.*
a93e80
%{_mandir}/man8/ovs-ofctl.8*
a93e80
%{_mandir}/man8/ovs-pki.8*
a93e80
%{_mandir}/man8/ovs-vsctl.8*
a93e80
%{_mandir}/man8/ovs-vswitchd.8*
a93e80
%{_mandir}/man8/ovs-parse-backtrace.8*
a93e80
%{_udevrulesdir}/91-vfio.rules
a93e80
%doc LICENSE NOTICE README.rst NEWS rhel/README.RHEL.rst
a93e80
%ifarch %{dpdkarches}
a93e80
%doc %{dpdkdir}/README.DPDK-PMDS
a93e80
%endif
a93e80
/var/lib/openvswitch
a93e80
%attr(750,openvswitch,openvswitch) %verify(not owner group) /var/log/openvswitch
a93e80
%ghost %attr(755,root,root) %verify(not owner group) %{_rundir}/openvswitch
a93e80
%{_datadir}/openvswitch/bugtool-plugins/
a93e80
%{_datadir}/openvswitch/scripts/ovs-bugtool-*
a93e80
%{_bindir}/ovs-dpctl-top
a93e80
%{_sbindir}/ovs-bugtool
a93e80
%{_mandir}/man8/ovs-dpctl-top.8*
a93e80
%{_mandir}/man8/ovs-bugtool.8*
a93e80
%if (0%{?rhel} && 0%{?rhel} <= 7) || (0%{?fedora} && 0%{?fedora} < 29)
a93e80
%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
a93e80
%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
a93e80
%endif
a93e80
a93e80
%if %{with ipsec}
a93e80
%files ipsec
a93e80
%{_datadir}/openvswitch/scripts/ovs-monitor-ipsec
a93e80
%{_unitdir}/openvswitch-ipsec.service
a93e80
%endif
a93e80
a93e80
%changelog
Open vSwitch CI ffdc71
* Tue Mar 16 2021 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-96
Open vSwitch CI ffdc71
- Merging upstream branch-2.13
Open vSwitch CI ffdc71
  [bb107a7f7f27a7f3ad77cebc15049606e63568c2]
Open vSwitch CI ffdc71
Open vSwitch CI ffdc71
* Mon Feb 15 2021 Eelco Chaudron <echaudro@redhat.com> - 2.13.0-95
Open vSwitch CI ffdc71
- conntrack: add generic IP protocol support
Open vSwitch CI ffdc71
  [6b3ca4b0282bb6e728066004fca47a0936e4b8c3]
39e7cd
Open vSwitch CI ffdc71
* Wed Feb 10 2021 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-94
Open vSwitch CI ffdc71
- Merging upstream branch-2.13
Open vSwitch CI ffdc71
  [8655a639ac7db93d02e3cd003cf5ae4f7acad10a]
Open vSwitch CI ffdc71
Open vSwitch CI ffdc71
* Fri Feb 05 2021 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-93
Open vSwitch CI ffdc71
- Merging upstream branch-2.13
Open vSwitch CI ffdc71
  [2100324b58f204f956a35e9827d2d72e4d20b7d9]
39e7cd
Open vSwitch CI ffdc71
* Thu Feb 04 2021 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-92
Open vSwitch CI ffdc71
- Merging upstream branch-2.13
Open vSwitch CI ffdc71
  [92b77d14894afeb17d2b139e75670aaa29853511]
Open vSwitch CI ffdc71
Open vSwitch CI ffdc71
* Wed Feb 03 2021 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-91
Open vSwitch CI ffdc71
- Merging upstream branch-2.13
Open vSwitch CI ffdc71
  [ea87c21ff21477eff945b07a755329f05d4466b7]
Open vSwitch CI ffdc71
Open vSwitch CI ffdc71
* Tue Feb 02 2021 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-90
39e7cd
- dpif-netdev: Add PMD auto load balance status log.
Open vSwitch CI ffdc71
  [4fd540d8efc8369c6af05e5e266bf418afade8d3]
39e7cd
Open vSwitch CI ffdc71
* Tue Feb 02 2021 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-89
39e7cd
- dpif-netdev: Add parameters to configure PMD auto load balance.
Open vSwitch CI ffdc71
  [5935f7a9d8754ff0b5fadbc835c65dea9cdf1434]
39e7cd
Open vSwitch CI ffdc71
* Tue Feb 02 2021 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-88
39e7cd
- dpif-netdev: Add log for PMD auto load balance interval parameter.
Open vSwitch CI ffdc71
  [a8f4696c200ee9f1786b66fe6c7d7da4caa9924c]
Open vSwitch CI ffdc71
Open vSwitch CI ffdc71
* Mon Feb 01 2021 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-87
Open vSwitch CI ffdc71
- Merging upstream branch-2.13
Open vSwitch CI ffdc71
  [d303f53850951fa26f6a832ffb2f437fcd4cf9f1]
Open vSwitch CI ffdc71
Open vSwitch CI ffdc71
* Fri Jan 29 2021 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-86
Open vSwitch CI ffdc71
- Merging upstream branch-2.13
Open vSwitch CI ffdc71
  [2986e0866ea3d2c5e9a4b4fd43e81e1477c03686]
Open vSwitch CI ffdc71
Open vSwitch CI ffdc71
* Thu Jan 28 2021 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-85
Open vSwitch CI ffdc71
- Merging upstream branch-2.13
Open vSwitch CI ffdc71
  [f2f6b58dd9df37438da9c7ef902decd613c787d6]
Open vSwitch CI ffdc71
Open vSwitch CI ffdc71
* Thu Jan 28 2021 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-84
Open vSwitch CI ffdc71
- redhat: Use a mock config based on the buildsystem target
Open vSwitch CI ffdc71
  [b820a7b8946c64749284b88538399dd2f9b411fe]
Open vSwitch CI ffdc71
Open vSwitch CI ffdc71
* Thu Jan 28 2021 Flavio Leitner <fbl@redhat.com> - 2.13.0-83
Open vSwitch CI ffdc71
- Merging b37528cef7 conntrack: Fix the icmp conntrack new state.
Open vSwitch CI ffdc71
  [dc913c7d4c23e792d4077c81bc65c025bc4c5f6c]
Open vSwitch CI ffdc71
Open vSwitch CI ffdc71
* Thu Jan 28 2021 Flavio Leitner <fbl@redhat.com> - 2.13.0-82
Open vSwitch CI ffdc71
- Merging f383000ca6 acinclude: Strip out -mno-avx512f provided ..
Open vSwitch CI ffdc71
  [304ba372e44e1f930d6a2134140db415d8d56922]
Open vSwitch CI ffdc71
Open vSwitch CI ffdc71
* Wed Jan 20 2021 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-81
Open vSwitch CI ffdc71
- Enable AVX512 support on binutils >= 2.30-79.el8
Open vSwitch CI ffdc71
  [8b3f9929026f45837b5670fade0ffde616fde5bc]
Open vSwitch CI ffdc71
Open vSwitch CI ffdc71
* Thu Jan 14 2021 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-80
Open vSwitch CI ffdc71
- Merging upstream branch-2.13
Open vSwitch CI ffdc71
  [b7a6e48410649f2d0029baaf499a5cf0619f4f34]
39e7cd
387d36
* Wed Jan 06 2021 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-79
387d36
- Merging upstream branch-2.13
387d36
  [86c9f9af773d8564a7d26e4e80fba389617fab17]
387d36
387d36
* Wed Dec 23 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-78
387d36
- Merging upstream branch-2.13
387d36
  [2cfb47639f7b1e375f9802ab0c8a03265eeb6b24]
387d36
387d36
* Fri Dec 04 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-77
387d36
- Merging upstream branch-2.13
387d36
  [350e017b667ea581716c2c2bc6157beeb1e7fdca]
387d36
387d36
* Fri Dec 04 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-76
387d36
- Merging upstream branch-2.13
387d36
  [ece49fb665132c11fe815ae13e2bf7ecd36d9c9d]
387d36
387d36
* Thu Dec 03 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-75
387d36
- Merging upstream branch-2.13
387d36
  [3e10785905d14d986f5721ede1c2235d1912ffba]
387d36
387d36
* Wed Dec 02 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-74
387d36
- Merging upstream branch-2.13
387d36
  [773fc1e75ba2b56c434caa43f9f78fda02d82f23]
387d36
387d36
* Thu Nov 19 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-73
387d36
- Fix building OVS on ppc64le and armv7hl with Python 3.9
387d36
  [a6928f88b26288fe7f8716f1e326b09d2fe4423b]
387d36
387d36
* Tue Nov 17 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-72
387d36
- redhat: Enable ipsec support (#1782141)
387d36
  [2c7306b51f559b492c2aed5baba63c41d06cf296]
387d36
e3b3b7
* Mon Nov 16 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-71
e3b3b7
- Merging upstream branch-2.13
e3b3b7
  [2aae1815250d0236b6ee7f074f864bf4d2af5537]
e3b3b7
e3b3b7
* Wed Nov 11 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-70
e3b3b7
- redhat: Fix conf.db permissions in the spec.
e3b3b7
  [46d36172986f80091292beb55e2124d1d7a80a6e]
e3b3b7
e3b3b7
* Wed Nov 11 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-69
e3b3b7
- Merging d43d10e10c netdev-offload-dpdk: Preserve HW statistics..
e3b3b7
  [a779495d0366223d2cdfd62ccd878ba68d6568df]
e3b3b7
e3b3b7
* Mon Nov 09 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-68
e3b3b7
- Merging dc5b4e8f69 ovs-bugtool: Fix crash when enable --ovs.
e3b3b7
  [de7f5508d74813425812e10fe2bf59d1770e1f23]
e3b3b7
e3b3b7
* Thu Nov 05 2020 Ilya Maximets <i.maximets@redhat.com> - 2.13.0-67
e3b3b7
- Merging upstream branch-2.13
e3b3b7
  [03753de14fe750a686db5eb0ce9a16df89e0d647]
e3b3b7
e3b3b7
* Wed Nov 04 2020 Ilya Maximets <i.maximets@redhat.com> - 2.13.0-66
e3b3b7
- Merging upstream branch-2.13
e3b3b7
  [373b7e9f5192ac2d757e6750e9468746d2f6c52f]
e3b3b7
e3b3b7
* Tue Oct 27 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-65
e3b3b7
- Merging upstream branch-2.13
e3b3b7
  [f9a054c1b5f25a501106bec2fb5b9cf1259ddca0]
e3b3b7
e3b3b7
* Sat Oct 24 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-64
e3b3b7
- Merging upstream branch-2.13
e3b3b7
  [73eb33dcf1bf45fb35c125e4573bf130bc181d16]
e3b3b7
e3b3b7
* Wed Oct 21 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-63
e3b3b7
- Merging upstream branch-2.13
e3b3b7
  [6f80f8c230dadd1c4c8a6830aab018271b79f66e]
e3b3b7
e3b3b7
* Wed Oct 21 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-62
e3b3b7
- redhat: Add conflicts for older versioned packages (#1886836)
e3b3b7
  [b1f563c73886c6bded2f4b076f52caa5b12cd026]
e3b3b7
e3b3b7
* Fri Oct 09 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-61
e3b3b7
- Merging upstream branch-2.13
e3b3b7
  [fa57a21817ef306b17d45fe9e64dda8ad86a806f]
e3b3b7
344ad0
* Wed Sep 16 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-60
344ad0
- Merging upstream branch-2.13
344ad0
  [38d21cf4eb02e273ef28b46e63bcf877d5a672ea]
344ad0
344ad0
* Thu Sep 10 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-59
344ad0
- Merging upstream branch-2.13
344ad0
  [4fbcdeb187628b2eedc607f45b70fdff68f7ea26]
344ad0
344ad0
* Thu Aug 27 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-58
344ad0
- Merging upstream branch-2.13
344ad0
  [d5817ddabf270b2fcfd9694746b382a0d040727c]
344ad0
4b3b86
* Wed Aug 26 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-57
4b3b86
- Merging upstream branch-2.13
4b3b86
  [2fe3a06bffcd907f8f6561ec0e56963de9766c97]
4b3b86
4b3b86
* Tue Aug 18 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-56
4b3b86
- dpdk: Updated configs to 19.11.3
4b3b86
  [4e4acaf40ab114e958b299cdff55c11240bfd4da]
4b3b86
4b3b86
* Tue Aug 18 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-55
4b3b86
- Merging 798524b5e3 version: 19.11.3 (#1868709)
4b3b86
  [64c883ec66425ad67a70599c549008442e3217cd]
4b3b86
4b3b86
* Thu Aug 13 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-54
4b3b86
- Merging upstream branch-2.13
4b3b86
  [5dddb2d4f863203ec3560fcfaf8f20844b053073]
4b3b86
4b3b86
* Mon Aug 10 2020 Open vSwitch CI <ovs-team@redhat.com> - 2.13.0-53
4b3b86
- Merging upstream branch-2.13
4b3b86
  [bb436c2999218e59e06f089b42e19d3778869c63]
4b3b86
4b3b86
* Mon Aug 10 2020 Dumitru Ceara <dceara@redhat.com> - 2.13.0-52
4b3b86
- ovsdb-server: Replace in-memory DB contents at raft install_snapshot. (#1867185)
4b3b86
  [9f646ec051fa2a2bf980843b7c1859479e87c228]
4b3b86
4b3b86
* Sat Aug 08 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-51
4b3b86
- redhat: Add support to custom RPM releases.
4b3b86
  [7eb5b56344c07f237b2883f655eeee9c1ea0535e]
4b3b86
4b3b86
* Sat Aug 08 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-50
4b3b86
- pkgtool: Use OVS static version in package NVR.
4b3b86
  [a0b572aaa173f2a4b4f57b8b396706777bf83395]
4b3b86
4b3b86
* Thu Jul 30 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-49
4b3b86
- odp-util: Fix clearing match mask if set action is partially unnecessary. (#1862153)
4b3b86
  [6d85fea8b4c7db954c051d0bad7bc9505c1fdf7c]
4b3b86
4b3b86
* Thu Jul 16 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-48
4b3b86
- redhat: Clean old changelog entries.
4b3b86
  [6cf8d909e81a715a302a2c401ef60abcc726fc78]
4b3b86
4b3b86
* Thu Jul 16 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-47
4b3b86
- redhat: Update the documentation.
4b3b86
  [c9571d2dad6b1e47ba1d398350d8cd101a93e6a7]
4b3b86
4b3b86
* Thu Jul 16 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-46
4b3b86
- redhat: Add merge script.
4b3b86
  [752c59ba745c3c82bc7ca1e31caefbc4b6514b07]
4b3b86
4b3b86
* Thu Jul 16 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-45
4b3b86
- redhat: Use static references.
4b3b86
  [f1025c1515c00e9ec8e1fbc3a5337c412a3ce0c8]
4b3b86
4b3b86
* Wed Jul 15 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-44
4b3b86
- Update DPDK configs to v19.11.2.
4b3b86
  [98e6e9823b54d5f7f52aa531a5479289a4fc40d7]
4b3b86
4b3b86
* Wed Jul 15 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-43
4b3b86
- Merge DPDK tag 'v19.11.2' into fast-datapath-rhel-8
4b3b86
  [755e86c61ae905a1485850f9e44a3502a63f52fb]
4b3b86
4b3b86
* Wed Jul 15 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-42
4b3b86
- Merging upstream branch-2.13 to fast-datapath-rhel-8
4b3b86
  [735b3f94c2655e930b0ee86556eb01191518f7e8]
4b3b86
4b3b86
* Sun Jul 12 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-41
4b3b86
- redhat: Rename OVSCI job name.
4b3b86
  [a61f1d1095e58fb7c2ad38d37b86f3012f5aecfe]
4b3b86
4b3b86
* Wed Jul 08 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-40
4b3b86
- redhat: pkgtool: use diff instead of format-patch
4b3b86
  [da2129ac827efe85db1e0ceeff8996e5045a862b]
4b3b86
a93e80
* Thu Jun 25 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-39
a93e80
- bus/pci: fix VF memory access (#1851169)
a93e80
  [2b22bcd9ad02d0180ad5c46a2cccf34a3afba600]
a93e80
a93e80
* Fri Jun 05 2020 Ilya Maximets <i.maximets@redhat.com> - 2.13.0-38
a93e80
- raft: Avoid sending equal snapshots. (#1834838)
a93e80
  [3168eba559cbce28937be4e785c3337030694455]
a93e80
a93e80
* Fri Jun 05 2020 Ilya Maximets <i.maximets@redhat.com> - 2.13.0-37
a93e80
- ovsdb-server: Fix schema leak while reading db. (#1834838)
a93e80
  [92a1e56c8a37927441fb1742e6054a9118654ef0]
a93e80
a93e80
* Fri Jun 05 2020 Ilya Maximets <i.maximets@redhat.com> - 2.13.0-36
a93e80
- ovsdb: Add raft memory usage to memory report. (#1834838)
a93e80
  [fb32a78921e50b1ffa0c52f873167f68622e8723]
a93e80
a93e80
* Tue Jun 02 2020 Aaron Conole <aconole@redhat.com> - 2.13.0-35
a93e80
- netdev-offload-tc: Re-fetch block ID after probing.
a93e80
  [d14e39f81bec29064a58df0177ce457765305f8b]
a93e80
a93e80
* Tue Jun 02 2020 Aaron Conole <aconole@redhat.com> - 2.13.0-34
a93e80
- netdev-linux: Update LAG in all cases.
a93e80
  [8b155475749cdb7a1817810d447e4cf6598cb6fa]
a93e80
a93e80
* Wed May 20 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-33
a93e80
- vhost: fix potential fd leak
a93e80
  [a9e6e358142634f1cd4d6555c5835f0062aa2a34]
a93e80
a93e80
* Wed May 20 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-32
a93e80
- vhost: fix potential memory space leak
a93e80
  [b39bac1377f5ece651b3ddb1485f6327036e7c38]
a93e80
a93e80
* Wed May 20 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-31
a93e80
- vhost: fix translated address not checked
a93e80
  [7da906164278fc5142607d5c94d20bb2b6e3ca8f]
a93e80
a93e80
* Wed May 20 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-30
a93e80
- vhost: fix vring index check
a93e80
  [7c4cfd12e3b2693b68ee995f65421577248c34d9]
a93e80
a93e80
* Wed May 20 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-29
a93e80
- vhost: check log mmap offset and size overflow
a93e80
  [517d8488dcf0ca7bb7f7db2fe8167389141aff9d]
a93e80
a93e80
* Fri May 15 2020 Dumitru Ceara <dceara@redhat.com> - 2.13.0-28
a93e80
- raft: Disable RAFT jsonrpc inactivity probe. (#1836308)
a93e80
  [3d9b529afb098531190d57d6f35d1622bb4093cd]
a93e80
a93e80
* Fri May 15 2020 Dumitru Ceara <dceara@redhat.com> - 2.13.0-27
a93e80
- raft: Fix leak of the incomplete command. (#1836307)
a93e80
  [5c38ccd52fb3925e82eda20f1897ec02abb390d9]
a93e80
a93e80
* Fri May 15 2020 Dumitru Ceara <dceara@redhat.com> - 2.13.0-26
a93e80
- raft: Fix the problem of stuck in candidate role forever. (#1836305)
a93e80
  [9c76350e271546eedfeb18720975e35b4e36e1f1]
a93e80
a93e80
* Fri May 15 2020 Dumitru Ceara <dceara@redhat.com> - 2.13.0-25
a93e80
- raft: Fix next_index in install_snapshot reply handling. (#1836305)
a93e80
  [cc3d02699203e2fe9d9fd384d09e268ba614828d]
a93e80
a93e80
* Fri May 15 2020 Dumitru Ceara <dceara@redhat.com> - 2.13.0-24
a93e80
- raft: Avoid busy loop during leader election. (#1836305)
a93e80
  [053b78c8d60ffb4d212fd7894f91be52027f291f]
a93e80
a93e80
* Fri May 15 2020 Dumitru Ceara <dceara@redhat.com> - 2.13.0-23
a93e80
- raft: Fix raft_is_connected() when there is no leader yet. (#1836305)
a93e80
  [e732012d7be335650398ff03c2431c64b2c4aaba]
a93e80
a93e80
* Fri May 15 2020 Dumitru Ceara <dceara@redhat.com> - 2.13.0-22
a93e80
- ovsdb-server: Don't disconnect clients after raft install_snapshot. (#1836305)
a93e80
  [8ff30dfee6cb075e36ed38b77695ff03321ce12b]
a93e80
a93e80
* Fri May 15 2020 Dumitru Ceara <dceara@redhat.com> - 2.13.0-21
a93e80
- raft-rpc: Fix message format. (#1836305)
a93e80
  [914d885061c9f7e7e6e5f921065301e08837e122]
a93e80
a93e80
* Wed Apr 22 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-20
a93e80
- redhat: pkgtool: Use the oldest sha1
a93e80
  [4c657a79de8221c769d4622ff4110b6aaccf938a]
a93e80
a93e80
* Mon Apr 20 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-19
a93e80
- Fix building locally on Fedora 32+
a93e80
  [d1c89e4d998507fcd18a1e94bc6459f016e6310e]
a93e80
a93e80
* Thu Apr 16 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-18
a93e80
- Set -fcommon in DPDK CFLAGS
a93e80
  [f8a379e95e8617d9371cd87bfa559fa14e88fc33]
a93e80
a93e80
* Thu Apr 16 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-17
a93e80
- Update DPDK config files for 19.11.1
a93e80
  [d771330907cee39a6c08409f866c3abcb9d90351]
a93e80
a93e80
* Thu Apr 16 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-16
a93e80
- Merge tag 'v19.11.1' into fast-datapath-rhel-8
a93e80
  [0b3abfb0e63fc2838c15eb119a1876f9691fd70e]
a93e80
a93e80
* Tue Apr 14 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-15
a93e80
- bugtool: Fix for Python3. (#1809241)
a93e80
  [71f25b7920093daa59827a0a4be4095309aec6ff]
a93e80
a93e80
* Tue Apr 07 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-14
a93e80
- redhat: Skip NVR check only if building rhel-8 on rhel-7.
a93e80
  [2b9f32bef20febced3dbcd85b6cb986b8475d121]
a93e80
a93e80
* Mon Apr 06 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-13
a93e80
- redhat: rh-dgit-brew: Skip NVR check in RHEL-7.
a93e80
  [6280d8d29ff80c38b076bae005b3a19ec2375bc7]
a93e80
a93e80
* Mon Apr 06 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-12
a93e80
- redhat: pkgtool: Use BZ id from reported-at tag.
a93e80
  [3ee7ec51b693eaf1715c0bbf8da2500405c7d8fe]
a93e80
a93e80
* Fri Mar 27 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-11
a93e80
- redhat: ovsci: Schedule the CI job while brew is building.
a93e80
  [1551e1e70e9ce98e61b9597f90c6c23b5dee6f1c]
a93e80
a93e80
* Tue Mar 24 2020 Flavio Leitner <fbl@redhat.com> - 2.13.0-10
a93e80
- redhat: ovsci: Use the correct job name and params.
a93e80
  [220f32afb2a3ce5437b6a502937cda7f887e9304]
a93e80
a93e80
* Mon Mar 23 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-9
a93e80
- Add compatibility with RHEL7 git
a93e80
  [34929957833d71263e072c24842eaba3d61ad235]
a93e80
a93e80
* Mon Mar 23 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-8
a93e80
- Use the date in UTC
a93e80
  [b53bdb16b8575fd3fbb28af2b704abd1eccb27d8]
a93e80
a93e80
* Mon Mar 23 2020 Numan Siddique <nusiddiq@redhat.com> - 2.13.0-7
a93e80
- ofproto-dpif-xlate: Fix recirculation when in_port is OFPP_CONTROLLER. (#1775160)
a93e80
  [4ee0f6af9e601cbb5f69a486526d1011314bbfed]
a93e80
a93e80
* Wed Mar 11 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-6
a93e80
- vhost: fix packed virtqueue ready condition (#1812620)
a93e80
  [0b4e7827b873c8a420171d840bde5d3c77a67e60]
a93e80
a93e80
* Thu Feb 27 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-5
a93e80
- redhat: permit make to fail when pkgtool --gen{spec,patches} exist badly
a93e80
  [61807f941ec5ddcbfb0cf1f4ba6a52d934c72f06]
a93e80
a93e80
* Tue Feb 25 2020 Timothy Redaelli <tredaelli@redhat.com> - 2.13.0-4
a93e80
- vhost: protect log address translation in IOTLB update (#1806599)
a93e80
  [0d4370404fa971cb07ca2bf9cb0cdf98ecc54d4b]
a93e80