291. ACL Test Plan¶
291.1. Overview¶
This document contains the test plan for DPDK ACL library via test-acl
application.
Ref links: https://doc.dpdk.org/guides/prog_guide/packet_classif_access_ctrl.html
291.1.1. Prerequisites¶
- Machine with AVX-512 ISA is required to test avx-512 speciific methods.
- test-acl rules and traces input files:
deps/test-acl-input.tar.gz
test-acl.sh
shell script provided with DPDK.
291.1.2. Test Case: scalar method¶
- Unpack deps/test-acl-input.tar.gz into temporary directory:
gzip -cd deps/test-acl-input.tar.gz | tar xfv -
- Launch the “run_tes.sh” script several times as follows:
for i in 15 16 17 18 23 24 25 31 32 33 34 35 47 48 51 255 256 257; do \
/bin/bash ${DPDK}/app/test-acl/test-acl.sh \
${DPDK}/<build>/app/dpdk-test-acl test-acl-input scalar ${i}; \
done 2>&1 | tee test-acl.out
- Remove temporary directory
test-acl-input
:
rm -rf test-acl-input
Pass criteria: no “FAILED
” present in the output.
291.1.3. Test Case: sse method¶
- Unpack deps/test-acl-input.tar.gz into temporary directory:
gzip -cd deps/test-acl-input.tar.gz | tar xfv -
- Launch the “run_tes.sh” script several times as follows:
for i in 15 16 17 18 23 24 25 31 32 33 34 35 47 48 51 255 256 257; do \
/bin/bash ${DPDK}/app/test-acl/test-acl.sh \
${DPDK}/<build>/app/dpdk-test-acl test-acl-input sse ${i}; \
done 2>&1 | tee test-acl.out
- Remove temporary directory
test-acl-input
:
rm -rf test-acl-input
Pass criteria: no “FAILED
” present in the output.
291.1.4. Test Case: avx2 method¶
- Unpack deps/test-acl-input.tar.gz into temporary directory:
gzip -cd deps/test-acl-input.tar.gz | tar xfv -
- Launch the “run_tes.sh” script several times as follows:
for i in 15 16 17 18 23 24 25 31 32 33 34 35 47 48 51 255 256 257; do \
/bin/bash ${DPDK}/app/test-acl/test-acl.sh \
${DPDK}/<build>/app/dpdk-test-acl test-acl-input avx2 ${i}; \
done 2>&1 | tee test-acl.out
- Remove temporary directory
test-acl-input
:
rm -rf test-acl-input
Pass criteria: no “FAILED
” present in the output.
291.1.5. Test Case: avx512x16 method¶
- Unpack deps/test-acl-input.tar.gz into temporary directory:
gzip -cd deps/test-acl-input.tar.gz | tar xfv -
- Launch the “run_tes.sh” script several times as follows:
for i in 15 16 17 18 23 24 25 31 32 33 34 35 47 48 51 255 256 257; do \
/bin/bash ${DPDK}/app/test-acl/test-acl.sh \
${DPDK}/<build>/app/dpdk-test-acl test-acl-input avx512x16 ${i}; \
done 2>&1 | tee test-acl.out
- Remove temporary directory
test-acl-input
:
rm -rf test-acl-input
Pass criteria: no “FAILED
” present in the output.
291.1.6. Test Case: avx512x32 method¶
- Unpack deps/test-acl-input.tar.gz into temporary directory:
gzip -cd deps/test-acl-input.tar.gz | tar xfv -
- Launch the “run_tes.sh” script several times as follows:
for i in 15 16 17 18 23 24 25 31 32 33 34 35 47 48 51 255 256 257; do \
/bin/bash ${DPDK}/app/test-acl/test-acl.sh \
${DPDK}/<build>/app/dpdk-test-acl test-acl-input avx512x32 ${i}; \
done 2>&1 | tee test-acl.out
- Remove temporary directory
test-acl-input
:
rm -rf test-acl-input
Pass criteria: no “FAILED
” present in the output.