2016-03-04 18:11:12 +00:00
|
|
|
# BSD LICENSE
|
|
|
|
#
|
2017-01-24 16:23:58 +00:00
|
|
|
# Copyright(c) 2010-2017 Intel Corporation. All rights reserved.
|
2016-03-04 18:11:12 +00:00
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# define executive environment
|
|
|
|
# RTE_EXEC_ENV values are the directories in mk/exec-env/
|
|
|
|
#
|
|
|
|
CONFIG_RTE_EXEC_ENV=
|
|
|
|
|
|
|
|
#
|
|
|
|
# define the architecture we compile for.
|
|
|
|
# RTE_ARCH values are the directories in mk/arch/
|
|
|
|
#
|
|
|
|
CONFIG_RTE_ARCH=
|
|
|
|
|
|
|
|
#
|
|
|
|
# machine can define specific variables or action for a specific board
|
|
|
|
# RTE_MACHINE values are the directories in mk/machine/
|
|
|
|
#
|
|
|
|
CONFIG_RTE_MACHINE=
|
|
|
|
|
|
|
|
#
|
|
|
|
# The compiler we use.
|
|
|
|
# RTE_TOOLCHAIN values are the directories in mk/toolchain/
|
|
|
|
#
|
|
|
|
CONFIG_RTE_TOOLCHAIN=
|
|
|
|
|
|
|
|
#
|
|
|
|
# Use intrinsics or assembly code for key routines
|
|
|
|
#
|
|
|
|
CONFIG_RTE_FORCE_INTRINSICS=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Machine forces strict alignment constraints.
|
|
|
|
#
|
|
|
|
CONFIG_RTE_ARCH_STRICT_ALIGN=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile to share library
|
|
|
|
#
|
|
|
|
CONFIG_RTE_BUILD_SHARED_LIB=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Use newest code breaking previous ABI
|
|
|
|
#
|
|
|
|
CONFIG_RTE_NEXT_ABI=y
|
|
|
|
|
|
|
|
#
|
|
|
|
# Machine's cache line size
|
|
|
|
#
|
|
|
|
CONFIG_RTE_CACHE_LINE_SIZE=64
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile Environment Abstraction Layer
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_EAL=y
|
|
|
|
CONFIG_RTE_MAX_LCORE=128
|
|
|
|
CONFIG_RTE_MAX_NUMA_NODES=8
|
|
|
|
CONFIG_RTE_MAX_MEMSEG=256
|
|
|
|
CONFIG_RTE_MAX_MEMZONE=2560
|
|
|
|
CONFIG_RTE_MAX_TAILQ=32
|
2016-04-22 10:25:59 +00:00
|
|
|
CONFIG_RTE_LOG_LEVEL=RTE_LOG_INFO
|
2016-11-23 15:34:25 +00:00
|
|
|
CONFIG_RTE_LOG_DP_LEVEL=RTE_LOG_INFO
|
2016-03-04 18:11:12 +00:00
|
|
|
CONFIG_RTE_LOG_HISTORY=256
|
|
|
|
CONFIG_RTE_LIBEAL_USE_HPET=n
|
|
|
|
CONFIG_RTE_EAL_ALLOW_INV_SOCKET_ID=n
|
|
|
|
CONFIG_RTE_EAL_ALWAYS_PANIC_ON_ERROR=n
|
|
|
|
CONFIG_RTE_EAL_IGB_UIO=n
|
|
|
|
CONFIG_RTE_EAL_VFIO=n
|
|
|
|
CONFIG_RTE_MALLOC_DEBUG=n
|
|
|
|
|
|
|
|
# Default driver path (or "" to disable)
|
|
|
|
CONFIG_RTE_EAL_PMD_PATH=""
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile Environment Abstraction Layer to support Vmware TSC map
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_EAL_VMWARE_TSC_MAP_SUPPORT=y
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile the argument parser library
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_KVARGS=y
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile generic ethernet library
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_ETHER=y
|
|
|
|
CONFIG_RTE_LIBRTE_ETHDEV_DEBUG=n
|
|
|
|
CONFIG_RTE_MAX_ETHPORTS=32
|
|
|
|
CONFIG_RTE_MAX_QUEUES_PER_PORT=1024
|
|
|
|
CONFIG_RTE_LIBRTE_IEEE1588=n
|
|
|
|
CONFIG_RTE_ETHDEV_QUEUE_STAT_CNTRS=16
|
|
|
|
CONFIG_RTE_ETHDEV_RXTX_CALLBACKS=y
|
|
|
|
|
ethdev: add Tx preparation
Added API for `rte_eth_tx_prepare`
uint16_t rte_eth_tx_prepare(uint8_t port_id, uint16_t queue_id,
struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
Added fields to the `struct rte_eth_desc_lim`:
uint16_t nb_seg_max;
/**< Max number of segments per whole packet. */
uint16_t nb_mtu_seg_max;
/**< Max number of segments per one MTU */
These fields can be used to create valid packets according to the
following rules:
* For non-TSO packet, a single transmit packet may span up to
"nb_mtu_seg_max" buffers.
* For TSO packet the total number of data descriptors is "nb_seg_max",
and each segment within the TSO may span up to "nb_mtu_seg_max".
Added functions:
int
rte_validate_tx_offload(struct rte_mbuf *m)
to validate general requirements for tx offload set in mbuf of packet
such a flag completness. In current implementation this function is
called optionaly when RTE_LIBRTE_ETHDEV_DEBUG is enabled.
int rte_net_intel_cksum_prepare(struct rte_mbuf *m)
to prepare pseudo header checksum for TSO and non-TSO tcp/udp packets
before hardware tx checksum offload.
- for non-TSO tcp/udp packets full pseudo-header checksum is
counted and set.
- for TSO the IP payload length is not included.
int
rte_net_intel_cksum_flags_prepare(struct rte_mbuf *m, uint64_t ol_flags)
this function uses same logic as rte_net_intel_cksum_prepare, but
allows application to choose which offloads should be taken into
account, if full preparation is not required.
PERFORMANCE TESTS
-----------------
This feature was tested with modified csum engine from test-pmd.
The packet checksum preparation was moved from application to Tx
preparation step placed before burst.
We may expect some overhead costs caused by:
1) using additional callback before burst,
2) rescanning burst,
3) additional condition checking (packet validation),
4) worse optimization (e.g. packet data access, etc.)
We tested it using ixgbe Tx preparation implementation with some parts
disabled to have comparable information about the impact of different
parts of implementation.
IMPACT:
1) For unimplemented Tx preparation callback the performance impact is
negligible,
2) For packet condition check without checksum modifications (nb_segs,
available offloads, etc.) is 14626628/14252168 (~2.62% drop),
3) Full support in ixgbe driver (point 2 + packet checksum
initialization) is 14060924/13588094 (~3.48% drop)
Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2016-12-23 18:40:47 +00:00
|
|
|
#
|
|
|
|
# Turn off Tx preparation stage
|
|
|
|
#
|
|
|
|
# Warning: rte_ethdev_tx_prepare() can be safely disabled only if using a
|
|
|
|
# driver which do not implement any Tx preparation.
|
|
|
|
#
|
|
|
|
CONFIG_RTE_ETHDEV_TX_PREPARE_NOOP=n
|
|
|
|
|
2016-03-04 18:11:12 +00:00
|
|
|
#
|
|
|
|
# Support NIC bypass logic
|
|
|
|
#
|
|
|
|
CONFIG_RTE_NIC_BYPASS=n
|
|
|
|
|
2016-03-17 14:31:18 +00:00
|
|
|
#
|
|
|
|
# Compile burst-oriented Amazon ENA PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_ENA_PMD=y
|
|
|
|
CONFIG_RTE_LIBRTE_ENA_DEBUG_RX=n
|
|
|
|
CONFIG_RTE_LIBRTE_ENA_DEBUG_TX=n
|
|
|
|
CONFIG_RTE_LIBRTE_ENA_DEBUG_TX_FREE=n
|
|
|
|
CONFIG_RTE_LIBRTE_ENA_DEBUG_DRIVER=n
|
|
|
|
CONFIG_RTE_LIBRTE_ENA_COM_DEBUG=n
|
|
|
|
|
2016-03-04 18:11:12 +00:00
|
|
|
#
|
|
|
|
# Compile burst-oriented IGB & EM PMD drivers
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_EM_PMD=y
|
|
|
|
CONFIG_RTE_LIBRTE_IGB_PMD=y
|
|
|
|
CONFIG_RTE_LIBRTE_E1000_DEBUG_INIT=n
|
|
|
|
CONFIG_RTE_LIBRTE_E1000_DEBUG_RX=n
|
|
|
|
CONFIG_RTE_LIBRTE_E1000_DEBUG_TX=n
|
|
|
|
CONFIG_RTE_LIBRTE_E1000_DEBUG_TX_FREE=n
|
|
|
|
CONFIG_RTE_LIBRTE_E1000_DEBUG_DRIVER=n
|
|
|
|
CONFIG_RTE_LIBRTE_E1000_PF_DISABLE_STRIP_CRC=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile burst-oriented IXGBE PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_IXGBE_PMD=y
|
|
|
|
CONFIG_RTE_LIBRTE_IXGBE_DEBUG_INIT=n
|
|
|
|
CONFIG_RTE_LIBRTE_IXGBE_DEBUG_RX=n
|
|
|
|
CONFIG_RTE_LIBRTE_IXGBE_DEBUG_TX=n
|
|
|
|
CONFIG_RTE_LIBRTE_IXGBE_DEBUG_TX_FREE=n
|
|
|
|
CONFIG_RTE_LIBRTE_IXGBE_DEBUG_DRIVER=n
|
|
|
|
CONFIG_RTE_LIBRTE_IXGBE_PF_DISABLE_STRIP_CRC=n
|
|
|
|
CONFIG_RTE_IXGBE_INC_VECTOR=y
|
|
|
|
CONFIG_RTE_IXGBE_RX_OLFLAGS_ENABLE=y
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile burst-oriented I40E PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_I40E_PMD=y
|
|
|
|
CONFIG_RTE_LIBRTE_I40E_DEBUG_INIT=n
|
|
|
|
CONFIG_RTE_LIBRTE_I40E_DEBUG_RX=n
|
|
|
|
CONFIG_RTE_LIBRTE_I40E_DEBUG_TX=n
|
|
|
|
CONFIG_RTE_LIBRTE_I40E_DEBUG_TX_FREE=n
|
|
|
|
CONFIG_RTE_LIBRTE_I40E_DEBUG_DRIVER=n
|
|
|
|
CONFIG_RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC=y
|
2016-03-25 00:47:47 +00:00
|
|
|
CONFIG_RTE_LIBRTE_I40E_INC_VECTOR=y
|
2016-03-04 18:11:12 +00:00
|
|
|
CONFIG_RTE_LIBRTE_I40E_RX_OLFLAGS_ENABLE=y
|
|
|
|
CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=n
|
|
|
|
CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF=64
|
|
|
|
CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF=4
|
|
|
|
CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=4
|
|
|
|
# interval up to 8160 us, aligned to 2 (or default value)
|
|
|
|
CONFIG_RTE_LIBRTE_I40E_ITR_INTERVAL=-1
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile burst-oriented FM10K PMD
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_FM10K_PMD=y
|
|
|
|
CONFIG_RTE_LIBRTE_FM10K_DEBUG_INIT=n
|
|
|
|
CONFIG_RTE_LIBRTE_FM10K_DEBUG_RX=n
|
|
|
|
CONFIG_RTE_LIBRTE_FM10K_DEBUG_TX=n
|
|
|
|
CONFIG_RTE_LIBRTE_FM10K_DEBUG_TX_FREE=n
|
|
|
|
CONFIG_RTE_LIBRTE_FM10K_DEBUG_DRIVER=n
|
|
|
|
CONFIG_RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE=y
|
|
|
|
CONFIG_RTE_LIBRTE_FM10K_INC_VECTOR=y
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile burst-oriented Mellanox ConnectX-3 (MLX4) PMD
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_MLX4_PMD=n
|
|
|
|
CONFIG_RTE_LIBRTE_MLX4_DEBUG=n
|
|
|
|
CONFIG_RTE_LIBRTE_MLX4_SGE_WR_N=4
|
|
|
|
CONFIG_RTE_LIBRTE_MLX4_MAX_INLINE=0
|
|
|
|
CONFIG_RTE_LIBRTE_MLX4_TX_MP_CACHE=8
|
|
|
|
CONFIG_RTE_LIBRTE_MLX4_SOFT_COUNTERS=1
|
|
|
|
|
|
|
|
#
|
2017-01-06 00:49:31 +00:00
|
|
|
# Compile burst-oriented Mellanox ConnectX-4 & ConnectX-5 (MLX5) PMD
|
2016-03-04 18:11:12 +00:00
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_MLX5_PMD=n
|
|
|
|
CONFIG_RTE_LIBRTE_MLX5_DEBUG=n
|
|
|
|
CONFIG_RTE_LIBRTE_MLX5_TX_MP_CACHE=8
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile burst-oriented Broadcom PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_BNX2X_PMD=n
|
|
|
|
CONFIG_RTE_LIBRTE_BNX2X_DEBUG=n
|
|
|
|
CONFIG_RTE_LIBRTE_BNX2X_DEBUG_INIT=n
|
|
|
|
CONFIG_RTE_LIBRTE_BNX2X_DEBUG_RX=n
|
|
|
|
CONFIG_RTE_LIBRTE_BNX2X_DEBUG_TX=n
|
|
|
|
CONFIG_RTE_LIBRTE_BNX2X_MF_SUPPORT=n
|
|
|
|
CONFIG_RTE_LIBRTE_BNX2X_DEBUG_PERIODIC=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile burst-oriented Chelsio Terminator 10GbE/40GbE (CXGBE) PMD
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_CXGBE_PMD=y
|
|
|
|
CONFIG_RTE_LIBRTE_CXGBE_DEBUG=n
|
|
|
|
CONFIG_RTE_LIBRTE_CXGBE_DEBUG_REG=n
|
|
|
|
CONFIG_RTE_LIBRTE_CXGBE_DEBUG_MBOX=n
|
|
|
|
CONFIG_RTE_LIBRTE_CXGBE_DEBUG_TX=n
|
|
|
|
CONFIG_RTE_LIBRTE_CXGBE_DEBUG_RX=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile burst-oriented Cisco ENIC PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_ENIC_PMD=y
|
|
|
|
CONFIG_RTE_LIBRTE_ENIC_DEBUG=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile burst-oriented Netronome NFP PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_NFP_PMD=n
|
|
|
|
CONFIG_RTE_LIBRTE_NFP_DEBUG=n
|
|
|
|
|
2016-06-15 21:23:01 +00:00
|
|
|
#
|
|
|
|
# Compile burst-oriented Broadcom BNXT PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_BNXT_PMD=y
|
|
|
|
|
2016-11-29 16:18:33 +00:00
|
|
|
#
|
|
|
|
# Compile burst-oriented Solarflare libefx-based PMD
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_SFC_EFX_PMD=y
|
|
|
|
CONFIG_RTE_LIBRTE_SFC_EFX_DEBUG=n
|
|
|
|
|
2016-03-04 18:11:12 +00:00
|
|
|
#
|
|
|
|
# Compile software PMD backed by SZEDATA2 device
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_SZEDATA2=n
|
2016-01-28 22:23:47 +00:00
|
|
|
#
|
|
|
|
# Defines firmware type address space.
|
|
|
|
# RTE_LIBRTE_PMD_SZEDATA2_AS can be:
|
|
|
|
# 0 - for firmwares:
|
|
|
|
# NIC_100G1_LR4
|
|
|
|
# HANIC_100G1_LR4
|
|
|
|
# HANIC_100G1_SR10
|
|
|
|
# Other values raise compile time error
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_SZEDATA2_AS=0
|
2016-03-04 18:11:12 +00:00
|
|
|
|
2016-06-17 13:29:35 +00:00
|
|
|
#
|
|
|
|
# Compile burst-oriented Cavium Thunderx NICVF PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD=n
|
|
|
|
CONFIG_RTE_LIBRTE_THUNDERX_NICVF_DEBUG_INIT=n
|
|
|
|
CONFIG_RTE_LIBRTE_THUNDERX_NICVF_DEBUG_RX=n
|
|
|
|
CONFIG_RTE_LIBRTE_THUNDERX_NICVF_DEBUG_TX=n
|
|
|
|
CONFIG_RTE_LIBRTE_THUNDERX_NICVF_DEBUG_DRIVER=n
|
|
|
|
CONFIG_RTE_LIBRTE_THUNDERX_NICVF_DEBUG_MBOX=n
|
|
|
|
|
2016-03-04 18:11:12 +00:00
|
|
|
#
|
|
|
|
# Compile burst-oriented VIRTIO PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_VIRTIO_PMD=y
|
|
|
|
CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_INIT=n
|
|
|
|
CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_RX=n
|
|
|
|
CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_TX=n
|
|
|
|
CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DRIVER=n
|
|
|
|
CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DUMP=n
|
|
|
|
|
2016-06-29 03:20:06 +00:00
|
|
|
#
|
|
|
|
# Compile virtio device emulation inside virtio PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_VIRTIO_USER=n
|
|
|
|
|
2016-03-04 18:11:12 +00:00
|
|
|
#
|
|
|
|
# Compile burst-oriented VMXNET3 PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_VMXNET3_PMD=y
|
|
|
|
CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_INIT=n
|
|
|
|
CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_RX=n
|
|
|
|
CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_TX=n
|
|
|
|
CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_TX_FREE=n
|
|
|
|
CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_DRIVER=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile example software rings based PMD
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_RING=y
|
|
|
|
CONFIG_RTE_PMD_RING_MAX_RX_RINGS=16
|
|
|
|
CONFIG_RTE_PMD_RING_MAX_TX_RINGS=16
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile software PMD backed by PCAP files
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_PCAP=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile link bonding PMD library
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_BOND=y
|
|
|
|
CONFIG_RTE_LIBRTE_BOND_DEBUG_ALB=n
|
|
|
|
CONFIG_RTE_LIBRTE_BOND_DEBUG_ALB_L1=n
|
|
|
|
|
2017-01-05 07:04:03 +00:00
|
|
|
# QLogic 10G/25G/40G/50G/100G PMD
|
2016-04-27 14:18:38 +00:00
|
|
|
#
|
2016-10-19 04:11:44 +00:00
|
|
|
CONFIG_RTE_LIBRTE_QEDE_PMD=y
|
2016-04-27 14:18:38 +00:00
|
|
|
CONFIG_RTE_LIBRTE_QEDE_DEBUG_INIT=n
|
|
|
|
CONFIG_RTE_LIBRTE_QEDE_DEBUG_INFO=n
|
2016-05-07 04:21:30 +00:00
|
|
|
CONFIG_RTE_LIBRTE_QEDE_DEBUG_DRIVER=n
|
2016-04-27 14:18:38 +00:00
|
|
|
CONFIG_RTE_LIBRTE_QEDE_DEBUG_TX=n
|
|
|
|
CONFIG_RTE_LIBRTE_QEDE_DEBUG_RX=n
|
|
|
|
#Provides abs path/name of the firmware file.
|
|
|
|
#Empty string denotes driver will use default firmware
|
|
|
|
CONFIG_RTE_LIBRTE_QEDE_FW=""
|
|
|
|
|
2016-03-04 18:11:12 +00:00
|
|
|
#
|
|
|
|
# Compile software PMD backed by AF_PACKET sockets (Linux only)
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_AF_PACKET=n
|
|
|
|
|
2016-12-12 14:38:38 +00:00
|
|
|
#
|
|
|
|
# Compile the TAP PMD
|
|
|
|
# It is enabled by default for Linux only.
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_TAP=n
|
|
|
|
|
2016-03-04 18:11:12 +00:00
|
|
|
#
|
|
|
|
# Compile Xen PMD
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_XENVIRT=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile null PMD
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_NULL=y
|
|
|
|
|
|
|
|
#
|
|
|
|
# Do prefetch of packet data within PMD driver receive function
|
|
|
|
#
|
|
|
|
CONFIG_RTE_PMD_PACKET_PREFETCH=y
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile generic crypto device library
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_CRYPTODEV=y
|
|
|
|
CONFIG_RTE_LIBRTE_CRYPTODEV_DEBUG=n
|
|
|
|
CONFIG_RTE_CRYPTO_MAX_DEVS=64
|
|
|
|
CONFIG_RTE_CRYPTODEV_NAME_LEN=64
|
|
|
|
|
2017-01-18 20:01:54 +00:00
|
|
|
#
|
|
|
|
# Compile PMD for ARMv8 Crypto device
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_ARMV8_CRYPTO=n
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_ARMV8_CRYPTO_DEBUG=n
|
|
|
|
|
2016-03-04 18:11:12 +00:00
|
|
|
#
|
|
|
|
# Compile PMD for QuickAssist based devices
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_QAT=n
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_QAT_DEBUG_INIT=n
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_QAT_DEBUG_TX=n
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_QAT_DEBUG_RX=n
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_QAT_DEBUG_DRIVER=n
|
|
|
|
#
|
|
|
|
# Number of sessions to create in the session memory pool
|
|
|
|
# on a single QuickAssist device.
|
|
|
|
#
|
|
|
|
CONFIG_RTE_QAT_PMD_MAX_NB_SESSIONS=2048
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile PMD for AESNI backed device
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_AESNI_MB=n
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_AESNI_MB_DEBUG=n
|
|
|
|
|
2016-10-04 15:11:19 +00:00
|
|
|
#
|
|
|
|
# Compile PMD for Software backed device
|
|
|
|
#
|
2016-10-18 11:36:13 +00:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_OPENSSL=n
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_OPENSSL_DEBUG=n
|
2016-10-04 15:11:19 +00:00
|
|
|
|
2016-03-10 16:41:46 +00:00
|
|
|
#
|
|
|
|
# Compile PMD for AESNI GCM device
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_AESNI_GCM=n
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_AESNI_GCM_DEBUG=n
|
|
|
|
|
2016-03-10 16:33:12 +00:00
|
|
|
#
|
|
|
|
# Compile PMD for SNOW 3G device
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_SNOW3G=n
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_SNOW3G_DEBUG=n
|
|
|
|
|
2016-06-20 14:40:04 +00:00
|
|
|
#
|
|
|
|
# Compile PMD for KASUMI device
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_KASUMI=n
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_KASUMI_DEBUG=n
|
|
|
|
|
2016-09-29 02:59:47 +00:00
|
|
|
#
|
|
|
|
# Compile PMD for ZUC device
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_ZUC=n
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_ZUC_DEBUG=n
|
|
|
|
|
2017-01-24 16:23:58 +00:00
|
|
|
#
|
|
|
|
# Compile PMD for Crypto Scheduler device
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER=n
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER_DEBUG=n
|
|
|
|
|
2016-03-11 01:04:10 +00:00
|
|
|
#
|
|
|
|
# Compile PMD for NULL Crypto device
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_NULL_CRYPTO=y
|
|
|
|
|
2016-03-04 18:11:12 +00:00
|
|
|
#
|
|
|
|
# Compile librte_ring
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_RING=y
|
|
|
|
CONFIG_RTE_LIBRTE_RING_DEBUG=n
|
|
|
|
CONFIG_RTE_RING_SPLIT_PROD_CONS=n
|
|
|
|
CONFIG_RTE_RING_PAUSE_REP_COUNT=0
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_mempool
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_MEMPOOL=y
|
|
|
|
CONFIG_RTE_MEMPOOL_CACHE_MAX_SIZE=512
|
|
|
|
CONFIG_RTE_LIBRTE_MEMPOOL_DEBUG=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_mbuf
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_MBUF=y
|
|
|
|
CONFIG_RTE_LIBRTE_MBUF_DEBUG=n
|
2016-06-22 09:27:29 +00:00
|
|
|
CONFIG_RTE_MBUF_DEFAULT_MEMPOOL_OPS="ring_mp_mc"
|
2016-03-04 18:11:12 +00:00
|
|
|
CONFIG_RTE_MBUF_REFCNT_ATOMIC=y
|
|
|
|
CONFIG_RTE_PKTMBUF_HEADROOM=128
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_timer
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_TIMER=y
|
|
|
|
CONFIG_RTE_LIBRTE_TIMER_DEBUG=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_cfgfile
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_CFGFILE=y
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_cmdline
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_CMDLINE=y
|
|
|
|
CONFIG_RTE_LIBRTE_CMDLINE_DEBUG=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_hash
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_HASH=y
|
|
|
|
CONFIG_RTE_LIBRTE_HASH_DEBUG=n
|
|
|
|
|
2017-01-17 22:23:51 +00:00
|
|
|
#
|
|
|
|
# Compile librte_efd
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_EFD=y
|
|
|
|
|
2016-03-04 18:11:12 +00:00
|
|
|
#
|
|
|
|
# Compile librte_jobstats
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_JOBSTATS=y
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_lpm
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_LPM=y
|
|
|
|
CONFIG_RTE_LIBRTE_LPM_DEBUG=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_acl
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_ACL=y
|
|
|
|
CONFIG_RTE_LIBRTE_ACL_DEBUG=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_power
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_POWER=n
|
|
|
|
CONFIG_RTE_LIBRTE_POWER_DEBUG=n
|
|
|
|
CONFIG_RTE_MAX_LCORE_FREQS=64
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_net
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_NET=y
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_ip_frag
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_IP_FRAG=y
|
|
|
|
CONFIG_RTE_LIBRTE_IP_FRAG_DEBUG=n
|
|
|
|
CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=4
|
|
|
|
CONFIG_RTE_LIBRTE_IP_FRAG_TBL_STAT=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_meter
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_METER=y
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_sched
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_SCHED=y
|
|
|
|
CONFIG_RTE_SCHED_DEBUG=n
|
|
|
|
CONFIG_RTE_SCHED_RED=n
|
|
|
|
CONFIG_RTE_SCHED_COLLECT_STATS=n
|
|
|
|
CONFIG_RTE_SCHED_SUBPORT_TC_OV=n
|
|
|
|
CONFIG_RTE_SCHED_PORT_N_GRINDERS=8
|
|
|
|
CONFIG_RTE_SCHED_VECTOR=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile the distributor library
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_DISTRIBUTOR=y
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile the reorder library
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_REORDER=y
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_port
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PORT=y
|
|
|
|
CONFIG_RTE_PORT_STATS_COLLECT=n
|
2016-03-11 17:08:07 +00:00
|
|
|
CONFIG_RTE_PORT_PCAP=n
|
2016-03-04 18:11:12 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_table
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_TABLE=y
|
|
|
|
CONFIG_RTE_TABLE_STATS_COLLECT=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_pipeline
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PIPELINE=y
|
|
|
|
CONFIG_RTE_PIPELINE_STATS_COLLECT=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile librte_kni
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_KNI=n
|
|
|
|
CONFIG_RTE_KNI_KMOD=n
|
2017-01-17 18:01:46 +00:00
|
|
|
CONFIG_RTE_KNI_KMOD_ETHTOOL=n
|
2016-03-04 18:11:12 +00:00
|
|
|
CONFIG_RTE_KNI_PREEMPT_DEFAULT=y
|
|
|
|
CONFIG_RTE_KNI_VHOST=n
|
|
|
|
CONFIG_RTE_KNI_VHOST_MAX_CACHE_SIZE=1024
|
|
|
|
CONFIG_RTE_KNI_VHOST_VNET_HDR_EN=n
|
|
|
|
|
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
|
|
|
#
|
|
|
|
# Compile the pdump library
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PDUMP=y
|
|
|
|
|
2016-03-04 18:11:12 +00:00
|
|
|
#
|
2016-08-18 08:48:37 +00:00
|
|
|
# Compile vhost user library
|
2016-03-04 18:11:12 +00:00
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_VHOST=n
|
|
|
|
CONFIG_RTE_LIBRTE_VHOST_NUMA=n
|
|
|
|
CONFIG_RTE_LIBRTE_VHOST_DEBUG=n
|
|
|
|
|
vhost: add driver on top of the library
The patch introduces a new PMD. This PMD is implemented as thin wrapper
of librte_vhost. It means librte_vhost is also needed to compile the PMD.
The vhost messages will be handled only when a port is started. So start
a port first, then invoke QEMU.
The PMD has 2 parameters.
- iface: The parameter is used to specify a path to connect to a
virtio-net device.
- queues: The parameter is used to specify the number of the queues
virtio-net device has.
(Default: 1)
Here is an example.
$ ./testpmd -c f -n 4 --vdev 'eth_vhost0,iface=/tmp/sock0,queues=1' -- -i
To connect above testpmd, here is qemu command example.
$ qemu-system-x86_64 \
<snip>
-chardev socket,id=chr0,path=/tmp/sock0 \
-netdev vhost-user,id=net0,chardev=chr0,vhostforce,queues=1 \
-device virtio-net-pci,netdev=net0,mq=on
Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Rich Lane <rich.lane@bigswitch.com>
Tested-by: Rich Lane <rich.lane@bigswitch.com>
Update for queue state event name:
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2016-03-21 05:45:08 +00:00
|
|
|
#
|
|
|
|
# Compile vhost PMD
|
|
|
|
# To compile, CONFIG_RTE_LIBRTE_VHOST should be enabled.
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_VHOST=n
|
|
|
|
|
2016-03-04 18:11:12 +00:00
|
|
|
#
|
|
|
|
#Compile Xen domain0 support
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_XEN_DOM0=n
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile the test application
|
|
|
|
#
|
|
|
|
CONFIG_RTE_APP_TEST=y
|
2016-06-14 08:51:39 +00:00
|
|
|
CONFIG_RTE_APP_TEST_RESOURCE_TAR=n
|
2016-03-04 18:11:12 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Compile the PMD test application
|
|
|
|
#
|
|
|
|
CONFIG_RTE_TEST_PMD=y
|
|
|
|
CONFIG_RTE_TEST_PMD_RECORD_CORE_CYCLES=n
|
|
|
|
CONFIG_RTE_TEST_PMD_RECORD_BURST_STATS=n
|
2017-01-25 16:27:33 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Compile the crypto performance application
|
|
|
|
#
|
|
|
|
CONFIG_RTE_APP_CRYPTO_PERF=y
|