test/pdump: add unit test for pdump library
authorNaga Suresh Somarowthu <naga.sureshx.somarowthu@intel.com>
Mon, 8 Oct 2018 12:12:47 +0000 (13:12 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 18 Jan 2019 01:33:29 +0000 (02:33 +0100)
Unit test cases are added for pdump library.
Primary process will act as server, forks a child secondary process.
Secondary process acts as client.
Server will do pdump init to serve any pdump client requests.
Server will create a vdev, send/receive packets continuously
in a separate thread.
Client will create virtual rings to receive the packet dump.
Client sends pdump enable/disable requests using either port/device id.
Packet flow direction can be tx/rx/tx&rx.
In Server, appropriate pdump callbacks are triggered,
when packets are transmitted/received.
Pdump packet is copied to client rings.

Signed-off-by: Naga Suresh Somarowthu <naga.sureshx.somarowthu@intel.com>
Reviewed-by: Reshma Pattan <reshma.pattan@intel.com>

No differences found