summaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@redhat.com>2022-09-02 10:36:58 +0200
committerIlya Maximets <i.maximets@ovn.org>2023-05-05 19:51:38 +0200
commit561e15fabd43613cb9c8a2d996c1dae6c16b4a0d (patch)
tree3a0eb3361d25f3cb30a1827680edcac41fe8aaf5 /.ci
parentad9aa2228e66b6f37a76bf84ce58886c2246acaf (diff)
downloadopenvswitch-561e15fabd43613cb9c8a2d996c1dae6c16b4a0d.tar.gz
ci: Check compilation with DPDK experimental API.dpdk-latest
Add jobs to check compilation with DPDK experimental API enabled. This will help us catch issues for the day we need one of them. Note: this should not be merged to master, intended for dpdk-latest branch only. Signed-off-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/linux-build.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh
index 99850a943..70826e285 100755
--- a/.ci/linux-build.sh
+++ b/.ci/linux-build.sh
@@ -7,6 +7,9 @@ CFLAGS_FOR_OVS="-g -O2"
SPARSE_FLAGS=""
EXTRA_OPTS="--enable-Werror"
+[ -z "$DPDK_EXPERIMENTAL" ] || DPDK=1
+[ -z "$DPDK_SHARED" ] || DPDK=1
+
function install_dpdk()
{
local VERSION_FILE="dpdk-dir/cached-version"
@@ -78,8 +81,11 @@ assert ovs.json.from_string('{\"a\": 42}') == {'a': 42}"
exit 0
fi
-if [ "$DPDK" ] || [ "$DPDK_SHARED" ]; then
+if [ "$DPDK" ]; then
install_dpdk
+ if [ -n "$DPDK_EXPERIMENTAL" ]; then
+ CFLAGS_FOR_OVS="${CFLAGS_FOR_OVS} -DALLOW_EXPERIMENTAL_API"
+ fi
fi
if [ "$CC" = "clang" ]; then