app/test: unit tests for bonding mode 4

This patch adds unit tests for mode 4. It is split into separate
file to avoid problems with other modes that does not need to
look into packets payload.
This patch includes also a modification of maximum number of ports
used in their tests for bonding modes 0-3 from 16 to 6.

Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
This commit is contained in:
Tomasz Kulasek 2015-02-13 11:38:14 +01:00 committed by Thomas Monjalon
parent 174ddb8152
commit 5e41ab250d
4 changed files with 1416 additions and 2 deletions

View File

@ -185,7 +185,7 @@ Link bonding
M: Declan Doherty <declan.doherty@intel.com>
F: lib/librte_pmd_bond/
F: doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst
F: app/test/test_link_bonding.c
F: app/test/test_link_bonding*
Linux KNI
M: Helin Zhang <helin.zhang@intel.com>

View File

@ -131,6 +131,7 @@ SRCS-y += virtual_pmd.c
SRCS-y += packet_burst_generator.c
SRCS-$(CONFIG_RTE_LIBRTE_ACL) += test_acl.c
SRCS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += test_link_bonding.c
SRCS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += test_link_bonding_mode4.c
SRCS-$(CONFIG_RTE_LIBRTE_PMD_RING) += test_pmd_ring.c
SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) += test_kvargs.c

View File

@ -57,7 +57,7 @@
#include "test.h"
#define TEST_MAX_NUMBER_OF_PORTS (16)
#define TEST_MAX_NUMBER_OF_PORTS (6)
#define RX_RING_SIZE 128
#define RX_FREE_THRESH 32

File diff suppressed because it is too large Load Diff