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
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_ring := librte_eal
|
2012-09-04 12:54:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += librte_mempool
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_mempool := librte_eal librte_ring
|
2012-09-04 12:54:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_MBUF) += librte_mbuf
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_mbuf := librte_eal librte_mempool
|
2012-09-04 12:54:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_TIMER) += librte_timer
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_timer := librte_eal
|
2014-06-04 18:08:36 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_CFGFILE) += librte_cfgfile
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_cfgfile := librte_eal
|
2012-09-04 12:54:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_CMDLINE) += librte_cmdline
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_cmdline := librte_eal
|
2012-09-04 12:54:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_ETHER) += librte_ether
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_ether := librte_net librte_eal librte_mempool librte_ring
|
|
|
|
DEPDIRS-librte_ether += librte_mbuf
|
2015-11-25 13:25:12 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += librte_cryptodev
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_cryptodev := librte_eal librte_mempool librte_ring librte_mbuf
|
|
|
|
DEPDIRS-librte_cryptodev += librte_kvargs
|
2016-12-06 01:51:46 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_EVENTDEV) += librte_eventdev
|
2017-01-31 16:14:19 +00:00
|
|
|
DEPDIRS-librte_eventdev := librte_eal
|
2014-10-08 18:54:59 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += librte_vhost
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_vhost := librte_eal librte_mempool librte_mbuf librte_ether
|
2012-09-04 12:54:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_HASH) += librte_hash
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_hash := librte_eal librte_ring
|
2017-01-17 22:23:51 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_EFD) += librte_efd
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_efd := librte_eal librte_ring librte_hash
|
2012-09-04 12:54:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_LPM) += librte_lpm
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_lpm := librte_eal
|
2014-06-13 11:26:50 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_ACL) += librte_acl
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_acl := librte_eal
|
2012-09-04 12:54:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_NET) += librte_net
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_net := librte_mbuf
|
2014-05-28 17:32:35 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += librte_ip_frag
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_ip_frag := librte_eal librte_mempool librte_mbuf librte_ether
|
|
|
|
DEPDIRS-librte_ip_frag += librte_hash
|
2015-02-24 16:33:23 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_JOBSTATS) += librte_jobstats
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_jobstats := librte_eal
|
2013-06-03 00:00:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_POWER) += librte_power
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_power := librte_eal
|
2013-06-03 00:00:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_METER) += librte_meter
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_meter := librte_eal
|
2013-06-03 00:00:00 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += librte_sched
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_sched := librte_eal librte_mempool librte_mbuf librte_net
|
|
|
|
DEPDIRS-librte_sched += librte_timer
|
2014-01-28 16:06:34 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_KVARGS) += librte_kvargs
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_kvargs := librte_eal
|
2014-05-29 10:12:14 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += librte_distributor
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_distributor := librte_eal librte_mbuf librte_ether
|
2014-06-04 18:08:19 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PORT) += librte_port
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_port := librte_eal librte_mempool librte_mbuf librte_ether
|
2017-03-30 12:32:28 +00:00
|
|
|
DEPDIRS-librte_port += librte_ip_frag librte_sched
|
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
|
|
|
|
DEPDIRS-librte_port += librte_kni
|
|
|
|
endif
|
2014-06-04 18:08:27 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_TABLE) += librte_table
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_table := librte_eal librte_mempool librte_mbuf
|
2017-03-30 12:32:28 +00:00
|
|
|
DEPDIRS-librte_table += librte_port librte_lpm librte_hash
|
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_ACL),y)
|
|
|
|
DEPDIRS-librte_table += librte_acl
|
|
|
|
endif
|
2014-06-04 18:08:35 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PIPELINE) += librte_pipeline
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_pipeline := librte_eal librte_mempool librte_mbuf
|
|
|
|
DEPDIRS-librte_pipeline += librte_table librte_port
|
2015-02-18 14:58:13 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_REORDER) += librte_reorder
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_reorder := librte_eal librte_mempool librte_mbuf
|
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
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_pdump := librte_eal librte_mempool librte_mbuf librte_ether
|
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
|
2017-03-24 13:21:31 +00:00
|
|
|
DEPDIRS-librte_kni:= librte_eal librte_mempool librte_mbuf librte_ether
|
2012-12-19 23:00:00 +00:00
|
|
|
|
2012-09-04 12:54:00 +00:00
|
|
|
include $(RTE_SDK)/mk/rte.subdir.mk
|