On 28 Jun 2018, at 17:41, 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();
> - And as a consequence of some of these, dp_packet_put_uninit() and
> dp_packet_resize__().
>
> 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 <[email protected]>
Did a quick review, no tests of the test code, and it looks good to me.
Acked-by: Eelco Chaudron <[email protected]>
<SNIP>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev