Skip to content

Commit

Permalink
linux-dpdk: timer: use alternate dpdk timer API by default
Browse files Browse the repository at this point in the history
Change alternate DPDK timer API to be the default. This API matches better
to the ODP timer API. For example there is no limitation on which thread
creates the timers.

Signed-off-by: Matias Elo <[email protected]>
  • Loading branch information
MatiasElo committed Nov 1, 2023
1 parent 22bbc84 commit 600a8a5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,13 @@ jobs:
- if: ${{ failure() }}
uses: ./.github/actions/run-failure-log

Run_alternate_timer:
Run_old_timer:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}"
-e ODP_CONFIG_FILE=/odp/platform/linux-dpdk/test/alternate-timer.conf
-e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/check.sh
-e ODP_CONFIG_FILE=/odp/platform/linux-dpdk/test/default-timer.conf
-e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/check_validation.sh
- if: ${{ failure() }}
uses: ./.github/actions/run-failure-log

Expand Down
4 changes: 2 additions & 2 deletions config/odp-linux-dpdk.conf
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ timer: {
# accordingly.
inline_poll_interval_nsec = 500000

# Use experimental DPDK alternate timer API based implementation
alternate = 0
# Use DPDK alternate timer API based implementation
alternate = 1
}

ipsec: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ odp_implementation = "linux-dpdk"
config_file_version = "0.1.24"

timer: {
# Enable alternate DPDK timer implementation
alternate = 1
# Enable default DPDK timer implementation
alternate = 0
}

0 comments on commit 600a8a5

Please sign in to comment.