2012-09-04 12:54:00 +00:00
|
|
|
# BSD LICENSE
|
2014-06-03 23:42:50 +00:00
|
|
|
#
|
2017-01-17 22:23:51 +00:00
|
|
|
# Copyright(c) 2010-2017 Intel Corporation. All rights reserved.
|
2012-09-04 12:54:00 +00:00
|
|
|
# All rights reserved.
|
2014-06-03 23:42:50 +00:00
|
|
|
#
|
2013-09-18 10:00:00 +00:00
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
2012-09-04 12:54:00 +00:00
|
|
|
# are met:
|
2014-06-03 23:42:50 +00:00
|
|
|
#
|
2013-09-18 10:00:00 +00:00
|
|
|
# * Redistributions of source code must retain the above copyright
|
2012-09-04 12:54:00 +00:00
|
|
|
# notice, this list of conditions and the following disclaimer.
|
2013-09-18 10:00:00 +00:00
|
|
|
# * 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
|
2012-09-04 12:54:00 +00:00
|
|
|
# distribution.
|
2013-09-18 10:00:00 +00:00
|
|
|
# * Neither the name of Intel Corporation nor the names of its
|
|
|
|
# contributors may be used to endorse or promote products derived
|
2012-09-04 12:54:00 +00:00
|
|
|
# from this software without specific prior written permission.
|
2014-06-03 23:42:50 +00:00
|
|
|
#
|
2013-09-18 10:00:00 +00:00
|
|
|
# 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
|
2012-09-04 12:54:00 +00:00
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
2015-02-02 17:40:19 +00:00
|
|
|
DIRS-y += librte_compat
|
2012-09-04 12:54:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_eal
|
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_RING) += librte_ring
|
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += librte_mempool
|
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_MBUF) += librte_mbuf
|
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_TIMER) += librte_timer
|
2014-06-04 18:08:36 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_CFGFILE) += librte_cfgfile
|
2012-09-04 12:54:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_CMDLINE) += librte_cmdline
|
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_ETHER) += librte_ether
|
2015-11-25 13:25:12 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += librte_cryptodev
|
2014-10-08 18:54:59 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += librte_vhost
|
2012-09-04 12:54:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_HASH) += librte_hash
|
2017-01-17 22:23:51 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_EFD) += librte_efd
|
2012-09-04 12:54:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_LPM) += librte_lpm
|
2014-06-13 11:26:50 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_ACL) += librte_acl
|
2012-09-04 12:54:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_NET) += librte_net
|
2014-05-28 17:32:35 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += librte_ip_frag
|
2015-02-24 16:33:23 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_JOBSTATS) += librte_jobstats
|
2013-06-03 00:00:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_POWER) += librte_power
|
2013-06-03 00:00:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_METER) += librte_meter
|
2013-06-03 00:00:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += librte_sched
|
2014-01-28 16:06:34 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_KVARGS) += librte_kvargs
|
2014-05-29 10:12:14 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += librte_distributor
|
2014-06-04 18:08:19 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PORT) += librte_port
|
2014-06-04 18:08:27 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_TABLE) += librte_table
|
2014-06-04 18:08:35 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PIPELINE) += librte_pipeline
|
2015-02-18 14:58:13 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_REORDER) += librte_reorder
|
pdump: add new library for packet capture
The librte_pdump library provides a framework for
packet capturing in dpdk. The library provides set of
APIs to initialize the packet capture framework, to
enable or disable the packet capture, and to uninitialize
it.
The librte_pdump library works on a client/server model.
The server is responsible for enabling or disabling the
packet capture and the clients are responsible
for requesting the enabling or disabling of the packet
capture.
Enabling APIs are supported with port, queue, ring and
mempool parameters. Applications should pass on this information
to get the packets from the dpdk ports.
For enabling requests from applications, library creates the client
request containing the mempool, ring, port and queue information and
sends the request to the server. After receiving the request, server
registers the Rx and Tx callbacks for all the port and queues.
After the callbacks registration, registered callbacks will get the
Rx and Tx packets. Packets then will be copied to the new mbufs that
are allocated from the user passed mempool. These new mbufs then will
be enqueued to the application passed ring. Applications need to dequeue
the mbufs from the rings and direct them to the devices like
pcap vdev for viewing the packets outside of the dpdk
using the packet capture tools.
For disabling requests, library creates the client request containing
the port and queue information and sends the request to the server.
After receiving the request, server removes the Rx and Tx callback
for all the port and queues.
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2016-06-15 14:06:22 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PDUMP) += librte_pdump
|
2012-09-04 12:54:00 +00:00
|
|
|
|
2012-12-19 23:00:00 +00:00
|
|
|
ifeq ($(CONFIG_RTE_EXEC_ENV_LINUXAPP),y)
|
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_KNI) += librte_kni
|
|
|
|
endif
|
|
|
|
|
2012-09-04 12:54:00 +00:00
|
|
|
include $(RTE_SDK)/mk/rte.subdir.mk
|