[dpdk-dev] [PATCH v6 7/8] virtio: pick simple rx/tx func

2015-10-29 Thread Huawei Xie
Changes in v4: Check merge-able feature when select simple rx/tx functions. simple rx/tx func is chose when merge-able rx is disabled and user specifies single segment and no offload support. Signed-off-by: Huawei Xie --- drivers/net/virtio/virtio_rxtx.c | 15 +++ 1 file changed,

[dpdk-dev] [PATCH v6 6/8] virtio: simple tx routine

2015-10-29 Thread Huawei Xie
Changes in v5: - call __rte_pktmbuf_prefree_seg to check refcnt when free mbufs Changes in v4: - move virtio_xmit_cleanup ahead to free descriptors earlier Changes in v3: - Remove return at the end of void function - Remove always_inline attribute for virtio_xmit_cleanup bulk free of mbufs when

[dpdk-dev] [PATCH v6 5/8] virtio: virtio vec rx

2015-10-29 Thread Huawei Xie
With fixed avail ring, we don't need to get desc idx from avail ring. virtio driver only has to deal with desc ring. This patch uses vector instruction to accelerate processing desc ring. Signed-off-by: Huawei Xie --- drivers/net/virtio/virtio_ethdev.h | 2 +

[dpdk-dev] [PATCH v6 4/8] virtio: fill RX avail ring with blank mbufs

2015-10-29 Thread Huawei Xie
fill avail ring with blank mbufs in virtio_dev_vring_start Signed-off-by: Huawei Xie --- drivers/net/virtio/Makefile | 2 +- drivers/net/virtio/virtio_rxtx.c| 6 ++- drivers/net/virtio/virtio_rxtx.h| 3 ++ drivers/net/virtio/virtio_rxtx_simple.c | 84

[dpdk-dev] [PATCH v6 3/8] virtio: rx/tx ring layout optimization

2015-10-29 Thread Huawei Xie
Changes in V4: - fix the error in tx ring layout chart in this commit message. In DPDK based switching envrioment, mostly vhost runs on a dedicated core while virtio processing in guest VMs runs on different cores. Take RX for example, with generic implementation, for each guest buffer, a) virtio

[dpdk-dev] [PATCH v6 2/8] virtio: add software rx ring, fake_buf into virtqueue

2015-10-29 Thread Huawei Xie
Changes in v3: - Remove unnecessary NULL test for rte_free - Remove unnecessary assign of local var vq after free Add software RX ring in virtqueue. Add fake_mbuf in virtqueue for wraparound processing. Use global simple_rxtx to indicate whether simple rxtx is enabled Signed-off-by: Huawei Xie

[dpdk-dev] [PATCH v6 1/8] virtio: add virtio_rxtx.h header file

2015-10-29 Thread Huawei Xie
Would move all rx/tx related declarations into this header file in future. Add RTE_VIRTIO_PMD_MAX_BURST. Signed-off-by: Huawei Xie --- drivers/net/virtio/virtio_ethdev.c | 1 + drivers/net/virtio/virtio_rxtx.c | 1 + drivers/net/virtio/virtio_rxtx.h | 34 ++

[dpdk-dev] [PATCH v6 0/8] virtio ring layout optimization and simple rx/tx processing

2015-10-29 Thread Huawei Xie
Changes in v6: - Update release notes - Fix the error in virtio tx ring layout ascii chart in the cover-letter Changes in v5: - Call __rte_pktmbuf_prefree_seg to check refcnt when free mbufs Changes in v4: - Fix the error in virtio tx ring layout ascii chart in the commit message - Move

[dpdk-dev] [PATCH v2] i40e: add link flow control support for FVL

2015-10-29 Thread Zhe Tao
Feature Add: Rx/Tx flow control support for the i40e All the Rx/Tx LFC enable/disable operation is done by the F/W, so PMD driver need to use the Set PHY Config AD command to trigger the PHY to do the auto-negotiation, after the Tx/Rx pause ability is negotiated, the F/W will help us to set

[dpdk-dev] [PATCH v3] vhost: Fix wrong handling of virtqueue array index

2015-10-29 Thread Flavio Leitner
On Wed, Oct 28, 2015 at 12:47:40PM +0900, Tetsuya Mukawa wrote: > The patch fixes wrong handling of virtqueue array index when > GET_VRING_BASE message comes. > > Signed-off-by: Tetsuya Mukawa > --- vhost-user segfaults without this patch with MQ enabled. LGTM Acked-by: Flavio Leitner

[dpdk-dev] [PATCH v5 10/10] doc: Add information about new installation rules

2015-10-29 Thread Mario Carrillo
Information about variables and rules behaviour is added to doc/build-sdk-quick.txt Signed-off-by: Mario Carrillo --- doc/build-sdk-quick.txt | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/doc/build-sdk-quick.txt b/doc/build-sdk-quick.txt index

[dpdk-dev] [PATCH v5 09/10] mk: Add new install rule

2015-10-29 Thread Mario Carrillo
If "T" variable is defined, the installation process will have the current behaviour, else install rule will be called. Signed-off-by: Mario Carrillo --- mk/rte.sdkinstall.mk | 12 +++- mk/rte.sdkroot.mk| 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git

[dpdk-dev] [PATCH v5 08/10] mk: Rename install rule as mbuild rule

2015-10-29 Thread Mario Carrillo
"install" rule with the current dpdk behaviour change its name. Signed-off-by: Mario Carrillo --- mk/rte.sdkinstall.mk | 8 mk/rte.sdkroot.mk| 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index 4914bd7..24aa5a5

[dpdk-dev] [PATCH v5 07/10] mk: Add rule for installing runtime files

2015-10-29 Thread Mario Carrillo
Add hierarchy-file support to the DPDK libraries, modules, binary files, nic bind file, cpu layout file and documentation, when invoking "make install-fhs" (filesystem hierarchy standard) runtime files will be by default installed in: $(DESTDIR)/$(RTE_PREFIX)/$(BIN_DIR) where BIN_DIR=/usr/bin

[dpdk-dev] [PATCH v5 06/10] mk: Add rule for installing sdk files

2015-10-29 Thread Mario Carrillo
Add hierarchy-file support to the DPDK makefiles, scripts, examples, tools, config files and headers, when invoking "make install-sdk" makefiles, scripts, examples, tools, config files will be installed in: $(DESTDIR)/$(RTE_PREFIX)/$(SDK_DIR) and headers will be installed in:

[dpdk-dev] [PATCH v5 05/10] mk: Add rule for installing documentation

2015-10-29 Thread Mario Carrillo
Add hierarchy-file support to the DPDK documentation, when invoking "make install-doc" documentation files will be installed in: $(DESTDIR)/$(RTE_PREFIX)/$(DOC_DIR) where DOC_DIR=$(DESTDIR)/$(RTE_PREFIX)/share/doc/dpdk by default, you can override RTE_PREFIX and DOC_DIR vars. This hierarchy is

[dpdk-dev] [PATCH v5 04/10] mk: Add rule for installing modules

2015-10-29 Thread Mario Carrillo
Add hierarchy-file support to the DPDK modules, when invoking "make install-mod" modules will be installed in: $(DESTDIR)/$(KMOD_DIR) if RTE_EXEC_ENV=linuxapp then KMOD_DIR=/lib/modules/$(uname -r)/extra/drivers/dpdk else KMOD_DIR=/boot/modules by default, you can override KMOD_DIR var. This

[dpdk-dev] [PATCH v5 03/10] mk: Add rule for installing libraries

2015-10-29 Thread Mario Carrillo
Add hierarchy-file support to the DPDK libraries, when invoking "make install-lib" libraries will be installed in: $(DESTDIR)/$(RTE_PREFIX)/$(LIB_DIR) where LIB_DIR=/usr/lib by default, you can override RTE_PREFIX and LIB_DIR vars. This hierarchy is based on:

[dpdk-dev] [PATCH v5 02/10] mk: Add rule for installing app files

2015-10-29 Thread Mario Carrillo
Add hierarchy-file support to the DPDK app files, nic bind file and cpu layout file when invoking "make install-bin" app files will be installed in: $(DESTDIR)/$(RTE_PREFIX)/$(BIN_DIR) where BIN_DIR=/usr/local/bin by default, you can override RTE_PREFIX and BIN_DIR vars. This hierarchy is based

[dpdk-dev] [PATCH v5 01/10] mk: Add rule for installing headers

2015-10-29 Thread Mario Carrillo
Add hierarchy-file support to the DPDK headers, when invoking "make install-headers" headers will be installed in: $(DESTDIR)/$(RTE_PREFIX)/$(INCLUDE_DIR) where INCLUDE_DIR=/include/dpdk and RTE_PREFIX=/usr/local by default, you can override RTE_PREFIX and INCLUDE_DIR vars. This hierarchy is based

[dpdk-dev] [PATCH v5 00/10] Add instalation rules for dpdk files.

2015-10-29 Thread Mario Carrillo
DPDK package lacks of a mechanism to install libraries, headers applications, kernel modules and sdk files to a file system tree. This patch set allows to install files according to the next proposal: http://www.freedesktop.org/software/systemd/man/file-hierarchy.html v5: When "make install" is

[dpdk-dev] [PATCH 0/5] ARMv8 additions to ARMv7 support

2015-10-29 Thread Thomas Monjalon
Thanks David. 2015-10-29 17:29, David Hunt: > This is an updated patchset for ARMv8 that now sits on top of the previously > submitted ARMv7 code by RehiveTech. It re-uses a lot of that code, and splits > some header files into 32-bit and 64-bit versions, so uses the same arm > include >

[dpdk-dev] [PATCH v4 0/7] e1000: add rx interrupt support

2015-10-29 Thread Thomas Monjalon
2015-10-29 23:56, Yong Liu: > This patch set will enable interrup for physical and emulated e1000 device. > Rx queue interrupt will work with uio driver or vfio driver with msi mode. > l3fwd-power will disable interrupt immediately when wake-up for that e1000 not > support interrupt auto clear. >

[dpdk-dev] 答复: [PATCH] lib/lpm:fix two issues in the delete_depth_small()

2015-10-29 Thread 那娜(恒月)
HI Bruce:How about this, I send you the test program , then you can?demonstrate?the?bugs .? ? If you?demonstrate?the?bugs ,then you can get the lpm bug's fix into?the?release first.Further ,we explicitly discuss the details about the unit test and make it a patch of dpdk.Thank

[dpdk-dev] [PATCH 4/5] mk: add support for armv8 on top of armv7

2015-10-29 Thread Jan Viktorin
On Thu, 29 Oct 2015 17:29:53 + David Hunt wrote: > + > +CONFIG_RTE_LIBRTE_LPM=n > +CONFIG_RTE_LIBRTE_ACL=n > +CONFIG_RTE_LIBRTE_TABLE=n > +CONFIG_RTE_LIBRTE_PIPELINE=n > + > +# This is used to adjust the generic arm timer to align with the cpu cycle > count. >

[dpdk-dev] [PATCH 4/5] mk: add support for armv8 on top of armv7

2015-10-29 Thread Jan Viktorin
On Thu, 29 Oct 2015 17:29:53 + David Hunt wrote: > +* **Introduce ARMv7 and ARMv8 architectures** > > - It is now possible to build DPDK for the ARMv7 platform and test with > - virtual PMD drivers. > + * It is now possible to build DPDK for the ARMv7 and ARMv8 platforms. > + * ARMv7

[dpdk-dev] [PATCH 3/5] eal: fix compilation for armv8 64-bit

2015-10-29 Thread Jan Viktorin
Hello Dave, On Thu, 29 Oct 2015 17:29:52 + David Hunt wrote: > Signed-off-by: David Hunt > --- > lib/librte_eal/common/include/arch/arm/rte_cpuflags.h | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/lib/librte_eal/common/include/arch/arm/rte_cpuflags.h >

[dpdk-dev] [PATCH v6 28/28] bonding: remove pci device

2015-10-29 Thread Bernard Iremonger
remove pci_dev, pci_drv, rte_bond_pmd and pci_id_table. handle numa_node for vdevs handle RTE_ETH_DEV_INTR_LSC for vdevs rename valid_bonded_device to check_for_bonded_device remove branches on pci_dev Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond_8023ad.c | 4 +--

[dpdk-dev] [PATCH v6 27/28] mpipe: remove pci device

2015-10-29 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/mpipe/mpipe_tilegx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/mpipe/mpipe_tilegx.c b/drivers/net/mpipe/mpipe_tilegx.c index cf740be..1ed41ce 100644 --- a/drivers/net/mpipe/mpipe_tilegx.c +++

[dpdk-dev] [PATCH v6 26/28] xenvirt: remove pci device

2015-10-29 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/xenvirt/rte_eth_xenvirt.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/net/xenvirt/rte_eth_xenvirt.c b/drivers/net/xenvirt/rte_eth_xenvirt.c index 1895b16..1f00d03 100644 ---

[dpdk-dev] [PATCH v6 25/28] af_packet: remove pci device

2015-10-29 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/af_packet/rte_eth_af_packet.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c index 2f14482..3237e6e 100644 ---

[dpdk-dev] [PATCH v6 24/28] pcap: remove pci device

2015-10-29 Thread Bernard Iremonger
remove rte_pcap_pmd and pci_dev. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/pcap/rte_eth_pcap.c | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c index

[dpdk-dev] [PATCH v6 23/28] ring: remove pci device

2015-10-29 Thread Bernard Iremonger
remove rte_ring_pmd and pci_dev. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/ring/rte_eth_ring.c | 24 1 file changed, 24 deletions(-) diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index 77ac23a..faa5759

[dpdk-dev] [PATCH v6 22/28] null: remove pci device

2015-10-29 Thread Bernard Iremonger
remove rte_null_pmd and pci_dev. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/null/rte_eth_null.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index

[dpdk-dev] [PATCH v6 21/28] librte_ether: remove branches on pci_dev

2015-10-29 Thread Bernard Iremonger
use dev_type to distinguish between vdev's and pdev's. remove pci_dev branches. update release notes. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- doc/guides/rel_notes/release_2_2.rst | 3 +++ lib/librte_ether/rte_ethdev.c| 40 +++- 2

[dpdk-dev] [PATCH v6 20/28] bonding: copy device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
initialise dev_flags, kdrv, driver, drv_name and numa_node fields in eth_dev data. Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bond_api.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/bonding/rte_eth_bond_api.c

[dpdk-dev] [PATCH v6 19/28] mpipe: copy device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
initialise dev_flags, kdrv, driver, drv_name and numa_node in eth_dev data. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/mpipe/mpipe_tilegx.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/mpipe/mpipe_tilegx.c

[dpdk-dev] [PATCH v6 18/28] xenvirt: copy device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
Initialise dev_flags, driver, kdrv, drv_name and numa_node in eth_dev data. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/xenvirt/rte_eth_xenvirt.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/xenvirt/rte_eth_xenvirt.c

[dpdk-dev] [PATCH v6 17/28] af_packet: copy device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
initialise dev_flags, driver, kdrv, drv_name and numa_node fields in eth_dev data. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/af_packet/rte_eth_af_packet.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

[dpdk-dev] [PATCH v6 16/28] pcap: copy device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
initialise dev_flags, driver, drv_name, kdrv and numa_node fields in eth_dev data Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/pcap/rte_eth_pcap.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/net/pcap/rte_eth_pcap.c

[dpdk-dev] [PATCH v6 15/28] ring: copy device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
initialise dev_flags, driver, drv_name, kdrv and numa_node fields in eth_dev data. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/ring/rte_eth_ring.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/net/ring/rte_eth_ring.c

[dpdk-dev] [PATCH v6 14/28] null: copy device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
initialise dev_flags, driver, drv_name, kdrv and numa_node fields in eth_dev data Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/null/rte_eth_null.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/net/null/rte_eth_null.c

[dpdk-dev] [PATCH v6 13/28] vmxnet3: copy pci device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index a70be5c..2beee3e 100644 ---

[dpdk-dev] [PATCH v6 12/28] virtio: copy pci device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/virtio/virtio_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 02f698a..1286623 100644 ---

[dpdk-dev] [PATCH v6 11/28] mlx4: copy pci device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/mlx4/mlx4.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index af31573..d2497cc 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -4972,6

[dpdk-dev] [PATCH v6 10/28] enic: copy pci device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/enic/enic_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index e385560..95baa8a 100644 --- a/drivers/net/enic/enic_ethdev.c +++

[dpdk-dev] [PATCH v6 08/28] bnx2x: copy pci device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/bnx2x/bnx2x_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_ethdev.c index 09b5920..fbcd5f4 100644 --- a/drivers/net/bnx2x/bnx2x_ethdev.c +++

[dpdk-dev] [PATCH v6 07/28] fm10k: copy pci device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/fm10k/fm10k_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index a69c990..12be227 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++

[dpdk-dev] [PATCH v6 06/28] i40e: copy pci device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/i40e/i40e_ethdev.c| 3 +++ drivers/net/i40e/i40e_ethdev_vf.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 478e94d..de8f4f3 100644 ---

[dpdk-dev] [PATCH v6 05/28] e1000: copy pci device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/e1000/em_ethdev.c | 3 +++ drivers/net/e1000/igb_ethdev.c | 5 + 2 files changed, 8 insertions(+) diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 912f5dd..aa1bf48 100644 ---

[dpdk-dev] [PATCH v6 04/28] ixgbe: copy pci device info to eth_dev data

2015-10-29 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index ec2918c..08b5cbb 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++

[dpdk-dev] [PATCH v6 03/28] librte_ether: add function rte_eth_copy_dev_info

2015-10-29 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- lib/librte_ether/rte_ethdev.c | 14 ++ lib/librte_ether/rte_ethdev.h | 14 ++ lib/librte_ether/rte_ether_version.map | 7 +++ 3 files changed, 35 insertions(+) diff --git

[dpdk-dev] [PATCH v6 02/28] librte_ether: add fields from rte_pci_driver to rte_eth_dev_data

2015-10-29 Thread Bernard Iremonger
add dev_flags to rte_eth_dev_data, add macros for dev_flags. add kdrv to rte_eth_dev_data. add numa_node to rte_eth_dev_data. add drv_name to rte_eth_dev_data. Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- lib/librte_ether/rte_ethdev.h | 15 +++ 1 file changed, 15

[dpdk-dev] [PATCH v6 01/28] librte_eal: add RTE_KDRV_NONE for vdevs

2015-10-29 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger Acked-by: Bruce Richardson --- lib/librte_eal/common/include/rte_pci.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h index 83e3c28..334c12e 100644 ---

[dpdk-dev] [PATCH v6 00/28] remove pci driver from vdevs

2015-10-29 Thread Bernard Iremonger
There is a dummy pci driver in the vdev PMD's at present. This patch set removes the pci driver from the vdev PMD's. Changes have been made to librte_ether to handle vdevs and pdevs in the same way. The following vdev PMD's have had the pci driver removed: null ring bonding pcap af_packet

[dpdk-dev] [PATCH v6 0/3] vhost: eventfd_link refactoring

2015-10-29 Thread Xie, Huawei
On 10/29/2015 2:34 AM, Pavel Boldin wrote: > The patchset contains an attempt at the refactoring the `eventfd_link` > kernel module that is used to steal an FD in DPDK. > > The first patch refactors old EVENTFD_COPY handler fixing the codepath > and errors returned from the kernel space. This

[dpdk-dev] dpdk pre-patch testing introduction

2015-10-29 Thread Thomas Monjalon
2015-10-29 15:19, Liu, Yong: > So far, we only enabled one platform to run automatic testing. > This platform installed Fedora 20 with Linux 3.18.9 and Intel Niantic NIC. Thanks for offering this service. > Currently the patch testing only run unit test and basic function test on > this

[dpdk-dev] [PATCH 5/5] test: add checks for cpu flags on armv8

2015-10-29 Thread David Hunt
Signed-off-by: David Hunt --- app/test/test_cpuflags.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c index 557458f..1689048 100644 --- a/app/test/test_cpuflags.c +++ b/app/test/test_cpuflags.c @@ -1,4 +1,4

[dpdk-dev] [PATCH 4/5] mk: add support for armv8 on top of armv7

2015-10-29 Thread David Hunt
Signed-off-by: David Hunt --- MAINTAINERS| 3 +- config/defconfig_arm64-armv8a-linuxapp-gcc | 56 + doc/guides/rel_notes/release_2_2.rst | 7 ++-- mk/arch/arm64/rte.vars.mk | 58 ++

[dpdk-dev] [PATCH 3/5] eal: fix compilation for armv8 64-bit

2015-10-29 Thread David Hunt
Signed-off-by: David Hunt --- lib/librte_eal/common/include/arch/arm/rte_cpuflags.h | 9 + 1 file changed, 9 insertions(+) diff --git a/lib/librte_eal/common/include/arch/arm/rte_cpuflags.h b/lib/librte_eal/common/include/arch/arm/rte_cpuflags.h index 7ce9d14..27d49c0 100644 ---

[dpdk-dev] [PATCH 2/5] eal: split arm rte_prefetch.h into 32-bit and 64-bit versions

2015-10-29 Thread David Hunt
Signed-off-by: David Hunt --- .../common/include/arch/arm/rte_prefetch.h | 31 +++ .../common/include/arch/arm/rte_prefetch_32.h | 61 ++ .../common/include/arch/arm/rte_prefetch_64.h | 61 ++ 3 files changed, 128 insertions(+),

[dpdk-dev] [PATCH 1/5] eal: split arm rte_memcpy.h into 32-bit and 64-bit versions

2015-10-29 Thread David Hunt
Signed-off-by: David Hunt --- .../common/include/arch/arm/rte_memcpy.h | 302 +-- .../common/include/arch/arm/rte_memcpy_32.h| 334 + .../common/include/arch/arm/rte_memcpy_64.h| 308 +++ 3 files changed, 647

[dpdk-dev] [PATCH 0/5] ARMv8 additions to ARMv7 support

2015-10-29 Thread David Hunt
Hi DPDK Community. This is an updated patchset for ARMv8 that now sits on top of the previously submitted ARMv7 code by RehiveTech. It re-uses a lot of that code, and splits some header files into 32-bit and 64-bit versions, so uses the same arm include directory. Tested on an XGene 64-bit

[dpdk-dev] [PATCH v3 8/8] doc: release note update for e1000 intr mode

2015-10-29 Thread Yong Liu
Signed-off-by: Marvin Liu diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index be6f827..7655148 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc/guides/rel_notes/release_2_2.rst @@ -23,6 +23,7 @@ New Features * **Added vhost-user multiple

[dpdk-dev] [PATCH v3 7/8] l3fwd-power: disable interrupt when wake up from sleep

2015-10-29 Thread Yong Liu
Signed-off-by: Marvin Liu diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index 8bb88ce..9175989 100644 --- a/examples/l3fwd-power/main.c +++ b/examples/l3fwd-power/main.c @@ -798,6 +798,7 @@ sleep_until_rx_interrupt(int num) port_id = ((uintptr_t)data) >>

[dpdk-dev] [PATCH v3 6/8] e1000: lsc interrupt setup function only enable itself

2015-10-29 Thread Yong Liu
Only mask lsc interrupt bit when setup device interrupt. Signed-off-by: Marvin Liu diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index b1e0c3c..d2d017c 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -1343,11 +1343,14 @@

[dpdk-dev] [PATCH v3 4/8] e1000: add rxq interrupt handler

2015-10-29 Thread Yong Liu
When datapath rxq interupt is enabled, enable related device rxq. Remove the interrupt handler after device stopped. Signed-off-by: Marvin Liu diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 6dc2534..fc3cc1e 100644 --- a/drivers/net/e1000/em_ethdev.c +++

[dpdk-dev] [PATCH v3 3/8] e1000: add ethdev rxq enable and disable function

2015-10-29 Thread Yong Liu
Implement rxq interrupt related functions in eth_dev_ops structure. Signed-off-by: Marvin Liu diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 39f330a..6dc2534 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -108,9 +108,13 @@

[dpdk-dev] [PATCH v3 2/8] e1000: separate lsc and rxq interrupt disable function

2015-10-29 Thread Yong Liu
Separate lsc and rxq interrupt for they have different interrupt handlers. Signed-off-by: Marvin Liu diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 3be8269..39f330a 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -108,11

[dpdk-dev] [PATCH v3 1/8] e1000: add rx interrupt support

2015-10-29 Thread Yong Liu
Enable rx interrupt support on e1000 physical and emulated device. Signed-off-by: Marvin Liu diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index 912f5dd..3be8269 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -81,6 +81,7 @@ static

[dpdk-dev] [PATCH v3 0/8] interrupt mode for e1000

2015-10-29 Thread Yong Liu
This patch set will enable interrup for physical and emulated e1000 device. Rx queue interrupt will work with uio driver or vfio driver with msi mode. l3fwd-power will disable interrupt immediately when wake-up for that e1000 not support interrupt auto clear. LSC and rxq interrupt will be

[dpdk-dev] [PATCH v4 16/16] doc: release notes update for fm10k Vector PMD

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Update 2.2 release notes, add descriptions for Vector PMD implementation in fm10k driver. Signed-off-by: Chen Jing D(Mark) --- doc/guides/rel_notes/release_2_2.rst |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git

[dpdk-dev] [PATCH v4 15/16] fm10k: fix a crash issue in vector RX func

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Vector RX function will process 4 packets at a time. When the RX ring wrapps to the tail and the left descriptor size is not multiple of 4, SW will overwrite memory that not belongs to it and cause crash. The fix will allocate additional 4 HW/SW

[dpdk-dev] [PATCH v4 14/16] fm10k: Add function to decide best TX func

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add func fm10k_set_tx_function to decide the best TX func in fm10k_dev_tx_init. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h|1 + drivers/net/fm10k/fm10k_ethdev.c | 38 -- 2

[dpdk-dev] [PATCH v4 13/16] fm10k: introduce 2 funcs to reset TX queue and mbuf release

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add 2 funcs to reset TX queue and mbuf release when Vector TX applied. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k_rxtx_vec.c | 68 1 files changed, 68 insertions(+), 0 deletions(-) diff

[dpdk-dev] [PATCH v4 12/16] fm10k: use func pointer to reset TX queue and mbuf release

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Vector TX use different way to manage TX queue, it's necessary to use different functions to reset TX queue and release mbuf in TX queue. So, introduce 2 function pointers to do such ops. Signed-off-by: Chen Jing D(Mark) ---

[dpdk-dev] [PATCH v4 10/16] fm10k: add func to release mbuf in case Vector RX applied

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Since Vector RX use different variables to trace RX HW ring, it leads to need different func to release mbuf properly. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h |1 + drivers/net/fm10k/fm10k_ethdev.c |6

[dpdk-dev] [PATCH v4 09/16] fm10k: add function to decide best RX function

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add func fm10k_set_rx_function to decide best RX func in fm10k_dev_rx_init Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h|1 + drivers/net/fm10k/fm10k_ethdev.c | 36 2 files

[dpdk-dev] [PATCH v4 08/16] fm10k: add Vector RX scatter function

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add func fm10k_recv_scattered_pkts_vec to receive chained packets with SSE instructions. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h |2 + drivers/net/fm10k/fm10k_rxtx_vec.c | 88

[dpdk-dev] [PATCH v4 07/16] fm10k: add func to do Vector RX condition check

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add func fm10k_rx_vec_condition_check to check if Vector RX func can be applied. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h |1 + drivers/net/fm10k/fm10k_rxtx_vec.c | 31 +++ 2

[dpdk-dev] [PATCH v4 06/16] fm10k: add Vector RX function

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add func fm10k_recv_raw_pkts_vec to parse raw packets, in which includes possible chained packets. Add func fm10k_recv_pkts_vec to receive single mbuf packet. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h |1 +

[dpdk-dev] [PATCH v4 05/16] fm10k: add 2 functions to parse pkt_type and offload flag

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add 2 functions, in which using SSE instructions to parse RX desc to get pkt_type and ol_flags in mbuf. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k_rxtx_vec.c | 127 1 files changed, 127

[dpdk-dev] [PATCH v4 04/16] fm10k: add func to re-allocate mbuf for RX ring

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add function fm10k_rxq_rearm to re-allocate mbuf for used desc in RX HW ring. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h | 11 drivers/net/fm10k/fm10k_ethdev.c |3 + drivers/net/fm10k/fm10k_rxtx_vec.c |

[dpdk-dev] [PATCH v4 03/16] fm10k: Add a new func to initialize all parameters

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add new function fm10k_params_init to initialize all fm10k related variables. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k_ethdev.c | 35 +++ 1 files changed, 23 insertions(+), 12 deletions(-)

[dpdk-dev] [PATCH v4 02/16] fm10k: add vPMD pre-condition check for each RX queue

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add condition check in rx_queue_setup func. If number of RX desc can't satisfy vPMD requirement, record it into a variable. Or call fm10k_rxq_vec_setup to initialize Vector RX. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/fm10k.h

[dpdk-dev] [PATCH v4 01/16] fm10k: add new vPMD file

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Add new file fm10k_rxtx_vec.c and add it into compiling. Signed-off-by: Chen Jing D(Mark) --- drivers/net/fm10k/Makefile |1 + drivers/net/fm10k/fm10k_rxtx_vec.c | 45 2 files changed, 46

[dpdk-dev] [PATCH v4 00/16] Vector Rx/Tx PMD implementation for fm10k

2015-10-29 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" v4: - Clear HW/SW ring content after allocating mbuf failed. v3: - Add a blank line after variable definition. - Do floor alignment for passing in argument nb_pkts to avoid memory overwritten. - Only scan max of 32 desc in scatter Rx

[dpdk-dev] [PATCH] virtio: fix size of mac_addrs array in virtio ports

2015-10-29 Thread Yuanhan Liu
On Thu, Oct 29, 2015 at 09:46:15AM +0100, David Marchand wrote: > From: Ivan Boule > > Make the virtio PMD allocate the array of unicast MAC addresses with > the maximum of entries (VIRTIO_MAX_MAC_ADDRS) that it exports. > > Signed-off-by: Ivan Boule > Signed-off-by: David Marchand > --- >

[dpdk-dev] [PATCH v3 0/8] interrupt mode for e1000

2015-10-29 Thread Yong Liu
v3 changes: add in release note v2 changes: describe interrupt mode work with uio and vfio+msi replace attribuite __unused__ with __rte_unused This patch set will enable interrup for physical and emulated e1000 device. Rx queue interrupt will work with uio driver or vfio

[dpdk-dev] [PATCH v2 10/10] doc: update testpmd guide and release note

2015-10-29 Thread Jingjing Wu
Signed-off-by: Jingjing Wu --- doc/guides/rel_notes/release_2_2.rst| 6 ++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 12 +++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst

[dpdk-dev] [PATCH v2 09/10] app/testpmd: add command to display DCB info

2015-10-29 Thread Jingjing Wu
This patch adds a command to display DCB info in ports. Signed-off-by: Jingjing Wu --- app/test-pmd/cmdline.c | 15 ++- app/test-pmd/config.c | 43 +++ app/test-pmd/testpmd.h | 1 + 3 files changed, 54 insertions(+), 5 deletions(-) diff

[dpdk-dev] [PATCH v2 08/10] app/testpmd: set up DCB forwarding based on traffic class

2015-10-29 Thread Jingjing Wu
This patch changes the testpmd DCB forwarding stream to make it based on traffic class. It also fixes some coding style issues. Signed-off-by: Jingjing Wu --- app/test-pmd/cmdline.c | 39 +++- app/test-pmd/config.c | 159 +

[dpdk-dev] [PATCH v2 07/10] i40e: get_dcb_info ops implement

2015-10-29 Thread Jingjing Wu
This patch implements the get_dcb_info ops in i40e driver. Signed-off-by: Jingjing Wu --- drivers/net/i40e/i40e_ethdev.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index

[dpdk-dev] [PATCH v2 06/10] ixgbe: get_dcb_info ops implement

2015-10-29 Thread Jingjing Wu
This patch implements the get_dcb_info ops in ixgbe driver. Signed-off-by: Jingjing Wu --- drivers/net/ixgbe/ixgbe_ethdev.c | 80 1 file changed, 80 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index

[dpdk-dev] [PATCH v2 05/10] ethdev: new API to get dcb related information

2015-10-29 Thread Jingjing Wu
This patch adds one new API to get dcb related info. rte_eth_dev_get_dcb_info Signed-off-by: Jingjing Wu --- lib/librte_ether/rte_ethdev.c | 18 +++ lib/librte_ether/rte_ethdev.h | 54 +++ 2 files changed, 72 insertions(+) diff --git

[dpdk-dev] [PATCH v2 04/10] ixgbe: enable DCB+RSS multi-queue mode

2015-10-29 Thread Jingjing Wu
This patch enables DCB+RSS multi-queue mode, and also fix some coding style. Signed-off-by: Jingjing Wu --- drivers/net/ixgbe/ixgbe_rxtx.c | 48 +- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c

[dpdk-dev] [PATCH v2 03/10] i40e: enable DCB feature on FVL

2015-10-29 Thread Jingjing Wu
This patch enables DCB feature on Intel XL710/X710 NICs. It includes: Receive queue classification based on traffic class Round Robin ETS schedule (rx and tx) Priority flow control Signed-off-by: Jingjing Wu --- drivers/net/i40e/i40e_ethdev.c | 532

[dpdk-dev] [PATCH v2 02/10] ethdev: move the multi-queue checking to specific drivers

2015-10-29 Thread Jingjing Wu
Differnet NIC has its specific constraint on the multi-queue configuration, so move the checking from ethdev lib to drivers. Signed-off-by: Jingjing Wu --- drivers/net/e1000/igb_ethdev.c | 84 - drivers/net/ixgbe/ixgbe_ethdev.c | 171 +

[dpdk-dev] [PATCH v2 01/10] ethdev: rename dcb_queue to dcb_tc in dcb config struct

2015-10-29 Thread Jingjing Wu
Signed-off-by: Jingjing Wu --- app/test-pmd/testpmd.c | 8 drivers/net/ixgbe/ixgbe_rxtx.c | 10 +- examples/vmdq_dcb/main.c | 4 ++-- lib/librte_ether/rte_ethdev.h | 14 +++--- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git

[dpdk-dev] Architecture Board Proposal

2015-10-29 Thread Thomas Monjalon
Hi Tim, 2015-10-29 15:21, O'Driscoll, Tim: > Scope > - > Issues that are within the scope of the Architecture Board include: > - Project scope/charter. What is and isn't within the scope of the project? > What happens if somebody wants to upstream a new library/capability and it's > not

  1   2   3   >