diff options
author | Marian Rotariu <marian.rotariu@freescale.com> | 2013-06-27 21:39:17 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-07-15 21:49:40 (GMT) |
commit | 2f367dee0d31fa33400f7378b03093cf87643674 (patch) | |
tree | 33d47ab75f5284af3d64820d98f98e3209aa6b3b /drivers/net/ethernet/freescale/dpa/dpaa_eth_unit_test.h | |
parent | cad948fa3296c470fe51c45d5b1861d142138c7a (diff) | |
download | linux-fsl-qoriq-2f367dee0d31fa33400f7378b03093cf87643674.tar.xz |
dpaa_eth: Fix unit tests
The unit tests will use the default pool as the buffer pool.
Because at bootup the pool is empty, buffer seeding and draining
must be provided around the tests.
Signed-off-by: Marian Rotariu <marian.rotariu@freescale.com>
Change-Id: I3cba65a13599e031dbfe14542699e7e74ac19c1c
Reviewed-on: http://git.am.freescale.net:8181/3206
Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com>
Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpa/dpaa_eth_unit_test.h')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_unit_test.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_unit_test.h b/drivers/net/ethernet/freescale/dpa/dpaa_eth_unit_test.h index 9c05e6b..21ee967 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_unit_test.h +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_unit_test.h @@ -34,6 +34,9 @@ #define DPAA_ETH_UNIT_TEST_H_ extern int dpa_max_frm; +extern struct dpa_bp *default_pool; +extern bool default_pool_seeded; +extern uint32_t default_buf_size; void dpa_unit_tests(struct net_device *net_dev); |