2018-01-23 14:21:16 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2010-2016 Intel Corporation
|
2014-05-14 14:58:07 +00:00
|
|
|
|
2016-03-04 18:11:12 +00:00
|
|
|
#include "common_base"
|
|
|
|
|
2014-05-14 14:58:07 +00:00
|
|
|
CONFIG_RTE_EXEC_ENV="linuxapp"
|
2019-03-06 16:22:39 +00:00
|
|
|
CONFIG_RTE_EXEC_ENV_LINUX=y
|
2014-05-14 14:58:07 +00:00
|
|
|
CONFIG_RTE_EXEC_ENV_LINUXAPP=y
|
|
|
|
|
2017-06-29 05:59:19 +00:00
|
|
|
CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y
|
2014-06-13 14:52:42 +00:00
|
|
|
CONFIG_RTE_EAL_VFIO=y
|
2016-03-04 18:11:12 +00:00
|
|
|
CONFIG_RTE_LIBRTE_KNI=y
|
2017-02-17 13:42:38 +00:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_KNI=y
|
2015-06-29 15:58:53 +00:00
|
|
|
CONFIG_RTE_LIBRTE_VHOST=y
|
2017-06-29 05:59:20 +00:00
|
|
|
CONFIG_RTE_LIBRTE_VHOST_NUMA=y
|
2018-10-12 12:40:38 +00:00
|
|
|
CONFIG_RTE_LIBRTE_VHOST_POSTCOPY=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
|
|
|
CONFIG_RTE_LIBRTE_PMD_VHOST=y
|
2018-06-13 11:32:45 +00:00
|
|
|
CONFIG_RTE_LIBRTE_IFC_PMD=y
|
2016-03-04 18:11:12 +00:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_AF_PACKET=y
|
2019-06-06 11:38:50 +00:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_MEMIF=y
|
2018-07-06 17:21:06 +00:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_SOFTNIC=y
|
2016-12-12 14:38:38 +00:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_TAP=y
|
2017-03-28 11:53:59 +00:00
|
|
|
CONFIG_RTE_LIBRTE_AVP_PMD=y
|
2018-01-18 13:51:42 +00:00
|
|
|
CONFIG_RTE_LIBRTE_VDEV_NETVSC_PMD=y
|
2017-01-13 11:50:02 +00:00
|
|
|
CONFIG_RTE_LIBRTE_NFP_PMD=y
|
2016-03-04 18:11:12 +00:00
|
|
|
CONFIG_RTE_LIBRTE_POWER=y
|
2016-06-15 09:03:22 +00:00
|
|
|
CONFIG_RTE_VIRTIO_USER=y
|
2018-01-12 18:27:29 +00:00
|
|
|
CONFIG_RTE_PROC_INFO=y
|
2018-03-14 07:56:04 +00:00
|
|
|
|
2018-07-13 17:06:43 +00:00
|
|
|
CONFIG_RTE_LIBRTE_VMBUS=y
|
|
|
|
CONFIG_RTE_LIBRTE_NETVSC_PMD=y
|
|
|
|
|
2018-10-15 12:01:54 +00:00
|
|
|
#
|
|
|
|
# Common libraries, before Bus/PMDs
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_COMMON_DPAAX=y
|
|
|
|
|
2018-03-14 07:56:04 +00:00
|
|
|
# NXP DPAA BUS and drivers
|
|
|
|
CONFIG_RTE_LIBRTE_DPAA_BUS=y
|
|
|
|
CONFIG_RTE_LIBRTE_DPAA_MEMPOOL=y
|
|
|
|
CONFIG_RTE_LIBRTE_DPAA_PMD=y
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_DPAA_EVENTDEV=y
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_DPAA_SEC=y
|
2018-10-12 14:40:42 +00:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_CAAM_JR=y
|
2018-03-14 07:56:04 +00:00
|
|
|
|
|
|
|
# NXP FSLMC BUS and DPAA2 drivers
|
|
|
|
CONFIG_RTE_LIBRTE_FSLMC_BUS=y
|
|
|
|
CONFIG_RTE_LIBRTE_DPAA2_MEMPOOL=y
|
|
|
|
CONFIG_RTE_LIBRTE_DPAA2_PMD=y
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_DPAA2_EVENTDEV=y
|
|
|
|
CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC=y
|
2018-05-04 10:11:26 +00:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_DPAA2_CMDIF_RAWDEV=y
|
2018-05-03 16:06:07 +00:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_DPAA2_QDMA_RAWDEV=y
|
2018-10-03 13:36:05 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# NXP ENETC PMD Driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_ENETC_PMD=y
|
2019-06-27 08:18:20 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# HINIC PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_HINIC_PMD=y
|
2019-09-26 14:01:47 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Hisilicon HNS3 PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_HNS3_PMD=y
|
2019-11-14 09:02:50 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Compile PMD for Intel FPGA raw device
|
|
|
|
# To compile, CONFIG_RTE_EAL_VFIO should be enabled.
|
|
|
|
#
|
raw/ifpga/base: support device tree
In PAC N3000 card, this is a BMC chip which using MAX10 FPGA
to manage the board configuration, like sensors, flash controller,
QSFP, powers. And this is a SPI bus connected between A10 FPGA and
MAX10, we can access the MAX10 registers over this SPI bus.
In BMC, there are about 19 sensors in MAX10 chip, including the FPGA
core temperature, Board temperature, board current, voltage and so on.
We use DTB (Device tree table) to describe it. This DTB file is store
in nor flash partition, which will flashed in Factory when the boards
delivery to customers. And the same time, the customers can easy to
customize the BMC configuration like change the sensors.
Add device tree support by using libfdt library in Linux distribution.
The end-user should pre-install the libfdt and libfdt-devel package
before use DPDK on PAC N3000 Card.
For Centos 7.x: sudo yum install libfdt libfdt-devel
For Ubuntu 18.04: sudo apt install libfdt-dev libfdt1
To eliminate build error, we currently do not compile raw/ifpga
and net/ipn3ke. User should install libfdt and libfdt-devel first,
modify config/common_linux, CONFIG_RTE_LIBRTE_PMD_IFPGA_RAWDEV=n
to CONFIG_RTE_LIBRTE_PMD_IFPGA_RAWDEV=y, modify config/common_base,
CONFIG_RTE_LIBRTE_IPN3KE_PMD=n to CONFIG_RTE_LIBRTE_IPN3KE_PMD=y.
Then this function can work.
Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
Signed-off-by: Andy Pei <andy.pei@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2019-11-14 09:02:53 +00:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_IFPGA_RAWDEV=n
|