Skip to content

Commit a141fa9

Browse files
SakoramzLukas
andauthored
Add: support for DPDK 25.03 (#1126)
- Add patches for DPDK 25.03, `0003-net-ice-revert-PF-ICE-rate-limit-to-non-queue-group-.patch` was dropped - align mt_ipv4_udp to two-byte boundary: `mt_ipv4_udp` has to be aligned after c14fba6 commit from DPDK. This commits adds alignment to `rte_ipv4_hdr` structure, which adds the same requirement to all structures that starts with `rte_ipv4_hdr`. - unhandled ret from rte_eth_link_get_nowait --------- Signed-off-by: Kasiewicz, Marek <[email protected]> Co-authored-by: zLukas <[email protected]>
1 parent 50dd763 commit a141fa9

25 files changed

+643
-32
lines changed

.github/workflows/afxdp_build.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
env:
1616
# Customize the env if
1717
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig:/usr/lib64/pkgconfig
18+
DPDK_VERSION: 25.03
1819

1920
permissions:
2021
contents: read
@@ -58,14 +59,27 @@ jobs:
5859
source: '.'
5960
extensions: 'hpp,h,cpp,c,cc'
6061

62+
- name: checkout dpdk repo
63+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
64+
with:
65+
repository: 'DPDK/dpdk'
66+
ref: v${{ env.DPDK_VERSION }}
67+
path: dpdk
6168
- name: Install the build dependency
6269
run: |
6370
apt-get update -y
6471
apt-get install -y sudo git gcc meson python3 python3-pyelftools pkg-config libnuma-dev libjson-c-dev libpcap-dev libgtest-dev libsdl2-dev libsdl2-ttf-dev libssl-dev
6572
apt-get install -y make m4 clang llvm zlib1g-dev libelf-dev libcap-ng-dev gcc-multilib
66-
apt-get install -y dpdk-dev
6773
apt-get install -y systemtap-sdt-dev
68-
74+
75+
- name: Build DPDK from source
76+
working-directory: dpdk
77+
run: |
78+
meson build
79+
ninja -C build
80+
cd build
81+
sudo ninja install
82+
6983
- name: Checkout xdp-tools
7084
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7185
with:
@@ -74,16 +88,19 @@ jobs:
7488
submodules: recursive
7589

7690
- name: Build and install xdp-tools
91+
working-directory: xdp-tools
7792
run: |
78-
cd xdp-tools && ./configure
93+
./configure
7994
make && sudo make install
8095
cd lib/libbpf/src && sudo make install
8196
8297
- name: Build
98+
working-directory: "${{ github.workspace }}"
8399
run: |
84100
./build.sh
85101
86102
- name: Build with debug
103+
working-directory: "${{ github.workspace }}"
87104
run: |
88105
rm build -rf
89106
./build.sh debug

.github/workflows/afxdp_build_with_gtest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919
env:
2020
# Customize the env if
2121
BUILD_TYPE: Release
22-
DPDK_VERSION: 23.11
22+
DPDK_VERSION: 25.03
2323
MTL_BUILD_DISABLE_USDT: true
2424

2525
permissions:

.github/workflows/codeql.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ on:
2424

2525
permissions:
2626
contents: read
27+
env:
28+
# Customize the env if
29+
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig:/usr/lib64/pkgconfig
30+
DPDK_VERSION: 25.03
2731

2832
jobs:
2933
analyze:
@@ -62,14 +66,27 @@ jobs:
6266
run: |
6367
sudo apt-get update --fix-missing -y
6468
sudo apt-get install --no-install-recommends -y sudo git gcc meson python3 python3-pyelftools pkg-config libnuma-dev libjson-c-dev libpcap-dev libgtest-dev libsdl2-dev libsdl2-ttf-dev libssl-dev llvm clang
65-
sudo apt-get install --no-install-recommends -y dpdk-dev systemtap-sdt-dev software-properties-common
69+
sudo apt-get install --no-install-recommends -y systemtap-sdt-dev software-properties-common
6670
71+
- name: checkout dpdk repo
72+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
73+
with:
74+
repository: 'DPDK/dpdk'
75+
ref: v${{ env.DPDK_VERSION }}
76+
path: dpdk
6777
- name: Git config
6878
run: |
6979
git config --global user.email "[email protected]"
7080
git config --global user.name "Your Name"
71-
81+
- name: Build DPDK from source
82+
working-directory: dpdk
83+
run: |
84+
meson build
85+
ninja -C build
86+
cd build
87+
sudo ninja install
7288
- name: Build
89+
working-directory: "${{ github.workspace }}"
7390
run: |
7491
./build.sh
7592

.github/workflows/dpdk_patches_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414

1515
env:
1616
# Customize the env if
17-
DPDK_VERSION: 23.11
17+
DPDK_VERSION: 25.03
1818

1919
permissions:
2020
contents: read

.github/workflows/gtest-bare-metal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ concurrency:
2525
env:
2626
# Customize the env if
2727
BUILD_TYPE: 'Release'
28-
DPDK_VERSION: '23.11'
28+
DPDK_VERSION: '25.03'
2929
# Bellow ENV variables are required to be defined on runner side:
3030
# TEST_PF_PORT_P: '0000:49:00.0'
3131
# TEST_PF_PORT_R: '0000:49:00.1'

.github/workflows/msys2_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
sys:
3939
- mingw64
4040
- ucrt64
41-
dpdk: [23.11, 23.07]
41+
dpdk: [25.03, 23.11]
4242
defaults:
4343
run:
4444
shell: msys2 {0}

.github/workflows/msys2_ffmpeg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
matrix:
1818
sys:
1919
- mingw64
20-
dpdk: [23.11]
20+
dpdk: [25.03]
2121
defaults:
2222
run:
2323
shell: msys2 {0}

.github/workflows/ubuntu_build.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ on:
1414

1515
permissions:
1616
contents: read
17-
17+
env:
18+
DPDK_VERSION: 25.03
1819
jobs:
1920
changes:
2021
runs-on: ubuntu-latest
@@ -54,20 +55,35 @@ jobs:
5455
source: '.'
5556
extensions: 'hpp,h,cpp,c,cc'
5657

58+
- name: checkout dpdk repo
59+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
60+
with:
61+
repository: 'DPDK/dpdk'
62+
ref: v${{ env.DPDK_VERSION }}
63+
path: dpdk
64+
5765
- name: Install the build dependency
5866
run: |
5967
apt-get update -y
6068
apt-get install -y sudo git gcc meson python3 python3-pyelftools pkg-config libnuma-dev libjson-c-dev libpcap-dev libgtest-dev libsdl2-dev libsdl2-ttf-dev libssl-dev systemtap-sdt-dev llvm clang
61-
apt-get install -y dpdk-dev
6269
apt-get install -y doxygen
6370
apt-get install -y make m4 clang llvm zlib1g-dev libelf-dev libcap-ng-dev libcap2-bin gcc-multilib
6471
72+
- name: Build DPDK from source
73+
working-directory: dpdk
74+
run: |
75+
meson build
76+
ninja -C build
77+
cd build
78+
sudo ninja install
6579
- name: Git config
80+
working-directory: "${{ github.workspace }}"
6681
run: |
6782
git config --global user.email "[email protected]"
6883
git config --global user.name "Your Name"
6984
7085
- name: Build
86+
working-directory: "${{ github.workspace }}"
7187
run: |
7288
./build.sh
7389

.github/workflows/validation-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ on:
106106

107107
env:
108108
BUILD_TYPE: 'Release'
109-
DPDK_VERSION: '23.11'
109+
DPDK_VERSION: '25.03'
110110
DPDK_REBUILD: 'false'
111111

112112
permissions:

.github/workflows/windows_build_with_gtest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919
env:
2020
# Customize the env if
2121
BUILD_TYPE: Release
22-
DPDK_VERSION: 23.11
22+
DPDK_VERSION: 25.03
2323
TEST_PORT_P: 0000:af:00.0
2424
TEST_PORT_R: 0000:af:00.1
2525
MSYSTEM: UCRT64

0 commit comments

Comments
 (0)