2018-01-23 14:21:16 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2010-2016 Intel Corporation
|
2014-05-14 16:58:07 +02:00
|
|
|
|
2016-03-04 12:11:12 -06:00
|
|
|
#include "common_base"
|
|
|
|
|
2014-05-14 16:58:07 +02:00
|
|
|
CONFIG_RTE_EXEC_ENV="linuxapp"
|
2019-03-06 16:22:39 +00:00
|
|
|
CONFIG_RTE_EXEC_ENV_LINUX=y
|
2014-05-14 16:58:07 +02:00
|
|
|
CONFIG_RTE_EXEC_ENV_LINUXAPP=y
|
|
|
|
|
2017-06-29 08:59:19 +03:00
|
|
|
CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y
|
2014-06-13 15:52:42 +01:00
|
|
|
CONFIG_RTE_EAL_VFIO=y
|
2016-03-04 12:11:12 -06:00
|
|
|
CONFIG_RTE_LIBRTE_KNI=y
|
2017-02-17 13:42:38 +00:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_KNI=y
|
2015-06-29 23:58:53 +08:00
|
|
|
CONFIG_RTE_LIBRTE_VHOST=y
|
2017-06-29 08:59:20 +03:00
|
|
|
CONFIG_RTE_LIBRTE_VHOST_NUMA=y
|
2018-10-12 14:40:38 +02: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 14:45:08 +09:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_VHOST=y
|
2018-06-13 19:32:45 +08:00
|
|
|
CONFIG_RTE_LIBRTE_IFC_PMD=y
|
2016-03-04 12:11:12 -06:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_AF_PACKET=y
|
2019-06-06 13:38:50 +02:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_MEMIF=y
|
2018-07-06 18:21:06 +01:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_SOFTNIC=y
|
2016-12-12 08:38:38 -06:00
|
|
|
CONFIG_RTE_LIBRTE_PMD_TAP=y
|
2017-03-28 07:53:59 -04: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 12:11:12 -06: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 13:26:04 +05:30
|
|
|
|
2018-07-13 10:06:43 -07:00
|
|
|
CONFIG_RTE_LIBRTE_VMBUS=y
|
|
|
|
CONFIG_RTE_LIBRTE_NETVSC_PMD=y
|
|
|
|
|
2018-10-15 17:31:54 +05:30
|
|
|
#
|
|
|
|
# Common libraries, before Bus/PMDs
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_COMMON_DPAAX=y
|
|
|
|
|
2018-03-14 13:26:04 +05:30
|
|
|
# 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 20:10:42 +05:30
|
|
|
CONFIG_RTE_LIBRTE_PMD_CAAM_JR=y
|
2018-03-14 13:26:04 +05:30
|
|
|
|
|
|
|
# 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 15:41:26 +05:30
|
|
|
CONFIG_RTE_LIBRTE_PMD_DPAA2_CMDIF_RAWDEV=y
|
2018-05-03 21:36:07 +05:30
|
|
|
CONFIG_RTE_LIBRTE_PMD_DPAA2_QDMA_RAWDEV=y
|
2018-10-03 19:06:05 +05:30
|
|
|
|
|
|
|
#
|
|
|
|
# NXP ENETC PMD Driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_ENETC_PMD=y
|
2019-06-27 16:18:20 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# HINIC PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_HINIC_PMD=y
|
2019-09-26 22:01:47 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Hisilicon HNS3 PMD driver
|
|
|
|
#
|
|
|
|
CONFIG_RTE_LIBRTE_HNS3_PMD=y
|