Skip to content

Commit 04589bb

Browse files
david-marchandkevintraynor
authored andcommitted
ci: Check compilation with DPDK experimental API.
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 <[email protected]> Signed-off-by: Ian Stokes <[email protected]> Signed-off-by: Ilya Maximets <[email protected]>
1 parent 468fdda commit 04589bb

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.ci/linux-build.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ SPARSE_FLAGS=""
88
EXTRA_OPTS="--enable-Werror"
99
JOBS=${JOBS:-"-j4"}
1010

11+
[ -z "$DPDK_EXPERIMENTAL" ] || DPDK=1
12+
[ -z "$DPDK_SHARED" ] || DPDK=1
13+
1114
function install_dpdk()
1215
{
1316
local DPDK_INSTALL_DIR="$(pwd)/dpdk-dir"
@@ -108,8 +111,11 @@ assert ovs.json.from_string('{\"a\": 42}') == {'a': 42}"
108111
exit 0
109112
fi
110113

111-
if [ "$DPDK" ] || [ "$DPDK_SHARED" ]; then
114+
if [ "$DPDK" ]; then
112115
install_dpdk
116+
if [ -n "$DPDK_EXPERIMENTAL" ]; then
117+
CFLAGS_FOR_OVS="${CFLAGS_FOR_OVS} -DALLOW_EXPERIMENTAL_API"
118+
fi
113119
fi
114120

115121
if [ "$STD" ]; then

.github/workflows/build-and-test.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ jobs:
141141
CC: ${{ matrix.compiler }}
142142
DPDK: ${{ matrix.dpdk }}
143143
DPDK_SHARED: ${{ matrix.dpdk_shared }}
144+
DPDK_EXPERIMENTAL: ${{ matrix.dpdk_experimental }}
144145
LIBS: ${{ matrix.libs }}
145146
M32: ${{ matrix.m32 }}
146147
OPTS: ${{ matrix.opts }}
@@ -218,6 +219,9 @@ jobs:
218219
dpdk_shared: dpdk-shared
219220
opts: --enable-shared
220221

222+
- compiler: gcc
223+
dpdk_experimental: dpdk-experimental
224+
221225
- compiler: gcc
222226
m32: m32
223227
opts: --disable-ssl
@@ -280,7 +284,7 @@ jobs:
280284
python-version: ${{ env.python_default }}
281285

282286
- name: DPDK cache
283-
if: matrix.dpdk != '' || matrix.dpdk_shared != ''
287+
if: matrix.dpdk != '' || matrix.dpdk_shared != '' || matrix.dpdk_experimental != ''
284288
uses: actions/cache@v4
285289
with:
286290
path: dpdk-dir

0 commit comments

Comments
 (0)