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

2015-01-30 Thread Thomas Monjalon
2015-01-30 13:46, Jeff Shaw: > On Fri, Jan 30, 2015 at 04:26:33PM -0500, Neil Horman wrote: > > On Fri, Jan 30, 2015 at 01:07:16PM +0800, Chen Jing D(Mark) wrote: > > > From: "Chen Jing D(Mark)" > > > Jeff Shaw (18): > > > fm10k: add base driver [...] > > >

[dpdk-dev] [PATCH v2 4/4] doc: Refactored split cell formatting in one table

2015-01-30 Thread Thomas Monjalon
2015-01-30 18:13, John McNamara: > Refactored split cell in test_pipeline table to allow it to > convert cleanly to PDF. > > Signed-off-by: John McNamara The diff output is impossible to read. You should explain what you changed and why. So it would give a reference for future table writers.

[dpdk-dev] [PATCH v2 2/4] doc: Add Sphinx config to build pdf version of guides

2015-01-30 Thread Thomas Monjalon
2015-01-30 18:13, John McNamara: > Add Python Sphinx config to allow conversion of guides > to PDF format. > > Signed-off-by: John McNamara > --- > doc/guides/conf.py| 51 > ++--- > doc/guides/freebsd_gsg/conf.py| 41

[dpdk-dev] [PATCH v2 0/4] doc: Add 'make pdf' target to convert guide docs to pdf

2015-01-30 Thread Thomas Monjalon
Hi John, 2015-01-30 18:13, John McNamara: > This patch adds support for creating PDF versions of the user guides. > > Specifically: > > * The Programmer's Guide > * The Linux Getting Started Guide > * The FreeBSD Getting Started Guide > * The Sample Applications User Guide >

[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

[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 > --- >

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

2015-01-30 Thread Wiles, Keith
Sent from my iPhone On Jan 30, 2015, at 9:49 AM, Bhavesh Davda wrote: >> Did you know pktgen-dpdk? >> http://dpdk.org/browse/apps/pktgen-dpdk/tree/README.md >> >> Do you think it could replace your application? > > [Bhavesh Davda] Yes, I regularly use pktgen-dpdk, and love the app (thanks

[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

[dpdk-dev] [BUG] ixgbe vector cannot compile without bulk alloc

2015-01-30 Thread Liang, Cunming
> -Original Message- > From: Richardson, Bruce > Sent: Thursday, January 29, 2015 8:38 PM > To: Liang, Cunming > Cc: Thomas Monjalon; dev at dpdk.org > Subject: Re: [dpdk-dev] [BUG] ixgbe vector cannot compile without bulk alloc > > On Thu, Jan 29, 2015 at 11:39:37PM +, Liang,

[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

[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 */ >

[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

[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 v2 4/4] doc: Refactored split cell formatting in one table

2015-01-30 Thread John McNamara
Refactored split cell in test_pipeline table to allow it to convert cleanly to PDF. Signed-off-by: John McNamara --- doc/guides/sample_app_ug/test_pipeline.rst | 32 +++ 1 files changed, 22 insertions(+), 10 deletions(-) diff --git

[dpdk-dev] [PATCH v2 3/4] doc: Fix encoding of (r) character

2015-01-30 Thread John McNamara
Change encoding of (r) from Latin-1 to UTF8 to match the other symbols in the doc and to allow it to convert cleanly to PDF. Signed-off-by: John McNamara --- doc/guides/rel_notes/supported_features.rst |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[dpdk-dev] [PATCH v2 2/4] doc: Add Sphinx config to build pdf version of guides

2015-01-30 Thread John McNamara
Add Python Sphinx config to allow conversion of guides to PDF format. Signed-off-by: John McNamara --- doc/guides/conf.py| 51 ++--- doc/guides/freebsd_gsg/conf.py| 41 + doc/guides/linux_gsg/conf.py | 41

[dpdk-dev] [PATCH v2 1/4] mk: Add 'make doc-pdf' target to convert guide docs to pdf

2015-01-30 Thread John McNamara
Added make system support for building PDF versions of the guides. Requires Python Sphinx and TexLive Full. Signed-off-by: John McNamara --- mk/rte.sdkdoc.mk | 33 - mk/rte.sdkroot.mk |3 ++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git

[dpdk-dev] [PATCH v2 0/4] doc: Add 'make pdf' target to convert guide docs to pdf

2015-01-30 Thread John McNamara
This patch adds support for creating PDF versions of the user guides. Specifically: * The Programmer's Guide * The Linux Getting Started Guide * The FreeBSD Getting Started Guide * The Sample Applications User Guide * The TestPMD User Guide * The Release Notes The local

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

2015-01-30 Thread Thomas Monjalon
2015-01-30 16:29, Bhavesh Davda: > Hi Thomas, > > > 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

[dpdk-dev] [PATCH v4 1/4] compat: Add infrastructure to support symbol versioning

2015-01-30 Thread Gray, Mark D
I agree in principle with this patchset. OVS links with DPDK and providing stability in the ABI/API (and the Policy to manage this) makes deployment easier for OVS when linking with shared dpdk libs. It should also be easy for us to track changes in the API through the deprecation notices

[dpdk-dev] [PATCH] bond: remove ol flags from transmit policy checks

2015-01-30 Thread Declan Doherty
The Link bonding library is incorrectly using receive packet type flags in the transmit policy hashing functions, which would cause packets generated locally to be incorrectly distributed across the slave devices. This patch completely removes the dependency on the packet type flags and uses the

[dpdk-dev] [PATCH] maintainers: claim mbuf, mempool, ring, mk, kvargs, cmdline

2015-01-30 Thread Olivier Matz
I'm volonteer to maintain the following components of dpdk: - mbuf packet api - mempool library - ring library - build system - kvargs - command line library Note: I've splitted rte_mempool and rte_malloc as these two libraries are different enough. Signed-off-by: Olivier Matz --- MAINTAINERS

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

2015-01-30 Thread Bhavesh Davda
> Did you know pktgen-dpdk? > http://dpdk.org/browse/apps/pktgen-dpdk/tree/README.md > > Do you think it could replace your application? > [Bhavesh Davda] Yes, I regularly use pktgen-dpdk, and love the app (thanks Keith!) but I couldn't quite get it to do this simplistic job of generating a

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

2015-01-30 Thread Bhavesh Davda
Hi Thomas, > 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-dev] [PATCH 00/18] lib/librte_pmd_fm10k : fm10k pmd driver

2015-01-30 Thread Neil Horman
On Fri, Jan 30, 2015 at 01:07:16PM +0800, Chen Jing D(Mark) wrote: > 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

[dpdk-dev] [PATCH] ABI: Add abi checking utility

2015-01-30 Thread Neil Horman
There was a request for an abi validation utiltyfor the ongoing ABI stability work. As it turns out there is a abi compliance checker in development that seems to be under active development and provides fairly detailed ABI compliance reports. Its not yet intellegent enough to understand symbol

[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 @@

[dpdk-dev] [PATCH 01/17] mbuf: add definitions of unified packet types

2015-01-30 Thread Olivier MATZ
Hi Helin, On 01/29/2015 04:15 AM, Helin Zhang wrote: > As there are only 6 bit flags in ol_flags for indicating packet types, > which is not enough to describe all the possible packet types hardware > can recognize. For example, i40e hardware can recognize more than 150 > packet types. Unified

[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) -

[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

[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 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

[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 ---

[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 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 ---

[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:

[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

[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

[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 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 ---

[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

[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

[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

[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

[dpdk-dev] [PATCH 17/17] mbuf: remove old packet type bit masks for ol_flags

2015-01-30 Thread Olivier MATZ
Hi Helin, On 01/29/2015 04:16 AM, Helin Zhang wrote: > To unify packet types among all PMDs, bit masks and relevant macros > of packet type for ol_flags are replaced by unified packet type and > relevant macros. > > Signed-off-by: Helin Zhang > --- > lib/librte_mbuf/rte_mbuf.c | 6 -- >

[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 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 ---

[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

[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

[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

[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

[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 ---

[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

[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 +-

[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 +++

[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

[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 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

[dpdk-dev] [PATCH 00/17] unified packet type

2015-01-30 Thread Olivier MATZ
Hi Helin, On 01/29/2015 04:15 AM, Helin Zhang wrote: > Currently only 6 bits which are stored in ol_flags are used to indicate > the packet types. This is not enough, as some NIC hardware can recognize > quite a lot of packet types, e.g i40e hardware can recognize more than 150 > packet types.

[dpdk-dev] [PATCH v2] bond: fix 'extern "C"' decls in mode4 header files

2015-01-30 Thread Pawel Wodkowski
v2: Remove 'extern "C"' declarations from bond private header files. v1: Add missing declarations to rte_bond_8023ad.h. Signed-off-by: Pawel Wodkowski --- lib/librte_pmd_bond/rte_eth_bond_8023ad.h | 8 lib/librte_pmd_bond/rte_eth_bond_private.h | 8 2 files changed, 8

[dpdk-dev] [PATCH 20/20] i40e: add debug logs for tx context descriptors

2015-01-30 Thread Olivier Matz
This could be useful to have this values for debug purposes. Suggested-by: Konstantin Ananyev Signed-off-by: Olivier Matz --- lib/librte_pmd_i40e/i40e_rxtx.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/lib/librte_pmd_i40e/i40e_rxtx.c

[dpdk-dev] [PATCH 18/20] testpmd: fix TSO when using outer checksum offloads

2015-01-30 Thread Olivier Matz
The l4_len has also to be copied in mbuf in case we are offloading outer IP checksum. Currently, TSO + outer checksum is not supported by any driver but it will soon be supported by i40e. Pointed-out-by: Jijiang Liu Signed-off-by: Olivier Matz --- app/test-pmd/csumonly.c | 1 + 1 file changed,

[dpdk-dev] [PATCH 17/20] testpmd: add a warning if outer ip cksum requested but not supported

2015-01-30 Thread Olivier Matz
Signed-off-by: Olivier Matz --- app/test-pmd/cmdline.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 70ab126..186da7b 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -2914,7 +2914,11 @@

[dpdk-dev] [PATCH 16/20] i40e: advertise outer IPv4 checksum capability

2015-01-30 Thread Olivier Matz
From: Jijiang Liu Advertise the DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM flag in the PMD features. It means that the i40e PMD supports the offload of outer IP checksum when transmitting tunneling packet. Signed-off-by: Jijiang Liu Acked-by: Olivier Matz ---

[dpdk-dev] [PATCH 15/20] ethdev: add outer IP offload capability flag

2015-01-30 Thread Olivier Matz
From: Jijiang Liu If the flag is advertised by a PMD, the NIC supports the outer IP checksum TX offload of tunneling packets, therefore an application can set the PKT_TX_OUTER_IP_CKSUM flag in mbufs when transmitting on this port. Signed-off-by: Jijiang Liu Acked-by:

[dpdk-dev] [PATCH 14/20] testpmd: support ipip tunnel in csum forward engine

2015-01-30 Thread Olivier Matz
Add support for IP over IP tunnels. Signed-off-by: Olivier Matz --- app/test-pmd/cmdline.c | 2 +- app/test-pmd/csumonly.c | 40 ++-- 2 files changed, 35 insertions(+), 7 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index

[dpdk-dev] [PATCH 12/20] testpmd: introduce parse_vxlan in csum fwd engine

2015-01-30 Thread Olivier Matz
Move code parsing vxlan into a function. It will ease the support of GRE tunnels and IPIP tunnels in next commits. Signed-off-by: Olivier Matz --- app/test-pmd/csumonly.c | 68 +++-- 1 file changed, 37 insertions(+), 31 deletions(-) diff --git

[dpdk-dev] [PATCH 11/20] testpmd: use a structure to store offload info in csum fwd engine

2015-01-30 Thread Olivier Matz
To simplify the API of parse_* functions, store all the offload information for the current packet in a structure. No functional change. Signed-off-by: Olivier Matz --- app/test-pmd/csumonly.c | 222 +--- 1 file changed, 115 insertions(+), 107

[dpdk-dev] [PATCH 10/20] testpmd: introduce parse_ipv* in csum fwd engine

2015-01-30 Thread Olivier Matz
These functions may be used to parse encapsulated layers when we will support IP over GRE tunnels. No functional change. Signed-off-by: Olivier Matz --- app/test-pmd/csumonly.c | 51 + 1 file changed, 39 insertions(+), 12 deletions(-) diff --git

[dpdk-dev] [PATCH 09/20] testpmd: rename vxlan in outer_ip in csum commands

2015-01-30 Thread Olivier Matz
The tx_checksum command concerns outer IP checksum, not VxLAN checksum. Actually there is no checkum in VxLAN header, there is one checksum in outer IP header, and one checksum in outer UDP header. This option only controls the outer IP checksum. Signed-off-by: Olivier Matz ---

[dpdk-dev] [PATCH 08/20] testpmd: add csum parse_tunnel command

2015-01-30 Thread Olivier Matz
Add a new command related to csum forward engine: csum parse-tunnel (on|off) (tx_port_id) If enabled, the tunnel packets received by the csum forward engine are parsed and seen as "outer-headers/inner-headers/data". If disabled, the parsing of the csum forward engine stops at the first l4

[dpdk-dev] [PATCH 07/20] testpmd: move csum_show in a function

2015-01-30 Thread Olivier Matz
No functional changes in this commit, we just move the code that displays the csum forward engine configuration in a function. This makes the next commit easier to read as it will also use this function. Signed-off-by: Olivier Matz --- app/test-pmd/cmdline.c | 82

[dpdk-dev] [PATCH 06/20] testpmd: replace tx_checksum command by csum

2015-01-30 Thread Olivier Matz
Replace the "tx_checksum" command by "csum". It has several advantages: - it's more coherent with the forward engine name - it's shorter - the next commit will introduce a command that is related to the csum forward engine, but about rx side. Signed-off-by: Olivier Matz ---

[dpdk-dev] [PATCH 05/20] mbuf: remove PKT_TX_UDP_TUNNEL_PKT flag

2015-01-30 Thread Olivier Matz
Since previous commit, this flag is not used by any PMD, remove it from mbuf API and from csumonly (testpmd). In csumonly, the PKT_TX_OUTER_IP_CKSUM flag is already set for vxlan checksum, providing enough information to the underlying driver. Signed-off-by: Olivier Matz ---

[dpdk-dev] [PATCH 04/20] i40e: remove the use of PKT_TX_UDP_TUNNEL_PKT flag

2015-01-30 Thread Olivier Matz
The definition of the flag in rte_mbuf.h was: TX packet is an UDP tunneled packet. It must be specified when using outer checksum offload (PKT_TX_OUTER_IP_CKSUM) This flag was used to tell the NIC that the offload type is UDP (I40E_TXD_CTX_UDP_TUNNELING flag). In the datasheet, it says it's

[dpdk-dev] [PATCH 03/20] i40e: call i40e_txd_enable_checksum only for offloaded packets

2015-01-30 Thread Olivier Matz
>From i40e datasheet: The IP header type and its offload. In case of tunneling, the IIPT relates to the inner IP header. See also EIPT field for the outer (External) IP header offload. 00 - non IP packet or packet type is not defined by software 01 - IPv6 packet 10 - IPv4 packet with

[dpdk-dev] [PATCH 02/20] mbuf: enhance the API documentation of offload flags

2015-01-30 Thread Olivier Matz
Based on http://dpdk.org/ml/archives/dev/2015-January/011127.html Also adapt the csum forward engine code to the API. Signed-off-by: Olivier Matz --- app/test-pmd/csumonly.c| 6 +++--- lib/librte_mbuf/rte_mbuf.h | 43 --- 2 files changed, 39

[dpdk-dev] [PATCH 01/20] mbuf: remove PKT_TX_IPV4_CSUM

2015-01-30 Thread Olivier Matz
This alias is only used in one place of i40e driver. Remove it and only keep the legacy flag PKT_TX_IP_CSUM. Signed-off-by: Olivier Matz --- lib/librte_mbuf/rte_mbuf.h | 1 - lib/librte_pmd_i40e/i40e_rxtx.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git

[dpdk-dev] [PATCH 00/20] enhance tx checksum offload API

2015-01-30 Thread Olivier Matz
The goal of this series is to clarify and simplify the mbuf offload API. - simplify the definitions of PKT_TX_IP_CKSUM and PKT_TX_IPV4, each flag has now only one meaning. No impact on the code. - add a feature flag for OUTER_IP_CHECKSUM (from Jijiang's patches) - remove the

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

2015-01-30 Thread Jeff Shaw
On Fri, Jan 30, 2015 at 04:26:33PM -0500, Neil Horman wrote: > On Fri, Jan 30, 2015 at 01:07:16PM +0800, Chen Jing D(Mark) wrote: > > 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

[dpdk-dev] [PATCH 0/8] Improve build process

2015-01-30 Thread Gonzalez Monroy, Sergio
> From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Thursday, January 29, 2015 7:46 PM > To: Gonzalez Monroy, Sergio > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 0/8] Improve build process > > On Thu, Jan 29, 2015 at 05:04:20PM +, Gonzalez Monroy, Sergio wrote: > > > From:

[dpdk-dev] [PATCH v2] bond: fix 'extern "C"' decls in mode4 header files

2015-01-30 Thread Declan Doherty
On 30/01/15 13:21, Pawel Wodkowski wrote: > v2: > Remove 'extern "C"' declarations from bond private header files. > > v1: > Add missing declarations to rte_bond_8023ad.h. > > Signed-off-by: Pawel Wodkowski > --- > lib/librte_pmd_bond/rte_eth_bond_8023ad.h | 8 >

[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 v2 4/4] doc: new reorder library description

2015-01-30 Thread Sergio Gonzalez Monroy
This patch introduces a new section in the programmers guide describing the reorder library. Signed-off-by: Sergio Gonzalez Monroy --- doc/guides/prog_guide/index.rst | 1 + doc/guides/prog_guide/reorder_lib.rst | 110 ++ 2 files changed, 111

[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

[dpdk-dev] [PATCH v2 2/4] app: New reorder unit test

2015-01-30 Thread Sergio Gonzalez Monroy
Adding new reorder unit test for the test app. The command to run the unit test from the test shell is: reorder_autotest Signed-off-by: Reshma Pattan Signed-off-by: Sergio Gonzalez Monroy --- app/test/Makefile | 2 + app/test/test_reorder.c | 393

[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 +

[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

[dpdk-dev] [PATCH 0/8] Improve build process

2015-01-30 Thread Neil Horman
On Fri, Jan 30, 2015 at 05:38:49PM +, Gonzalez Monroy, Sergio wrote: > > From: Neil Horman [mailto:nhorman at tuxdriver.com] > > Sent: Friday, January 30, 2015 2:05 PM > > To: Gonzalez Monroy, Sergio > > Cc: Thomas Monjalon; dev at dpdk.org > > Subject: Re: [dpdk-dev] [PATCH 0/8] Improve build

[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

[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 @@

[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

[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

[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

[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

[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 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 +

[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) ---

[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

[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

  1   2   >