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)
commit086eb64db39ee496e5bd89b0836d7eb5715ae558
tree027e16120398bc725f38c0a2aaaea98e79376af1
parent1e3676a06e4c20e37dfc176f212a486ef064f7c8
test/pdump: add unit test for pdump library

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>
MAINTAINERS
test/test/Makefile
test/test/autotest_data.py
test/test/meson.build
test/test/process.h
test/test/test.c
test/test/test_pdump.c [new file with mode: 0644]
test/test/test_pdump.h [new file with mode: 0644]