[dpdk-dev] [PATCH v3 17/25] virtio: Use port IO to get PCI resource.

2015-01-30 Thread Thomas Monjalon
Hi Changchun, 2015-01-29 15:24, Ouyang Changchun: > Make virtio not require UIO for some security reasons, this is to match > 6Wind's virtio-net-pmd. Thanks for your effort. I think port IO is a really interesting option but it needs more EAL rework to be correctly integrated. Then virtio-net-pm

[dpdk-dev] [PATCH] ixgbe: forbid building vpmd without Rx bulk alloc

2015-01-30 Thread Thomas Monjalon
CONFIG_RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC is a prerequisite of CONFIG_RTE_IXGBE_INC_VECTOR. Reported-by: Alexander Belyakov Signed-off-by: Thomas Monjalon --- lib/librte_pmd_ixgbe/Makefile | 4 1 file changed, 4 insertions(+) diff --git a/lib/librte_pmd_ixgbe/Makefile b/lib/librte_pmd_i

[dpdk-dev] [PATCH] ixgbe: Fix an unnecessary check in vf rss

2015-01-30 Thread Ouyang, Changchun
Hi PawelX > -Original Message- > From: Wodkowski, PawelX > Sent: Friday, January 30, 2015 12:14 AM > To: Ouyang, Changchun; Thomas Monjalon; Richardson, Bruce > Cc: dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH] ixgbe: Fix an unnecessary check in vf rss > > > -Original Message-

[dpdk-dev] [PATCH v3 00/18] ACL: New AVX2 classify method and several other enhancements.

2015-01-30 Thread Fu, JingguoX
Tested-by: Jingguo Fu - Tested Commit: 17f520d2cff8d69962824f28810f36e949a7184d - OS: Ubuntu14.04 3.13.0-24-generic - GCC: gcc version 4.8.2 - CPU: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz - NIC: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ [8086:10fb] (rev 01) - Default x86_64-native-linuxapp-

[dpdk-dev] [PATCH] igb: integrate flex filter to new API

2015-01-30 Thread zhida zang
changes: igb: remove old functions that deal with flex filter igb: add new functions that deal with flex filter(fit for new API) testpmd: change the entry for flex filter in cmdline testpmd: change function call to get flex filter in config doc: change doc that describes how to use flex filter rela

[dpdk-dev] [PATCH] scripts: enable extended tag of PCIe

2015-01-30 Thread zhida zang
As 'extended tag' of PCIe needs to be enabled for i40e high performance, Linux command of 'setpci' can be used to check and set the corresponding bit of 'extended tag' of PCIe configuration space. The script is to check and set the right bit in PCIe configuration space to enable 'extended tag'. S

[dpdk-dev] [PATCH 00/18] lib/librte_pmd_fm10k : fm10k pmd driver

2015-01-30 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" The patch set add poll mode driver for the host interface of Intel Red Rock Canyon silicon, which integrates NIC and switch functionalities. The patch set include below features: 1. Basic RX/TX functions for PF/VF. 2. Interrupt handling mechanism for PF/VF. 3. per queue

[dpdk-dev] [PATCH 02/18] Change config/ files to add macros for fm10k

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw Change config/common_bsdapp and config/common_linuxapp, add macros to control fm10k pmd driver compile for linux and bsd. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- config/common_bsdapp |9 + config/common_linuxapp |9 + 2 files cha

[dpdk-dev] [PATCH 04/18] fm10k: add fm10k device id

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw Add fm10k device ID list into rte_pci_dev_ids.h. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_eal/common/include/rte_pci_dev_ids.h | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/lib/librte_eal/common/i

[dpdk-dev] [PATCH 05/18] fm10k: Add code to register fm10k pmd PF driver

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add function to scan and initialize fm10k PF device. 2. Add implementation to register fm10k pmd PF driver. 3. Add 3 functions fm10k_dev_configure, fm10k_stats_get and fm10k_stats_get. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm1

[dpdk-dev] [PATCH 01/18] fm10k: add base driver

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw Base driver is developped and maintained by Intel ND team, includes basic functional service to Intel Red Rock Canyon silicon. Any suggestion on bug fix and improvement within this directory is welcome, but need this team to change and update. Signed-off-by: Chen Jing D(Mark) --

[dpdk-dev] [PATCH 03/18] fm10k: Add empty fm10k files

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw Define macros and basic data structure. Define rte_log wrapper functions. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/Makefile | 96 lib/librte_pmd_fm10k/fm10k.h | 224 + li

[dpdk-dev] [PATCH 06/18] fm10k: add reta update/requery functions

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add fm10k_reta_update and fm10k_reta_query functions. 2. Add fm10k_link_update and fm10k_dev_infos_get functions. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 161 +++ 1 files changed, 1

[dpdk-dev] [PATCH 07/18] fm10k: add rx_queue_setup/release function

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw Add fm10k_rx_queue_setup and fm10k_rx_queue_release functions. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 253 +++ 1 files changed, 253 insertions(+), 0 deletions(-) diff --git a/lib/lib

[dpdk-dev] [PATCH 08/18] fm10k: add tx_queue_setup/release function

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw Add fm10k_tx_queue_setup and fm10k_tx_queue_release functions. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 203 +++ 1 files changed, 203 insertions(+), 0 deletions(-) diff --git a/lib/lib

[dpdk-dev] [PATCH 09/18] fm10k: add RX/TX single queue start/stop function

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add 4 functions fm10k_dev_rx_queue_start, fm10k_dev_rx_queue_stop, fm10k_dev_tx_queue_start, and fm10k_dev_tx_queue_stop. 2. verify Rx packet buffer alignment is valid. Hardware requires specific alignment for Rx packet buffers. At least one of the following two con

[dpdk-dev] [PATCH 10/18] fm10k: add dev start/stop functions

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add function to initialize single RX queue. 2. Add function to initialize single TX queue. 3. Add fm10k_dev_start, fm10k_dev_stop and fm10k_dev_close functions. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 220 +

[dpdk-dev] [PATCH 11/18] fm10k: add receive and tranmit function

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add fm10k_recv_pkts and fm10k_xmit_pkts functions. 2. Link app function pointer to actual fm10k recv/xmit functions. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k.h|7 + lib/librte_pmd_fm10k/fm10k_ethdev.c |2 +

[dpdk-dev] [PATCH 12/18] fm10k: add PF RSS support

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Configure RSS in fm10k_dev_rx_init function. 2. Add fm10k_rss_hash_update and fm10k_rss_hash_conf_get to get and inquery RSS configuration. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 156 ++

[dpdk-dev] [PATCH 13/18] fm10k: Add scatter receive function

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add fm10k_recv_scattered_pkts function to receive jumbo frame and multi-segment packets. 2. Configure correct receive function in rx_init and dev_init. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k.h|3 + lib/librte_

[dpdk-dev] [PATCH 14/18] fm10k: add function to set vlan

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw Add fm10k_vlan_filter_set to set vlan. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/lib/librte_pmd_fm10k/fm10k_ethdev.c b/lib/librte_pmd

[dpdk-dev] [PATCH 16/18] fm10k: add PF and VF interrupt handling function

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add 2 interrupt handling functions, one for PF and one for VF. 2. Enable interrupt after completing initialization of NIC. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 268 +++ 1 files c

[dpdk-dev] [PATCH 17/18] Change lib/Makefile to add fm10k driver into compile list.

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/Makefile |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index 0ffc982..b1f3860 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -43,6 +43,7 @@ DIRS-$(CONFIG_RT

[dpdk-dev] [PATCH 18/18] Change mk/rte.app.mk to add fm10k lib into link

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- mk/rte.app.mk |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 4294d9a..87d8763 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -211,6 +211,10 @@ ifeq

[dpdk-dev] [PATCH 15/18] fm10k: Add SRIOV-VF support

2015-01-30 Thread Chen Jing D(Mark)
From: Jeff Shaw fm10k pmd driver will support both PF and VF device with single copy of code. The reason is NIC maps registers with same function in PF and VF to same PCI I/O address. Then, PF/VF drivers use same address to access registers belonging to it, HW will translatethe request to correct

[dpdk-dev] [DISCUSSION] : ERROR while running vhost example in dpdk-1.8

2015-01-30 Thread Linhaifeng
On 2015/1/30 0:48, Srinivasreddy R wrote: > EAL: 512 hugepages of size 2097152 reserved, but no mounted hugetlbfs found > for that size Maybe you haven't mount hugetlbfs. -- Regards, Haifeng

[dpdk-dev] [PATCH v5 00/13] Port Hotplug Framework

2015-01-30 Thread Tetsuya Mukawa
This patch series adds a dynamic port hotplug framework to DPDK. With the patches, DPDK apps can attach or detach ports at runtime. The basic concept of the port hotplug is like followings. - DPDK apps must have responsibility to manage ports. DPDK apps only know which ports are attached or deta

[dpdk-dev] [PATCH v5 01/13] eal_pci: Add flag to hold kernel driver type

2015-01-30 Thread Tetsuya Mukawa
From: Michael Qiu Currently, dpdk has no ability to know which type of driver( vfio-pci/igb_uio/uio_pci_generic) the device used. It only can check whether vfio is enabled or not staticly. It really useful to have the flag, becasue different type need to handle differently in runtime. For exampl

[dpdk-dev] [PATCH v5 02/13] eal_pci: pci memory map work with driver type

2015-01-30 Thread Tetsuya Mukawa
From: Michael Qiu With the driver type flag in struct rte_pci_dev, we do not need to always map uio devices with vfio related function when vfio enabled. Signed-off-by: Michael Qiu Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/linuxapp/eal/eal_pci.c | 30 +- 1

[dpdk-dev] [PATCH v5 03/13] eal/pci, ethdev: Remove assumption that port will not be detached

2015-01-30 Thread Tetsuya Mukawa
To remove assumption, do like followings. This patch adds "RTE_PCI_DRV_DETACHABLE" to drv_flags of rte_pci_driver structure. The flags indicates the driver can detach devices at runtime. Also remove assumption that port will not be detached. To remove the assumption. - Add 'attached' member to rt

[dpdk-dev] [PATCH v5 04/13] eal/pci: Consolidate pci address comparison APIs

2015-01-30 Thread Tetsuya Mukawa
This patch replaces pci_addr_comparison() and memcmp() of pci addresses by eal_compare_pci_addr(). v5: - Fix pci_scan_one to handle pt_driver correctly. v4: - Fix calculation method of eal_compare_pci_addr(). - Add parameter checking. Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/bsdapp/eal/

[dpdk-dev] [PATCH v5 05/13] ethdev: Add rte_eth_dev_free to free specified device

2015-01-30 Thread Tetsuya Mukawa
This patch adds rte_eth_dev_free(). The function is used for changing a attached status of the device that has specified name. v4: - Add paramerter checking. Signed-off-by: Tetsuya Mukawa --- lib/librte_ether/rte_ethdev.c | 20 lib/librte_ether/rte_ethdev.h | 11 +++

[dpdk-dev] [PATCH v5 06/13] eal, ethdev: Add a function and function pointers to close ether device

2015-01-30 Thread Tetsuya Mukawa
The patch adds function pointer to rte_pci_driver and eth_driver structure. These function pointers are used when ports are detached. Also the patch adds rte_eth_dev_uninit(). So far, it's not called by anywhere, but it will be called when port hotplug function is implemented. v4: - Add paramerter

[dpdk-dev] [PATCH v5 10/13] eal/pci: Cleanup pci driver initialization code

2015-01-30 Thread Tetsuya Mukawa
- Add rte_eal_pci_close_one_dirver() The function is used for closing the specified driver and device. - Add pci_invoke_all_drivers() The function is based on pci_probe_all_drivers. But it can not only probe but also close drivers. - Add pci_close_all_drivers() The function tries to find a

[dpdk-dev] [PATCH v5 11/13] ethdev: Add one dev_type paramerter to rte_eth_dev_allocate

2015-01-30 Thread Tetsuya Mukawa
This new parameter is needed to keep device type like physical or virtual. Port detaching processes are different between physical and virtual. This paramerter lets detaching function know a device type of the port. v4: - Fix comments of rte_eth_dev_type. Signed-off-by: Tetsuya Mukawa --- app/t

[dpdk-dev] [PATCH v5 07/13] ethdev: Add functions that will be used by port hotplug functions

2015-01-30 Thread Tetsuya Mukawa
The patch adds following functions. - rte_eth_dev_save() The function is used for saving current rte_eth_dev structures. - rte_eth_dev_get_changed_port() The function receives the rte_eth_dev structures, then compare these with current values to know which port is actually attached or deta

[dpdk-dev] [PATCH v5 08/13] eal/linux/pci: Add functions for unmapping igb_uio resources

2015-01-30 Thread Tetsuya Mukawa
The patch adds functions for unmapping igb_uio resources. The patch is only for Linux and igb_uio environment. VFIO and BSD are not supported. v5: - Fix pci_unmap_device() to check pt_driver. v4: - Add paramerter checking. - Add header file to determine if hotplug can be enabled. Signed-off-by: T

[dpdk-dev] [PATCH v5 09/13] eal/pci: Add a function to remove the entry of devargs list

2015-01-30 Thread Tetsuya Mukawa
The function removes the specified devargs entry from devargs_list. Also the patch adds sanity checking to rte_eal_devargs_add(). v5: - Change function definition of rte_eal_devargs_remove(). v4: - Fix sanity check code. Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/common/eal_common_devargs

[dpdk-dev] [PATCH v5 12/13] eal/pci: Add rte_eal_dev_attach/detach() functions

2015-01-30 Thread Tetsuya Mukawa
These functions are used for attaching or detaching a port. When rte_eal_dev_attach() is called, the function tries to realize the device name as pci address. If this is done successfully, rte_eal_dev_attach() will attach physical device port. If not, attaches virtual devive port. When rte_eal_dev_

[dpdk-dev] [PATCH v5 13/13] eal: Enable port hotplug framework in Linux

2015-01-30 Thread Tetsuya Mukawa
The patch enables CONFIG_RTE_LIBRTE_EAL_HOTPLUG in Linux configuration. Signed-off-by: Tetsuya Mukawa --- config/common_linuxapp | 5 + 1 file changed, 5 insertions(+) diff --git a/config/common_linuxapp b/config/common_linuxapp index 2f9643b..27d05be 100644 --- a/config/common_linuxapp +++

[dpdk-dev] [PATCH v5] librte_pmd_pcap: Add port hotplug support

2015-01-30 Thread Tetsuya Mukawa
This patch adds finalization code to free resources allocated by the PMD. v4: - Change function name. Signed-off-by: Tetsuya Mukawa --- lib/librte_pmd_pcap/rte_eth_pcap.c | 40 ++ 1 file changed, 40 insertions(+) diff --git a/lib/librte_pmd_pcap/rte_eth_pca

[dpdk-dev] [PATCH v5] testpmd: Add port hotplug support

2015-01-30 Thread Tetsuya Mukawa
The patch introduces following commands. - port attach [ident] - port detach [port_id] - attach: attaching a port - detach: detaching a port - ident: pci address of physical device. Or device name and paramerters of virtual device. (ex. :02:00.0, eth_pcap0,iface=eth0) - p

[dpdk-dev] [DISCUSSION] : ERROR while running vhost example in dpdk-1.8

2015-01-30 Thread Srinivasreddy R
thanks for your reply . even I face the same issue .any pointers to proceed .. ./build/app/vhost-switch -c f -n 4 -- -p 0x1 --dev-basename usvhost-1 --stats 2 EAL: Detected lcore 0 as core 0 on socket 0 EAL: Detected lcore 1 as core 1 on socket 0 EAL: Detected lcore 2 as core 2 on socket 0 EAL

[dpdk-dev] [PATCH v2 4/4] lib/librte_eal: Optimized memcpy in arch/x86/rte_memcpy.h for both SSE and AVX platforms

2015-01-30 Thread Wang, Zhihong
Hey Konstantin, This method does reduce code size but lead to significant performance drop. I think we need to keep the original code. Thanks Zhihong (John) > -Original Message- > From: Ananyev, Konstantin > Sent: Thursday, January 29, 2015 11:18 PM > To: Wang, Zhihong; dev at dpdk.org

[dpdk-dev] [DISCUSSION] : ERROR while running vhost example in dpdk-1.8

2015-01-30 Thread Srinivasreddy R
hi, May be I am missing something regarding hugetlbfs . I performed below steps for hugetlbfs . I am running on Ubuntu 14.04.1 LTS. cat /proc/cmdline BOOT_IMAGE=/boot/vmlinuz-3.13.0-24-generic root=UUID=628ff32b-dede-4b47-bd13-893c13c18d00 ro quiet splash hugepagesz=2M hugepages=512 default_hugep

[dpdk-dev] [PATCH 04/17] ixgbe: support of unified packet type

2015-01-30 Thread Zhang, Helin
Hi Bruce > -Original Message- > From: Richardson, Bruce > Sent: Friday, January 30, 2015 7:30 AM > To: Zhang, Helin > Cc: dev at dpdk.org; Cao, Waterman; Liang, Cunming; Liu, Jijiang; Ananyev, > Konstantin > Subject: Re: [PATCH 04/17] ixgbe: support of unified packet type > > On Thu, Jan

[dpdk-dev] Increasing MAX_RX_QUEUE_PER_LCORE value

2015-01-30 Thread Srinivasan J
I don't see any example dpdk apps using a value greater than 16 for MAX_RX_QUEUE_PER_LCORE. Is there any specific reason (say performance) why this is set to 16? Thanks, Srini

[dpdk-dev] [PATCH 00/12] qemu vhost-user support

2015-01-30 Thread Huawei Xie
vhost-user supports passing vring information to a seperate vhost enabled process, normally a user space vSwitch, through unix domain socket. In previous DPDK version, we implement a user space character device driver vhost-cuse in user space DPDK process. vring informations are passed to the driv

[dpdk-dev] [PATCH 01/12] lib/librte_vhost: enable VIRTIO_NET_F_CTRL_RX

2015-01-30 Thread Huawei Xie
VIRTIO_NET_F_CTRL_RX is dependant on VIRTIO_NET_F_CTRL_VQ. Observed that virtio-net driver in guest would crash with only CTRL_RX enabled. In virtnet_send_command: /* Caller should know better */ BUG_ON(!virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VQ) || (out +

[dpdk-dev] [PATCH 02/12] lib/librte_vhost: seperate vhost cuse driver from vhost common logic

2015-01-30 Thread Huawei Xie
create vhost_cuse directory move vhost-net-cdev.c into vhost_cuse directory vhost-cuse driver will be splitted into two parts: cuse driver specific message handling and common vhost message handling logic. cuse driver specific message handling is in vhost_cuse directory. vhost ioctl mes

[dpdk-dev] [PATCH 03/12] lib/librte_vhost: rename vhost-net-cdev.h to vhost-net.h

2015-01-30 Thread Huawei Xie
This file defines common operations provided by virtio-net(.c). Signed-off-by: Huawei Xie --- lib/librte_vhost/vhost-net-cdev.h| 113 --- lib/librte_vhost/vhost-net.h | 113 +++ lib/librte_vhost/vhost_cuse/vhost-net-cdev

[dpdk-dev] [PATCH 05/12] lib/librte_vhost: copy host_memory_map from virtio-net.c to a new file virtio-net-cdev.c

2015-01-30 Thread Huawei Xie
Signed-off-by: Huawei Xie --- lib/librte_vhost/vhost_cuse/virtio-net-cdev.c | 258 ++ 1 file changed, 258 insertions(+) create mode 100644 lib/librte_vhost/vhost_cuse/virtio-net-cdev.c diff --git a/lib/librte_vhost/vhost_cuse/virtio-net-cdev.c b/lib/librte_vhost/vhost_c

[dpdk-dev] [PATCH 06/12] lib/librte_vhost: make host_memory_map more generic

2015-01-30 Thread Huawei Xie
This functions accepts a virtual address and pid(qemu), and maps it into current process(vhost)'s address space. The memory behind the virtual address should be backed by a file(normally a hugepage file), and virtual address should be the starting address. Signed-off-by: Huawei Xie --- lib/lib

[dpdk-dev] [PATCH 04/12] lib/librte_vhost: move fd copying(from qemu process into vhost process) to eventfd_copy.c

2015-01-30 Thread Huawei Xie
eventfd copy is vhost-cuse specific. vhost-user doesn't need eventfd kernel module to copy fds between processes. fd is automatically installed into target process through unix domain socket. Signed-off-by: Huawei Xie --- lib/librte_vhost/Makefile| 2 +- lib/librte_vhost/vho

[dpdk-dev] [PATCH 08/12] lib/librte_vhost: add select based event driven processing

2015-01-30 Thread Huawei Xie
for more generic event driven processing, refer: http://libevent.org/ Signed-off-by: Huawei Xie --- lib/librte_vhost/vhost_user/fd_man.c | 207 +++ lib/librte_vhost/vhost_user/fd_man.h | 64 +++ 2 files changed, 271 insertions(+) create mode 100

[dpdk-dev] [PATCH 07/12] lib/librte_vhost: split set_memory_table into two parts

2015-01-30 Thread Huawei Xie
set_memory_table message is processed in two places. * cuse_set_memory_table in virtio-net-cdev.c * set_memory_table in virtio-net.c vhost-cuse or vhost-user receives set_memory_region message from qemu, maps guest memory into current process, prepares valid memory regions, and then passes valid r

[dpdk-dev] [PATCH 09/12] lib/librte_vhost: free memory when receive new set_memory_table message in vhost-cuse

2015-01-30 Thread Huawei Xie
Signed-off-by: Huawei Xie --- lib/librte_vhost/vhost_cuse/virtio-net-cdev.c | 12 ++-- lib/librte_vhost/virtio-net.h | 43 +++ 2 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 lib/librte_vhost/virtio-net.h diff --git a/lib/librte_

[dpdk-dev] [PATCH 11/12] lib/librte_vhost: set dev->ifname in vhost-user

2015-01-30 Thread Huawei Xie
for vhost-cuse, ifname is the name of the tap device for vhost-user, ifname is the name of the unix domain socket path * provide a common set_ifname ops in virtio-net.c * redefine the size of dev->ifname to fit both vhost-cuse and vhost-user Signed-off-by: Huawei Xie --- lib/librte_vhost/rte_vi

[dpdk-dev] [PATCH 12/12] lib/librte_vhost: support calling rte_vhost_driver_register after rte_vhost_driver_session_start

2015-01-30 Thread Huawei Xie
add mutext to protect fdset Signed-off-by: Huawei Xie --- lib/librte_vhost/vhost_user/fd_man.c | 39 +++- lib/librte_vhost/vhost_user/fd_man.h | 2 ++ lib/librte_vhost/vhost_user/vhost-net-user.c | 19 +- 3 files changed, 48 insertions(+), 12

[dpdk-dev] [PATCH 10/12] lib/librte_vhost: vhost user support

2015-01-30 Thread Huawei Xie
In rte_vhost_driver_register(), vhost unix domain socket listener fd is created and added to the selected fdset. In rte_vhost_driver_session_start(), fds in the fdset are checked for processing. If there is new connection on listener fd from qemu, connection fd accepted is added to the selected f

[dpdk-dev] [PATCH] examples/vhost: fix segfault when link_vmdq fails

2015-01-30 Thread Huawei Xie
Signed-off-by: Huawei Xie --- examples/vhost/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 04f0118..3a35359 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c @@ -1308,8 +1308,8 @@ switch_worker(__att

[dpdk-dev] [PATCH] examples/vhost: fix segfault when link_vmdq fails

2015-01-30 Thread Ouyang, Changchun
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei Xie > Sent: Friday, January 30, 2015 3:14 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] examples/vhost: fix segfault when link_vmdq > fails > > Signed-off-by: Huawei Xie Acked-by: Changchun Ou

[dpdk-dev] [PATCH] vhost: notify guest to fill buffer when there is no buffer

2015-01-30 Thread Xu, Qian Q
Haifeng Could you give more information so that we can reproduce your issue? Thanks. 1. What's your dpdk package, based on which branch, with Huawei's vhost-user's patches? 2. What's your step and command to launch vhost sample? 3. What is mz? Your internal tool? I can't yum install mz or downl

[dpdk-dev] [PATCH v2 0/6] new ntuple filter replaces 2tuple and 5tuple filters

2015-01-30 Thread Wu, Jingjing
> -Original Message- > From: De Lara Guarch, Pablo > Sent: Wednesday, January 28, 2015 10:29 PM > To: Wu, Jingjing; dev at dpdk.org > Cc: Cao, Min; Xu, HuilongX > Subject: RE: [PATCH v2 0/6] new ntuple filter replaces 2tuple and 5tuple > filters > > > > > -Original Message- > >

[dpdk-dev] [PATCH v6 5/6] enicpmd: DPDK-ENIC PMD interface

2015-01-30 Thread Wu, Jingjing
Hi, ssujith > -Original Message- > From: Sujith Sankar (ssujith) [mailto:ssujith at cisco.com] > Sent: Tuesday, December 30, 2014 12:46 PM > To: Wu, Jingjing; dev at dpdk.org > Cc: Prasad Rao (prrao) > Subject: Re: [dpdk-dev] [PATCH v6 5/6] enicpmd: DPDK-ENIC PMD interface > > > > On 29

[dpdk-dev] Regarding UDP checksum offload

2015-01-30 Thread Olivier MATZ
Hi, On 01/29/2015 01:56 PM, Prashant Upadhyaya wrote: > Another thing you can do is to retry on the latest stable dpdk which > is known to work (see csumonly.c in test-pmd). > > Let me add further, I am _just_ doing the UDP checksum offload > and not > the IP hdr c

[dpdk-dev] [PATCH 1/3] librte_reorder: New reorder library

2015-01-30 Thread Gonzalez Monroy, Sergio
> From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Thursday, January 29, 2015 8:40 PM > To: Gonzalez Monroy, Sergio > Cc: Thomas Monjalon; Pattan, Reshma; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 1/3] librte_reorder: New reorder library > > On Thu, Jan 29, 2015 at 05:35:09PM +00

[dpdk-dev] [PATCH] examples/vhost: fix segfault when link_vmdq fails

2015-01-30 Thread Thomas Monjalon
> > Signed-off-by: Huawei Xie > > Acked-by: Changchun Ouyang Applied Thanks -- Thomas

[dpdk-dev] [PATCH] kni: optimizing the rte_kni_rx_burst

2015-01-30 Thread Thomas Monjalon
2014-11-26 22:20, Thomas Monjalon: > Ping > > 2014-11-11 23:58, Thomas Monjalon: > > Is there anyone interested in KNI to review this patch please? > > > > > > 2014-07-23 12:15, Hemant Agrawal: > > > The current implementation of rte_kni_rx_burst polls the fifo for buffers. > > > Irrespective of

[dpdk-dev] [PATCH 00/12] qemu vhost-user support

2015-01-30 Thread Tetsuya Mukawa
On 2015/01/30 15:36, Huawei Xie wrote: > vhost-user supports passing vring information to a seperate vhost enabled > process, normally a user space vSwitch, through unix domain socket. > > In previous DPDK version, we implement a user space character device driver > vhost-cuse in user space DPDK pr

[dpdk-dev] [PATCH 01/12] lib/librte_vhost: enable VIRTIO_NET_F_CTRL_RX

2015-01-30 Thread Tetsuya Mukawa
On 2015/01/30 15:36, Huawei Xie wrote: > VIRTIO_NET_F_CTRL_RX is dependant on VIRTIO_NET_F_CTRL_VQ. > > Observed that virtio-net driver in guest would crash with only CTRL_RX > enabled. > > In virtnet_send_command: > > /* Caller should know better */ > BUG_ON(!virtio_has_feature(vi->vd

[dpdk-dev] [PATCH] MAINTAINERS: claim responsibility for Link Bonding PMD

2015-01-30 Thread Declan Doherty
Signed-off-by: Declan Doherty --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5fccdbb..743fa49 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -161,6 +161,7 @@ Drivers --- Link bonding +M: Declan Doherty F: lib/librte_pmd_bond/ F: doc/gu

[dpdk-dev] [PATCH 05/12] lib/librte_vhost: copy host_memory_map from virtio-net.c to a new file virtio-net-cdev.c

2015-01-30 Thread Tetsuya Mukawa
On 2015/01/30 15:36, Huawei Xie wrote: > Signed-off-by: Huawei Xie > --- > lib/librte_vhost/vhost_cuse/virtio-net-cdev.c | 258 > ++ > 1 file changed, 258 insertions(+) > create mode 100644 lib/librte_vhost/vhost_cuse/virtio-net-cdev.c > > diff --git a/lib/librte_vhost/v

[dpdk-dev] [PATCH] ixgbe: Fix an unnecessary check in vf rss

2015-01-30 Thread Wodkowski, PawelX
> -Original Message- > From: Ouyang, Changchun > Sent: Friday, January 30, 2015 2:20 AM > To: Wodkowski, PawelX; Thomas Monjalon; Richardson, Bruce > Cc: dev at dpdk.org; Ouyang, Changchun > Subject: RE: [dpdk-dev] [PATCH] ixgbe: Fix an unnecessary check in vf rss > > Hi PawelX > > >

[dpdk-dev] [PATCH v3] test: fix missing NULL pointer checks

2015-01-30 Thread Thomas Monjalon
2015-01-27 13:06, Neil Horman: > On Tue, Jan 27, 2015 at 04:44:53PM +0100, Daniel Mrzyglod wrote: > > In test_sched, we are missing NULL pointer checks after create_mempool() > > and rte_pktmbuf_alloc(). Add in these checks using TEST_ASSERT_NOT_NULL > > macros. > > > > VERIFY macro was removed a

[dpdk-dev] [PATCH] Added missing extern 'C' decls in mode4 header files

2015-01-30 Thread Thomas Monjalon
Hi Pawel, > Signed-off-by: Pawel Wodkowski > --- > lib/librte_pmd_bond/rte_eth_bond_8023ad.h |8 > lib/librte_pmd_bond/rte_eth_bond_8023ad_private.h |8 Why adding extern C in a private header file? -- Thomas

[dpdk-dev] [PATCH 1/2] rte_ethdev: update link status (speed, duplex, link_up) after rte_eth_dev_start

2015-01-30 Thread Thomas Monjalon
Jia, any news on this patchset? 2014-11-12 03:57, Zhang, Helin: > Hi Jia > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jia Yu > > Sent: Saturday, November 8, 2014 1:32 AM > > To: dev at dpdk.org > > Subject: [dpdk-dev] [PATCH 1/2] rte_ethdev: update

[dpdk-dev] [PATCH] vhost: notify guest to fill buffer when there is no buffer

2015-01-30 Thread Linhaifeng
On 2015/1/30 16:20, Xu, Qian Q wrote: > Haifeng > Could you give more information so that we can reproduce your issue? Thanks. > 1. What's your dpdk package, based on which branch, with Huawei's > vhost-user's patches? Not with Huawei's patches.I implement a demo before Huawei's patches with

[dpdk-dev] [PATCH] examples: new txburst application

2015-01-30 Thread Thomas Monjalon
Hi Bhavesh, 2014-11-18 10:32, Bhavesh Davda: > Test application to transmit 32-packet bursts of 220-byte UDP packets every > 50 us, approximating 240,000 pps. We found it useful for testing hypervisor > performance for a transmit-heavy but bursty workload in a VM with DPDK. > > Signed-off-by: Bha

[dpdk-dev] [PATCH v2 4/4] lib/librte_eal: Optimized memcpy in arch/x86/rte_memcpy.h for both SSE and AVX platforms

2015-01-30 Thread Ananyev, Konstantin
Hey Zhihong, > -Original Message- > From: Wang, Zhihong > Sent: Friday, January 30, 2015 5:57 AM > To: Ananyev, Konstantin; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 4/4] lib/librte_eal: Optimized memcpy in > arch/x86/rte_memcpy.h for both SSE and AVX platforms > > Hey Konstant

[dpdk-dev] [PATCH] mk: allow application to override clean

2015-01-30 Thread Thomas Monjalon
2015-01-29 22:36, Stephen Hemminger: > On Thu, 29 Jan 2015 02:52:45 -0800 > Thomas Monjalon wrote: > > > Hi Stephen, > > > > 2015-01-28 12:00, Olivier MATZ: > > > Hi Stephen, > > > > > > On 01/23/2015 07:19 AM, stephen at networkplumber.org wrote: > > > > From: Stephen Hemminger > > > > > > >

[dpdk-dev] [PATCH 0/2] new headroom stats library and example application

2015-01-30 Thread Wodkowski, PawelX
> -Original Message- > From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Thursday, January 29, 2015 8:13 PM > To: Wodkowski, PawelX > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 0/2] new headroom stats library and example > application > > On Thu, Jan 29, 2015 at 05:10

[dpdk-dev] [PATCH] Added missing extern 'C' decls in mode4 header files

2015-01-30 Thread Wodkowski, PawelX
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Friday, January 30, 2015 11:21 AM > To: Wodkowski, PawelX > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] Added missing extern 'C' decls in mode4 header > files > > Hi Pawel, > > > Signed-of

[dpdk-dev] [PATCH 0/4] Link Bonding mode 6 support (ALB)

2015-01-30 Thread Michal Jastrzebski
This patchset add support for link bonding mode 6. Additionally it changes an arp_header structure definition. Also a basic example is introduced. Using this example, Bonding will configure each client ARP table, that packets from each client will be received on different slave, mode 6 uses round-

[dpdk-dev] [PATCH 1/4] net: changed arp_hdr struct declaration.

2015-01-30 Thread Michal Jastrzebski
Changed MAC address type from uint8_t[6] to struct ether_addr and IP address type from uint8_t[4] to uint32_t. Also removed union from arp_hdr struct. Updated test-pmd to match new arp_hdr version. Signed-off-by: Maciej Gajdzica --- app/test-pmd/icmpecho.c | 27 ++- l

[dpdk-dev] [PATCH 2/4] bond: added link bonding mode 6 implementation.

2015-01-30 Thread Michal Jastrzebski
This mode includes adaptive TLB and receive load balancing (RLB). In RLB the bonding driver intercepts ARP replies send by local system and overwrites its source MAC address, so that different peers send data to the server on different slave interfaces. When local system sends ARP request, it saves

[dpdk-dev] [PATCH 3/4] bond: add debug info for mode 6 link bonding

2015-01-30 Thread Michal Jastrzebski
Signed-off-by: Michal Jastrzebski --- config/common_linuxapp |2 +- lib/librte_pmd_bond/rte_eth_bond_pmd.c | 124 2 files changed, 125 insertions(+), 1 deletion(-) diff --git a/config/common_linuxapp b/config/common_linuxapp index 2f9643b..1

[dpdk-dev] [PATCH 4/4] bond: added example application for link bonding mode 6.

2015-01-30 Thread Michal Jastrzebski
Signed-off-by: Michal Jastrzebski Signed-off-by: Maciej Gajdzica --- examples/bond/Makefile | 57 examples/bond/main.c | 790 examples/bond/main.h | 46 +++ 3 files changed, 893 insertions(+) create mode 100644 examples/bond/Makef

[dpdk-dev] [PATCH 3/4] bond: add debug info for mode 6 link bonding

2015-01-30 Thread Jastrzebski, MichalX K
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Michal Jastrzebski > Sent: Friday, January 30, 2015 11:58 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 3/4] bond: add debug info for mode 6 link > bonding > > > Signed-off-by: Michal Jastrzebski > ---

[dpdk-dev] [PATCH] acl: remove standalone header

2015-01-30 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon > Sent: Thursday, January 29, 2015 10:42 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] acl: remove standalone header > > This is a duplication of some EAL parts for a standalone packagin

[dpdk-dev] [PATCH 4/4] bond: added example application for link bonding mode 6.

2015-01-30 Thread Jastrzebski, MichalX K
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Michal Jastrzebski > Sent: Friday, January 30, 2015 11:58 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 4/4] bond: added example application for link > bonding mode 6. > > > Signed-off-by: Michal Jastrz

[dpdk-dev] [PATCH] Added missing extern 'C' decls in mode4 header files

2015-01-30 Thread Declan Doherty
On 30/01/15 10:56, Wodkowski, PawelX wrote: >> -Original Message- >> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] >> Sent: Friday, January 30, 2015 11:21 AM >> To: Wodkowski, PawelX >> Cc: dev at dpdk.org >> Subject: Re: [dpdk-dev] [PATCH] Added missing extern 'C' decls in mo

[dpdk-dev] mmap failed: Cannot allocate memory when init dpdk eal

2015-01-30 Thread zhangsha (A)
Hi ?all I am suffering from the problem mmap failed as followed when init dpdk eal. Fri Jan 30 09:03:29 2015:EAL: Setting up memory... Fri Jan 30 09:03:34 2015:EAL: map_all_hugepages(): mmap failed: Cannot allocate memory Fri Jan 30 09:03:34 2015:EAL: Failed to mmap 2 MB hugepages Fri Jan 30 09:

[dpdk-dev] [RFC PATCH v2 01/14] enable VIRTIO_NET_F_CTRL_RX VIRTIO_NET_F_CTRL_RX is dependant on VIRTIO_NET_F_CTRL_VQ. Observed that virtio-net driver in guest would crash with only CTRL_RX enabled.

2015-01-30 Thread Linhaifeng
On 2015/1/26 11:20, Huawei Xie wrote: > In virtnet_send_command: > > /* Caller should know better */ > BUG_ON(!virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VQ) || > (out + in > VIRTNET_SEND_COMMAND_SG_MAX)); > > Signed-off-by: Huawei Xie > --- > lib/librte_vhost/vi

[dpdk-dev] [PATCH] Added missing extern 'C' decls in mode4 header files

2015-01-30 Thread Wodkowski, PawelX
> -Original Message- > From: Doherty, Declan > Sent: Friday, January 30, 2015 12:42 PM > To: Wodkowski, PawelX; Thomas Monjalon > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] Added missing extern 'C' decls in mode4 header > files > > On 30/01/15 10:56, Wodkowski, PawelX wrote: > >

[dpdk-dev] [PATCH] Added missing extern 'C' decls in mode4 header files

2015-01-30 Thread Declan Doherty
On 30/01/15 12:11, Wodkowski, PawelX wrote: > > -Original Message- > > From: Doherty, Declan > > Sent: Friday, January 30, 2015 12:42 PM > > To: Wodkowski, PawelX; Thomas Monjalon > > Cc: dev at dpdk.org > > Subject: Re: [dpdk-dev] [PATCH] Added missing extern 'C' decls in mode4 > > header

[dpdk-dev] mmap failed: Cannot allocate memory when init dpdk eal

2015-01-30 Thread Linhaifeng
On 2015/1/30 19:40, zhangsha (A) wrote: > Hi ?all > > I am suffering from the problem mmap failed as followed when init dpdk eal. > > Fri Jan 30 09:03:29 2015:EAL: Setting up memory... > Fri Jan 30 09:03:34 2015:EAL: map_all_hugepages(): mmap failed: Cannot > allocate memory > Fri Jan 30 09:03

[dpdk-dev] [PATCH v2 0/4] New Reorder Library

2015-01-30 Thread Sergio Gonzalez Monroy
This series introduces the new reorder library along with unit tests, sample app and a new entry in the programmers guide describing the library. The library provides reordering of mbufs based on their sequence number. As mention in the patch describing the library, one use case is the packet dis

[dpdk-dev] [PATCH v2 1/4] reorder: new reorder library

2015-01-30 Thread Sergio Gonzalez Monroy
This library provides reordering capability for out of order mbufs based on a sequence number in the mbuf structure. Signed-off-by: Reshma Pattan Signed-off-by: Richardson Bruce Signed-off-by: Sergio Gonzalez Monroy --- config/common_bsdapp | 5 + config/common_linu

[dpdk-dev] [PATCH v2 3/4] examples: new sample app packet_ordering

2015-01-30 Thread Sergio Gonzalez Monroy
This new app makes use of the librte_reorder library. It requires at least 3 lcores for RX, Workers (1 or more) and TX threads. Communication between RX-Workers and Workers-TX is done by using rings. The flow of mbufs is the following: * RX thread gets mbufs from driver, set sequence number and e

  1   2   >