numam-dpdk/doc/guides/sample_app_ug/index.rst
Reshma Pattan caa7028276 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>
2016-06-16 23:40:21 +02:00

154 lines
5.0 KiB
ReStructuredText

.. BSD LICENSE
Copyright(c) 2010-2015 Intel Corporation. All rights reserved.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
* Neither the name of Intel Corporation nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Sample Applications User Guide
==============================
.. toctree::
:maxdepth: 2
:numbered:
intro
cmd_line
ethtool
exception_path
hello_world
skeleton
rxtx_callbacks
ip_frag
ipv4_multicast
ip_reassembly
kernel_nic_interface
keep_alive
l2_forward_crypto
l2_forward_job_stats
l2_forward_real_virtual
l2_forward_cat
l3_forward
l3_forward_power_man
l3_forward_access_ctrl
l3_forward_virtual
link_status_intr
load_balancer
multi_process
qos_metering
qos_scheduler
intel_quickassist
quota_watermark
timer
packet_ordering
vmdq_dcb_forwarding
vhost
netmap_compatibility
ip_pipeline
test_pipeline
dist_app
vm_power_management
tep_termination
proc_info
ptpclient
performance_thread
ipsec_secgw
pdump
**Figures**
:numref:`figure_exception_path_example` :ref:`figure_exception_path_example`
:numref:`figure_kernel_nic` :ref:`figure_kernel_nic`
:numref:`figure_l2_fwd_benchmark_setup_jobstats` :ref:`figure_l2_fwd_benchmark_setup_jobstats`
:numref:`figure_l2_fwd_virtenv_benchmark_setup_jobstats` :ref:`figure_l2_fwd_virtenv_benchmark_setup_jobstats`
:numref:`figure_l2_fwd_benchmark_setup` :ref:`figure_l2_fwd_benchmark_setup`
:numref:`figure_l2_fwd_virtenv_benchmark_setup` :ref:`figure_l2_fwd_virtenv_benchmark_setup`
:numref:`figure_l2_fwd_encrypt_flow` :ref:`figure_l2_fwd_encrypt_flow`
:numref:`figure_ipv4_acl_rule` :ref:`figure_ipv4_acl_rule`
:numref:`figure_example_rules` :ref:`figure_example_rules`
:numref:`figure_load_bal_app_arch` :ref:`figure_load_bal_app_arch`
:numref:`figure_sym_multi_proc_app` :ref:`figure_sym_multi_proc_app`
:numref:`figure_client_svr_sym_multi_proc_app` :ref:`figure_client_svr_sym_multi_proc_app`
:numref:`figure_master_slave_proc` :ref:`figure_master_slave_proc`
:numref:`figure_slave_proc_recov` :ref:`figure_slave_proc_recov`
:numref:`figure_qos_sched_app_arch` :ref:`figure_qos_sched_app_arch`
:numref:`figure_quickassist_block_diagram` :ref:`figure_quickassist_block_diagram`
:numref:`figure_pipeline_overview` :ref:`figure_pipeline_overview`
:numref:`figure_ring_pipeline_perf_setup` :ref:`figure_ring_pipeline_perf_setup`
:numref:`figure_threads_pipelines` :ref:`figure_threads_pipelines`
:numref:`figure_vmdq_dcb_example` :ref:`figure_vmdq_dcb_example`
:numref:`figure_qemu_virtio_net` :ref:`figure_qemu_virtio_net`
:numref:`figure_virtio_linux_vhost` :ref:`figure_virtio_linux_vhost`
:numref:`figure_vhost_net_arch` :ref:`figure_vhost_net_arch`
:numref:`figure_vhost_net_sample_app` :ref:`figure_vhost_net_sample_app`
:numref:`figure_tx_dpdk_testpmd` :ref:`figure_tx_dpdk_testpmd`
:numref:`figure_test_pipeline_app` :ref:`figure_test_pipeline_app`
:numref:`figure_dist_perf` :ref:`figure_dist_perf`
:numref:`figure_dist_app` :ref:`figure_dist_app`
:numref:`figure_vm_power_mgr_highlevel` :ref:`figure_vm_power_mgr_highlevel`
:numref:`figure_vm_power_mgr_vm_request_seq` :ref:`figure_vm_power_mgr_vm_request_seq`
:numref:`figure_overlay_networking` :ref:`figure_overlay_networking`
:numref:`figure_tep_termination_arch` :ref:`figure_tep_termination_arch`
:numref:`figure_ptpclient_highlevel` :ref:`figure_ptpclient_highlevel`
**Tables**
:numref:`table_qos_metering_1` :ref:`table_qos_metering_1`
:numref:`table_qos_scheduler_1` :ref:`table_qos_scheduler_1`
:numref:`table_test_pipeline_1` :ref:`table_test_pipeline_1`