Skip to content

Commit b742ded

Browse files
authored
PF ports adjustment for CiCd runner (#1052)
PF ports adjustment for CiCd runner JSON file fixes to reflect the changes Signed-off-by: Milosz Linkiewicz <[email protected]>
1 parent 375536a commit b742ded

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

.github/workflows/ubuntu_build_with_gtest.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ env:
2020
# Customize the env if
2121
BUILD_TYPE: Release
2222
DPDK_VERSION: 23.11
23-
TEST_PF_PORT_P: 0000:af:00.0
24-
TEST_PF_PORT_R: 0000:af:00.0
25-
TEST_PORT_P: 0000:af:01.2
26-
TEST_PORT_R: 0000:af:01.3
23+
TEST_PF_PORT_P: "0000:49:00.0"
24+
TEST_PF_PORT_R: "0000:49:00.0"
25+
TEST_PORT_P: "0000:49:01.2"
26+
TEST_PORT_R: "0000:49:01.3"
2727
TEST_DMA_PORT_P: 0000:80:04.0
2828
TEST_DMA_PORT_R: 0000:80:04.1
2929

@@ -39,7 +39,7 @@ jobs:
3939
changed: ${{ steps.filter.outputs.linux_gtest == 'true' }}
4040
steps:
4141
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
42-
42+
4343
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v2
4444
id: filter
4545
with:
@@ -57,7 +57,7 @@ jobs:
5757
with:
5858
egress-policy: audit
5959

60-
- name: Checkout IMTL
60+
- name: Checkout MTL
6161
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
6262

6363
- name: Checkout DPDK
@@ -74,8 +74,7 @@ jobs:
7474
7575
- name: Apply dpdk patches
7676
run: |
77-
cd dpdk
78-
git am ../patches/dpdk/${{ env.DPDK_VERSION }}/*.patch
77+
patch -d "dpdk" -p1 -i <(cat patches/dpdk/${{ env.DPDK_VERSION }}/*.patch)
7978
8079
- name: Build dpdk
8180
run: |
@@ -135,7 +134,7 @@ jobs:
135134
136135
- name: Run udp ld preload test case
137136
run: |
138-
sudo MUFD_CFG=.github/workflows/upl_gtest.json LD_PRELOAD=/usr/local/lib/x86_64-linux-gnu/libmtl_udp_preload.so ./build/tests/KahawaiUplTest --p_sip 192.168.89.80 --r_sip 192.168.89.81
137+
sudo MUFD_CFG=.github/workflows/upl_gtest.json LD_PRELOAD=/usr/local/lib/x86_64-linux-gnu/libmtl_udp_preload.so ./build/tests/KahawaiUplTest --p_sip 192.168.2.80 --r_sip 192.168.2.81
139138
140139
- name: Run st2110 test case
141140
run: |
@@ -147,4 +146,4 @@ jobs:
147146
148147
- name: Run st2110 st20p test case with kernel loopback
149148
run: |
150-
./build/tests/KahawaiTest --p_port kernel:lo --r_port kernel:lo --auto_start_stop --gtest_filter=St20p*
149+
./build/tests/KahawaiTest --p_port kernel:lo --r_port kernel:lo --auto_start_stop --gtest_filter=St20p*

.github/workflows/upl_gtest.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
"wake_timeout_us" : "1000",
1212
"interfaces": [
1313
{
14-
"port": "0000:af:01.0",
15-
"ip": "192.168.89.80",
16-
"netmask": "255.255.254.0",
14+
"port": "0000:49:01.0",
15+
"ip": "192.168.2.80",
16+
"netmask": "255.255.255.0"
1717
},
1818
{
19-
"port": "0000:af:01.1",
20-
"ip": "192.168.89.81",
21-
"netmask": "255.255.254.0",
19+
"port": "0000:49:01.1",
20+
"ip": "192.168.2.81",
21+
"netmask": "255.255.255.0"
2222
}
23-
],
23+
]
2424
}

0 commit comments

Comments
 (0)