app/pdump: add tool for packet capturing
authorReshma Pattan <reshma.pattan@intel.com>
Wed, 15 Jun 2016 14:06:23 +0000 (15:06 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 16 Jun 2016 21:40:21 +0000 (23:40 +0200)
commitcaa7028276b85a4b25431cdd471438faf82793f6
treebab723f8cc37b60fac2327f65b1cc6c67b0c7081
parent278f945402c55497c614de3f46b1a7660782eaf9
app/pdump: add tool for packet capturing

The new pdump tool is added for packet capturing on dpdk.
This tool runs as secondary process by default.
Tool facilitates the command line options like
port, device_id, queue which user should pass on
to the tool to request the packet capture on those devices.

Tool creates the rte ring, mempool and pcap vdev and
calls the enable API of the pdump library with port/device_id,
queue, ring and mempool as arguments to enable the packet
capture on specific devices and gets the packets from the
primary process over the ring. Once the packets are
received, those packets will be send to the pcap vdev.

Tool can be terminated by using ctrl+c(SIGINT) upon which tool
calls the disable API of the pdump library to disable the packet capture
and dequeues the rest of the packets from the ring and sends them on
to the pcap vdev, then after releases all allocated resources.

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
MAINTAINERS
app/Makefile
app/pdump/Makefile [new file with mode: 0644]
app/pdump/main.c [new file with mode: 0644]
doc/guides/rel_notes/release_16_07.rst
doc/guides/sample_app_ug/index.rst
doc/guides/sample_app_ug/pdump.rst [new file with mode: 0644]