2017-12-19 15:49:01 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2010-2015 Intel Corporation
|
2015-05-15 16:56:46 +01:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
2017-04-06 18:05:09 +01:00
|
|
|
# set in mk/toolchain/xxx/rte.toolchain-compat.mk
|
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD),d)
|
|
|
|
$(warning thunderx pmd is not supported by old compilers)
|
|
|
|
endif
|
|
|
|
|
2015-05-15 16:56:47 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PMD_AF_PACKET) += af_packet
|
2017-04-04 15:50:23 -04:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_ARK_PMD) += ark
|
2017-03-28 07:53:56 -04:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_AVP_PMD) += avp
|
2015-07-20 09:33:20 -07:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x
|
2015-05-15 16:56:48 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += bonding
|
2015-06-30 04:58:35 +05:30
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_CXGBE_PMD) += cxgbe
|
2017-09-28 17:59:43 +05:30
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_DPAA_PMD) += dpaa
|
2017-04-11 19:19:17 +05:30
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) += dpaa2
|
2015-05-15 16:56:49 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_E1000_PMD) += e1000
|
2016-03-17 15:31:18 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_ENA_PMD) += ena
|
2015-05-15 16:56:50 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic
|
2017-07-18 14:48:14 +02:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += failsafe
|
2015-05-15 16:56:51 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k
|
2015-05-18 12:05:12 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += i40e
|
2015-05-15 16:56:53 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe
|
2017-03-25 11:54:12 +05:30
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_LIO_PMD) += liquidio
|
2015-05-15 16:56:54 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += mlx4
|
2015-10-30 19:52:30 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5
|
2017-10-09 17:00:30 +02:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_MRVL_PMD) += mrvl
|
2015-11-30 10:25:35 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_NFP_PMD) += nfp
|
2016-06-15 14:23:01 -07:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt
|
2015-05-15 16:56:55 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PMD_NULL) += null
|
2017-10-08 18:14:05 +05:30
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_OCTEONTX_PMD) += octeontx
|
2015-05-15 16:56:56 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += pcap
|
2016-04-27 07:18:38 -07:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_QEDE_PMD) += qede
|
2015-05-15 16:56:57 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PMD_RING) += ring
|
2016-11-29 16:18:33 +00:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_SFC_EFX_PMD) += sfc
|
2015-11-10 15:18:13 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PMD_SZEDATA2) += szedata2
|
2016-12-12 08:38:38 -06:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PMD_TAP) += tap
|
2016-06-17 18:59:35 +05:30
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += thunderx
|
2015-05-15 16:56:58 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_VIRTIO_PMD) += virtio
|
2015-05-15 16:56:59 +01:00
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_VMXNET3_PMD) += vmxnet3
|
2015-05-15 16:56:46 +01:00
|
|
|
|
2017-02-17 13:42:38 +00:00
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
|
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PMD_KNI) += kni
|
|
|
|
endif
|
|
|
|
|
2017-10-10 11:18:14 +01:00
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_SCHED),y)
|
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += softnic
|
|
|
|
endif # $(CONFIG_RTE_LIBRTE_SCHED)
|
|
|
|
|
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
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_VHOST),y)
|
|
|
|
DIRS-$(CONFIG_RTE_LIBRTE_PMD_VHOST) += vhost
|
|
|
|
endif # $(CONFIG_RTE_LIBRTE_VHOST)
|
|
|
|
|
2017-10-09 17:00:30 +02:00
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_MRVL_PMD),y)
|
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_CFGFILE),n)
|
|
|
|
$(error "RTE_LIBRTE_CFGFILE must be enabled in configuration!")
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2015-05-15 16:56:46 +01:00
|
|
|
include $(RTE_SDK)/mk/rte.subdir.mk
|