[ovs-dev] [PATCH v10 12/14] dpdk-tests: Add unit-tests for multi-seg mbufs.
fbl at sysclose.org
Wed Oct 3 18:27:32 UTC 2018
On Fri, Sep 28, 2018 at 05:15:13PM +0100, Tiago Lam wrote:
> In order to create a minimal environment that allows the tests to get
> mbufs from an existing mempool, the following approach is taken:
> - EAL is initialised (by using the main dpdk_init()) and a (very) small
> mempool is instantiated (mimicking the logic in dpdk_mp_create()).
> This mempool instance is global and used by all the tests;
> - Packets are then allocated from the instantiated mempool, and tested
> on, by running some operations on them and manipulating data.
> The tests introduced focus on testing DPDK dp_packets (where
> source=DPBUF_DPDK), linked with a single or multiple mbufs, across
> several operations, such as:
> - dp_packet_put();
> - dp_packet_shift();
> - dp_packet_reserve();
> - dp_packet_push_uninit();
> - dp_packet_clear();
> - dp_packet_equal();
> - dp_packet_linear_data();
> - And as a consequence of some of these, dp_packet_put_uninit() and
> Finally, this has also been integrated with the new DPDK testsuite.
> Thus, when running `$sudo make check-dpdk` one will also be running
> these tests.
> Signed-off-by: Tiago Lam <tiago.lam at intel.com>
> Acked-by: Eelco Chaudron <echaudro at redhat.com>
Acked-by: Flavio Leitner <fbl at sysclose.org>
More information about the dev