This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via ce93696c8c016fadb4d1b6cd6a7e203f135b1194 (commit) from 83eb1d9d4cabb56a6afd3b45b8db178d28cb7ea8 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit ce93696c8c016fadb4d1b6cd6a7e203f135b1194 Author: Petri Savolainen petri.savolainen@nokia.com Date: Tue Nov 26 16:01:58 2019 +0200
travis: add packet and packet IO align test
Test new packet/buffer/pktin alignment configuration file options. Uses pktio_run.sh to run packets through various pktio types.
Signed-off-by: Petri Savolainen petri.savolainen@nokia.com Reviewed-by: Matias Elo matias.elo@nokia.com
diff --git a/.travis.yml b/.travis.yml index e07fadf61..e75ec5dc6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -199,6 +199,19 @@ jobs: -e CONF="" -e ODP_CONFIG_FILE=/odp/platform/linux-generic/test/inline-timer.conf ${DOCKER_NAMESPACE}/travis-odp-lng-ubuntu_16.04 /odp/scripts/ci/check_inline_timer.sh + - stage: test + env: TEST=packet_align + install: + - true + compiler: gcc + script: + - if [ -z "${DOCKER_NAMESPACE}" ] ; then export DOCKER_NAMESPACE="opendataplane"; fi + - docker run --privileged -i -t + -v `pwd`:/odp --shm-size 8g + -e CC="${CC}" + -e CONF="" + -e ODP_CONFIG_FILE=/odp/platform/linux-generic/test/packet_align.conf + ${DOCKER_NAMESPACE}/travis-odp-lng-ubuntu_16.04 /odp/scripts/ci/check_pktio.sh - stage: test env: TEST=distcheck compiler: gcc diff --git a/platform/linux-generic/test/packet_align.conf b/platform/linux-generic/test/packet_align.conf new file mode 100644 index 000000000..5cae76f63 --- /dev/null +++ b/platform/linux-generic/test/packet_align.conf @@ -0,0 +1,21 @@ +# Mandatory fields +odp_implementation = "linux-generic" +config_file_version = "0.1.12" + +pool: { + pkt: { + # Non-zero, larger than cache line size, power of two value. + base_align = 128 + } + + buf: { + # Non-zero, larger than cache line size, power of two value. + min_align = 256 + } +} + +pktio: { + # Ethernet header offset is 2 bytes, so that Ethernet payload + # starts at 16 byte alignment. + pktin_frame_offset = 2 +} diff --git a/scripts/ci/check_pktio.sh b/scripts/ci/check_pktio.sh new file mode 100755 index 000000000..d82fe8aad --- /dev/null +++ b/scripts/ci/check_pktio.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e + +"`dirname "$0"`"/build_x86_64.sh + +cd "$(dirname "$0")"/../.. + +echo 1000 | tee /proc/sys/vm/nr_hugepages +mkdir -p /mnt/huge +mount -t hugetlbfs nodev /mnt/huge + +./platform/linux-generic/test/validation/api/pktio/pktio_run.sh + +umount /mnt/huge
-----------------------------------------------------------------------
Summary of changes: .travis.yml | 13 +++++++++++++ platform/linux-generic/test/packet_align.conf | 21 +++++++++++++++++++++ .../ci/{check_inline_timer.sh => check_pktio.sh} | 4 +--- 3 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 platform/linux-generic/test/packet_align.conf copy scripts/ci/{check_inline_timer.sh => check_pktio.sh} (51%)
hooks/post-receive