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:
parent
174ddb8152
commit
5e41ab250d
@ -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>
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
1413
app/test/test_link_bonding_mode4.c
Normal file
1413
app/test/test_link_bonding_mode4.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user