2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-22 09:58:01 +00:00

ci: Stop building OVS kernel module.

Remove kernel based github workflows since the OVS kernel driver is
no longer supported since Release 2.18

Co-authored-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
Greg Rose 2022-07-14 14:23:26 -07:00 committed by Ilya Maximets
parent 16bec677aa
commit b6941ca7b8
2 changed files with 3 additions and 44 deletions

View File

@ -91,9 +91,6 @@ function install_kernel()
sudo sed -i '/^# define __always_inline .*/i # undef __always_inline' \ sudo sed -i '/^# define __always_inline .*/i # undef __always_inline' \
/usr/include/x86_64-linux-gnu/sys/cdefs.h || true /usr/include/x86_64-linux-gnu/sys/cdefs.h || true
EXTRA_OPTS="${EXTRA_OPTS} --enable-afxdp" EXTRA_OPTS="${EXTRA_OPTS} --enable-afxdp"
else
EXTRA_OPTS="${EXTRA_OPTS} --with-linux=$(pwd)"
echo "Installed kernel source in $(pwd)"
fi fi
popd popd
} }
@ -187,20 +184,10 @@ function configure_ovs()
function build_ovs() function build_ovs()
{ {
local KERNEL=$1
configure_ovs $OPTS configure_ovs $OPTS
make selinux-policy make selinux-policy
# Only build datapath if we are testing kernel w/o running testsuite and
# AF_XDP support.
if [ "${KERNEL}" ] && ! [ "$AFXDP" ]; then
pushd datapath
make -j4 make -j4
popd
else
make -j4
fi
} }
if [ "$DEB_PACKAGE" ]; then if [ "$DEB_PACKAGE" ]; then
@ -270,8 +257,7 @@ if [ "$UBSAN" ]; then
CFLAGS_FOR_OVS="${CFLAGS_FOR_OVS} ${CFLAGS_UBSAN}" CFLAGS_FOR_OVS="${CFLAGS_FOR_OVS} ${CFLAGS_UBSAN}"
fi fi
save_OPTS="${OPTS} $*" OPTS="${EXTRA_OPTS} ${OPTS} $*"
OPTS="${EXTRA_OPTS} ${save_OPTS}"
if [ "$TESTSUITE" ]; then if [ "$TESTSUITE" ]; then
# 'distcheck' will reconfigure with required options. # 'distcheck' will reconfigure with required options.
@ -282,20 +268,7 @@ if [ "$TESTSUITE" ]; then
make distcheck -j4 CFLAGS="${CFLAGS_FOR_OVS}" \ make distcheck -j4 CFLAGS="${CFLAGS_FOR_OVS}" \
TESTSUITEFLAGS=-j4 RECHECK=yes TESTSUITEFLAGS=-j4 RECHECK=yes
else else
if [ -z "${KERNEL_LIST}" ]; then build_ovs ${KERNEL}; build_ovs
else
save_EXTRA_OPTS="${EXTRA_OPTS}"
for KERNEL in ${KERNEL_LIST}; do
echo "=============================="
echo "Building with kernel ${KERNEL}"
echo "=============================="
EXTRA_OPTS="${save_EXTRA_OPTS}"
install_kernel ${KERNEL}
OPTS="${EXTRA_OPTS} ${save_OPTS}"
build_ovs ${KERNEL}
make distclean
done
fi
fi fi
exit 0 exit 0

View File

@ -16,7 +16,6 @@ jobs:
DPDK: ${{ matrix.dpdk }} DPDK: ${{ matrix.dpdk }}
DPDK_SHARED: ${{ matrix.dpdk_shared }} DPDK_SHARED: ${{ matrix.dpdk_shared }}
KERNEL: ${{ matrix.kernel }} KERNEL: ${{ matrix.kernel }}
KERNEL_LIST: ${{ matrix.kernel_list }}
LIBS: ${{ matrix.libs }} LIBS: ${{ matrix.libs }}
M32: ${{ matrix.m32 }} M32: ${{ matrix.m32 }}
OPTS: ${{ matrix.opts }} OPTS: ${{ matrix.opts }}
@ -37,14 +36,11 @@ jobs:
- compiler: gcc - compiler: gcc
testsuite: test testsuite: test
kernel: 3.16
- compiler: clang - compiler: clang
testsuite: test testsuite: test
kernel: 3.16
asan: asan asan: asan
- compiler: clang - compiler: clang
testsuite: test testsuite: test
kernel: 3.16
ubsan: ubsan ubsan: ubsan
- compiler: gcc - compiler: gcc
@ -68,16 +64,6 @@ jobs:
testsuite: test testsuite: test
libs: -ljemalloc libs: -ljemalloc
- compiler: gcc
kernel_list: 5.8 5.5 5.4 4.19
- compiler: clang
kernel_list: 5.8 5.5 5.4 4.19
- compiler: gcc
kernel_list: 4.14 4.9 4.4 3.16
- compiler: clang
kernel_list: 4.14 4.9 4.4 3.16
- compiler: gcc - compiler: gcc
afxdp: afxdp afxdp: afxdp
kernel: 5.3 kernel: 5.3