Skip to content

Commit ef366d8

Browse files
committed
ci: use vf for gtest (#214)
* ci: use vf for gtest Signed-off-by: Frank Du <[email protected]> (cherry picked from commit 0d58b50)
1 parent 6fca1a0 commit ef366d8

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.github/workflows/ubuntu_build_with_gtest.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ env:
3636
# Customize the env if
3737
BUILD_TYPE: Release
3838
DPDK_VERSION: 22.11
39-
TEST_PORT_P: 0000:31:00.0
40-
TEST_PORT_R: 0000:31:00.1
39+
TEST_PF_PORT_P: 0000:31:00.0
40+
TEST_PF_PORT_R: 0000:31:00.0
41+
TEST_PORT_P: 0000:31:01.0
42+
TEST_PORT_R: 0000:31:01.1
4143
TEST_DMA_PORT_P: 0000:00:01.0
4244
TEST_DMA_PORT_R: 0000:00:01.1
4345

@@ -97,8 +99,7 @@ jobs:
9799
98100
- name: Binding network adapter
99101
run: |
100-
sudo ./script/nicctl.sh bind_pmd ${{ env.TEST_PORT_P }} || true
101-
sudo ./script/nicctl.sh bind_pmd ${{ env.TEST_PORT_R }} || true
102+
sudo ./script/nicctl.sh create_vf ${{ env.TEST_PF_PORT_P }} || true
102103
sudo ./dpdk/usertools/dpdk-devbind.py -b vfio-pci ${{ env.TEST_DMA_PORT_P }} || true
103104
sudo ./dpdk/usertools/dpdk-devbind.py -b vfio-pci ${{ env.TEST_DMA_PORT_R }} || true
104105

.github/workflows/upl_rx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"wake_timeout_us" : "1000",
1212
"interfaces": [
1313
{
14-
"port": "0000:31:00.1",
14+
"port": "0000:31:01.1",
1515
"ip": "192.168.89.81",
1616
"netmask": "255.255.254.0",
1717
}

.github/workflows/upl_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ MUPL_RX_SIP=192.168.89.81 # define in MUPL_RX_CFG
1414
MTL_LD_PRELOAD=/usr/local/lib/x86_64-linux-gnu/libmtl_udp_preload.so
1515
TEST_BIN_PATH=build/app
1616

17-
TEST_TIME_SEC=120
17+
TEST_TIME_SEC=10
1818
SESSIONS_CNT=2
1919

2020
test_upl() {

.github/workflows/upl_tx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"wake_timeout_us" : "1000",
1212
"interfaces": [
1313
{
14-
"port": "0000:31:00.0",
14+
"port": "0000:31:01.0",
1515
"ip": "192.168.89.80",
1616
"netmask": "255.255.254.0",
1717
}

0 commit comments

Comments
 (0)