[dpdk-dev] [PATCH] cmdline: add cmdline_token_portlist_ops to version map

2015-02-04 Thread Thomas Monjalon
2015-02-04 06:42, Neil Horman: > On Wed, Feb 04, 2015 at 09:07:14AM +0200, Panu Matilainen wrote: > > cmdline_token_portlist_ops fell through cracks in the initial symbol > > versioning patch, breaking pktgen build. > > > > Signed-off-by: Panu Matilainen > > + cmdline_token_portlist_ops; > Ac

[dpdk-dev] [PATCH] mk: Add DT_SONAME to shared libraries

2015-02-04 Thread Thomas Monjalon
2015-02-04 06:43, Neil Horman: > On Wed, Feb 04, 2015 at 10:22:50AM +0200, Panu Matilainen wrote: > > This is all-important now that the libraries are versioned: DT_SONAME > > presence instructs the runtime dynamic linker to load the shared object > > by the versioned name in DT_SONAME instead of

[dpdk-dev] [PATCH 3/3] scripts: check wrong patterns in maintainers file

2015-02-04 Thread Thomas Monjalon
Each F or X pattern is checked and printed if there is no match with a file in the repository. The wildcard must be temporarily replaced to prevent from shell expansion. Signed-off-by: Thomas Monjalon --- scripts/check-maintainers.sh | 20 +++- 1 file changed, 19 insertions(+),

[dpdk-dev] [PATCH 2/3] maintainers: add ABI versioning

2015-02-04 Thread Thomas Monjalon
Reference the new framework and policy for ABI versioning, in the MAINTAINERS file. Signed-off-by: Thomas Monjalon --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f2b697e..7c0047b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -54,6 +54,9 @@

[dpdk-dev] [PATCH 1/3] maintainers: dispatch more doc

2015-02-04 Thread Thomas Monjalon
Documentation of build system, EAL and ring lib should be covered by the maintainers of the respective areas. Signed-off-by: Thomas Monjalon --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 12c7c16..f2b697e 100644 --- a/MAINTAINERS +++ b/M

[dpdk-dev] [PATCH 0/3] update maintainers areas

2015-02-04 Thread Thomas Monjalon
More files should be referenced in MAINTAINERS files: - some (forgotten) docs can be co-maintained in doc and lib areas - new ABI files The script can now check for unknown files. Thomas Monjalon (3): maintainers: dispatch more doc maintainers: add ABI versioning scripts: check wrong pat

[dpdk-dev] [PATCH v2 7/7] rte_sched: rearrange data structures

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger Rearrange internal data structures to eliminate holes. Signed-off-by: Stephen Hemminger --- lib/librte_sched/rte_sched.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c

[dpdk-dev] [PATCH v2 6/7] rte_sched: eliminate floating point in calculating byte clock

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger The old code was doing a floating point divide for each rte_dequeue() which is very expensive. Change to using fixed point scaled math instead. This improved performance from 5Gbit/sec to 10 Gbit/sec Signed-off-by: Stephen Hemminger --- lib/librte_sched/rte_sched.c | 14

[dpdk-dev] [PATCH v2 5/7] rte_sched: don't put tabs in log messages

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger syslog does not like tabs in log messages; tab gets translated to #011 Signed-off-by: Stephen Hemminger --- lib/librte_sched/rte_sched.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rt

[dpdk-dev] [PATCH v2 4/7] rte_sched: don't clear statistics when read

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger Make rte_sched statistics API work like the ethernet statistics API. Don't auto-clear statistics. Signed-off-by: Stephen Hemminger --- lib/librte_sched/rte_sched.c | 30 ++ lib/librte_sched/rte_sched.h | 29 + 2 fi

[dpdk-dev] [PATCH v2 3/7] rte_sched: keep track of RED drops

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger Add new statistic to keep track of drops due to RED. Signed-off-by: Stephen Hemminger --- lib/librte_sched/rte_sched.c | 28 +++- lib/librte_sched/rte_sched.h | 6 ++ 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/lib/librte

[dpdk-dev] [PATCH v2 2/7] rte_sched: expand scheduler hierarchy for more VLAN's

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger The QoS subport is limited to 8 bits in original code. But customers demanded ability to support full number of VLAN's (4096) therefore use the full part of the tag field of mbuf. Resize the pipe as well to allow for more pipes in future and avoid expensive bitfield acces

[dpdk-dev] [PATCH v2 1/7] rte_sched: make RED optional at runtime

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger Want to be able to build with RTE_SCHED_RED enabled but allow disabling RED on a per-queue basis at runtime. RED is disabled unless min/max thresholds set. Signed-off-by: Stephen Hemmminger --- lib/librte_sched/rte_sched.c | 9 + 1 file changed, 9 insertions(+)

[dpdk-dev] [PATCH 1/7] ether: add function to query for link state interrupt

2015-02-04 Thread Stephen Hemminger
On Thu, 5 Feb 2015 01:47:37 + Neil Horman wrote: > On Wed, Feb 04, 2015 at 05:13:23PM -0800, Stephen Hemminger wrote: > > From: Stephen Hemminger > > > > Allow application to query whether link state will work. > > This is also part of abstracting dependency on PCI. > > > > Signed-off-by:

[dpdk-dev] [PATCH 3/7] hv: add basic vmbus support

2015-02-04 Thread Neil Horman
On Wed, Feb 04, 2015 at 05:13:25PM -0800, Stephen Hemminger wrote: > From: Stephen Hemminger > > The hyper-v device driver forces the base EAL code to change > to support multiple bus types. This is done changing the pci_device > in ether driver to a generic union. > > As much as possible this i

[dpdk-dev] [PATCH 1/7] ether: add function to query for link state interrupt

2015-02-04 Thread Neil Horman
On Wed, Feb 04, 2015 at 05:13:23PM -0800, Stephen Hemminger wrote: > From: Stephen Hemminger > > Allow application to query whether link state will work. > This is also part of abstracting dependency on PCI. > > Signed-off-by: Stephen Hemminger > --- > lib/librte_ether/rte_ethdev.c | 14 ++

[dpdk-dev] [PATCH 2/3] maintainers: add ABI versioning

2015-02-04 Thread Neil Horman
On Wed, Feb 04, 2015 at 11:23:23PM +0100, Thomas Monjalon wrote: > Reference the new framework and policy for ABI versioning, > in the MAINTAINERS file. > > Signed-off-by: Thomas Monjalon > --- > MAINTAINERS | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS >

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

2015-02-04 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add functions to enable PF/VF interrupt. 2. Add function to process error message passed from interrupt. 2. 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

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

2015-02-04 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 translate the request to correc

[dpdk-dev] [PATCH v2 13/15] fm10k: add function to set vlan

2015-02-04 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 | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/lib/librte_pmd_fm10k/fm10k_ethdev.c b/lib/librte_pm

[dpdk-dev] [PATCH v2 12/15] fm10k: Add scatter receive function

2015-02-04 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 v2 11/15] fm10k: add PF RSS support

2015-02-04 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 v2 10/15] fm10k: add receive and tranmit function

2015-02-04 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. 3. Change Makefile to compile new file fm10k_rxtx.c Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/Makefile |

[dpdk-dev] [PATCH v2 09/15] fm10k: add dev start/stop functions

2015-02-04 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add function to initialize RX queues. 2. Add function to initialize TX queues. 3. Add fm10k_dev_start, fm10k_dev_stop and fm10k_dev_close functions. 4. Add function to close mailbox service. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm1

[dpdk-dev] [PATCH v2 08/15] fm10k: add RX/TX single queue start/stop function

2015-02-04 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 v2 07/15] fm10k: add tx_queue_setup/release function

2015-02-04 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 | 205 +++ 1 files changed, 205 insertions(+), 0 deletions(-) diff --git a/lib/lib

[dpdk-dev] [PATCH v2 06/15] fm10k: add rx_queue_setup/release function

2015-02-04 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 | 255 +++ 1 files changed, 255 insertions(+), 0 deletions(-) diff --git a/lib/lib

[dpdk-dev] [PATCH v2 05/15] fm10k: add reta update/requery functions

2015-02-04 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 | 162 +++ 1 files changed, 1

[dpdk-dev] [PATCH v2 04/15] Change config files to add fm10k into compile

2015-02-04 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Change config/common_bsdapp and config/common_linuxapp, add macros to control fm10k pmd driver compile for linux and bsd. 2. Change lib/Makefile to add fm10k driver into compile list. 3. Change mk/rte.app.mk to add fm10k lib into link. Signed-off-by: Jeff Shaw Signed-off-b

[dpdk-dev] [PATCH v2 03/15] fm10k: register fm10k pmd PF driver

2015-02-04 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add init 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. 4. Add fm10k.h to define macros and basic data structure. 5. Add fm10k_logs.h to cont

[dpdk-dev] [PATCH v2 02/15] fm10k: add fm10k device id

2015-02-04 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 v2 01/15] fm10k: add base driver

2015-02-04 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 v2 00/15] lib/librte_pmd_fm10k : fm10k pmd driver

2015-02-04 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] upper limit on the size of allocation through rte_malloc in dpdk-1.8.0?

2015-02-04 Thread Stefan Puiu
Hi, I'm trying to alter an existing program to use the Intel DPDK. I'm using 1.8.0, compiled by me as a shared library (CONFIG_RTE_BUILD_COMBINE_LIBS=y and CONFIG_RTE_BUILD_SHARED_LIB=y in .config) on Ubuntu 12.04. The program needs to allocate large blocks of memory (between 1 and 4 chunks of 4.5

[dpdk-dev] [PATCH 7/7] hv: add kernel patch

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger For users using non latest kernels, put kernel patch in for them to use. Signed-off-by: Stephen Hemminger --- .../linuxapp/hv_uio/vmbus-get-pages.patch | 55 ++ 1 file changed, 55 insertions(+) create mode 100644 lib/librte_eal/linuxapp/hv_

[dpdk-dev] [PATCH 6/7] hv: enable driver in common config

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger Add hyperv driver config to enable it. Signed-off-by: Stephen Hemminger --- config/common_linuxapp | 9 + 1 file changed, 9 insertions(+) diff --git a/config/common_linuxapp b/config/common_linuxapp index d428f84..f356453 100644 --- a/config/common_linuxapp +++

[dpdk-dev] [PATCH 5/7] hv: poll mode driver

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger This is new Poll Mode driver for using hyper-v virtual network interface. Signed-off-by: Stas Egorov Signed-off-by: Stephen Hemminger --- lib/Makefile |1 + lib/librte_pmd_hyperv/Makefile| 28 + lib/librte_pmd_hyperv/hyperv.h

[dpdk-dev] [PATCH 4/7] hv: uio driver

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger Add new UIO driver in kernel to support DPDK Poll Mode Driver. Signed-off-by: Stas Egorov Signed-off-by: Stephen Hemminger --- lib/librte_eal/linuxapp/Makefile| 3 + lib/librte_eal/linuxapp/hv_uio/Makefile | 57 ++ lib/librte_eal/linuxapp/hv_uio/hv_u

[dpdk-dev] [PATCH 3/7] hv: add basic vmbus support

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger The hyper-v device driver forces the base EAL code to change to support multiple bus types. This is done changing the pci_device in ether driver to a generic union. As much as possible this is done in a backwards source compatiable way. It will break ABI for device driver

[dpdk-dev] [PATCH 2/7] pmd: change drivers initialization for pci

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger The change to generic ether device structure to support multiple bus types requires a change to all existing PMD but only in the initialization (and the change is backwards compatiable). Signed-off-by: Stephen Hemminger --- lib/librte_pmd_e1000/em_ethdev.c| 2 +-

[dpdk-dev] [PATCH 1/7] ether: add function to query for link state interrupt

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger Allow application to query whether link state will work. This is also part of abstracting dependency on PCI. Signed-off-by: Stephen Hemminger --- lib/librte_ether/rte_ethdev.c | 14 ++ lib/librte_ether/rte_ethdev.h | 12 2 files changed, 26 inse

[dpdk-dev] [PATCH 0/7] Hyper-v driver and infrastructure

2015-02-04 Thread Stephen Hemminger
From: Stephen Hemminger This patch series contains the necessary pieces to implement a poll mode driver for the Hyper-V virtual network interface. This device driver was developed from the FreeBSD code. And is released by Brocade under the same license as the rest of the DPDK. I.e the PMD is BSD

[dpdk-dev] [PATCH] MAINTAINERS: claim metering, sched and pkt framework

2015-02-04 Thread Cristian Dumitrescu
As original author of these DPDK components, I am volunteering to maintain them going forward: - Traffic Metering - Hierarchical Scheduler - Packet Framework - Configuration File Signed-off-by: Cristian Dumitrescu --- MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/MAINTAINER

[dpdk-dev] [PATCH net-next v2] hyper-v: allow access to vmbus from userspace driver

2015-02-04 Thread Stephen Hemminger
This is enables the hyper-v driver for DPDK . The hv_uio driver needs to access the shared vmbus monitor pages. I would also like to put hv_uio in upstream kernel like other uio drivers, but need to get API accepted with DPDK first. Signed-off-by: Stas Egorov Signed-off-by: Stephen Hemminger -

[dpdk-dev] [PATCH v2 7/7] app/testpmd: support new rss offloads

2015-02-04 Thread Helin Zhang
RSS offloads supported 'ip' and 'udp' only, which did not demonstrate all of the hardware capabilities. The modifications adds support of new RSS offloads of 'tcp', 'sctp', 'ether' and 'all'. Signed-off-by: Helin Zhang --- app/test-pmd/cmdline.c | 19 +++ 1 file changed, 15 inser

[dpdk-dev] [PATCH v2 6/7] ethdev: unification of RSS offload types

2015-02-04 Thread Helin Zhang
RSS offload types were defined seperately for 1/10G and 40G NICs, and have no relationship with flow types. The modifications are to unify all RSS offload types for all PMDs. Unified RSS offload types have new and common names which can be used for any PMD or applications, and decouple from specifi

[dpdk-dev] [PATCH v2 5/7] ethdev: unification of flow types

2015-02-04 Thread Helin Zhang
Flow types was defined actually for i40e hardware specifically, and wasn't able to be used for defining RSS offload types of all PMDs. It removed the enum flow types, and uses macros instead with new names. The new macros can be used for defining RSS offload types later. Also modifications are made

[dpdk-dev] [PATCH v2 4/7] ethdev: fix of calculating the size of flow type mask array

2015-02-04 Thread Helin Zhang
It wrongly calculates the size of the flow type mask array. The fix is to align the flow type maximum index ID with the number of element bit width, and then divide the number of element bit width. Signed-off-by: Helin Zhang --- lib/librte_ether/rte_eth_ctrl.h | 7 +-- 1 file changed, 5 inse

[dpdk-dev] [PATCH v2 3/7] i40e: code style fix

2015-02-04 Thread Helin Zhang
Added code style fixes. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e_fdir.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/librte_pmd_i40e/i40e_fdir.c b/lib/librte_pmd_i40e/i40e_fdir.c index 68511c8..c9e535b 100644 --- a/lib/librte_pmd_i40e/i40e_fdir.c

[dpdk-dev] [PATCH v2 2/7] ethdev: code style fix

2015-02-04 Thread Helin Zhang
Added code style fixes. Signed-off-by: Helin Zhang --- lib/librte_ether/rte_eth_ctrl.h | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether/rte_eth_ctrl.h index 0ce241e..e936f3a 100644 --- a/lib/

[dpdk-dev] [PATCH v2 1/7] app/test-pmd: code style fix

2015-02-04 Thread Helin Zhang
Added code style fixes. Signed-off-by: Helin Zhang --- app/test-pmd/config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index c40f819..ba394e4 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -1918,11 +

[dpdk-dev] [PATCH v2 0/7] unified flow types and RSS offload types

2015-02-04 Thread Helin Zhang
It unifies the flow types and RSS offload types for all PMDs. Previously flow types are defined specifically for i40e, and there has different RSS offloads tyeps for 1/10G and 40G seperately. This is not so convenient for application development, and not good for adding new PMDs. In addition, it en

[dpdk-dev] hyper-v: allow access to vmbus from userspace driver

2015-02-04 Thread Thomas Monjalon
Hi Stephen, 2015-02-03 11:03, stephen hemminger: > Brocade is submitting a hyper-v driver for DPDK > but this driver needs a hook in the hyper-v bus layer > to allow the additional hv_uio driver to access the shared vmbus > pages. The hv_uio driver lives in DPDK (like igb_uio) and provides > user

[dpdk-dev] deadline for 2.0 features proposal

2015-02-04 Thread Butler, Siobhan A
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > Sent: Tuesday, February 3, 2015 10:15 PM > To: Thomas Monjalon > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] deadline for 2.0 features proposal > > On Tue, Feb 03, 2015 at 09:24:28PM +0100,

[dpdk-dev] [PATCH v3 19/25] ether: Fix vlan strip/insert issue

2015-02-04 Thread Xie, Huawei
On 1/29/2015 3:24 PM, Ouyang Changchun wrote: > Need swap the data from cpu to BE(big endian) for vlan-type. > > Signed-off-by: Changchun Ouyang > --- > lib/librte_ether/rte_ether.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lib/librte_ether/rte_ether.h b/lib/librt

[dpdk-dev] [PATCH] cmdline: fix ressize in parse_portlist

2015-02-04 Thread Olivier Matz
The argument ressize contains the size of the result buffer which should be large enough to store the parsed result of a token. In this case, it should be larger or equal to sizeof(cmdline_portlist_t) (4 bytes), not PORTLIST_TOKEN_SIZE which is the max size of the token string. This is not a criti

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

2015-02-04 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 b/lib/librte_pmd_i40e/i40e_rx

[dpdk-dev] [PATCH v2 19/20] i40e: fix offloading of outer checksum for ip in ip tunnels

2015-02-04 Thread Olivier Matz
When offloading the checksums of ipip tunnels, m->l2_len is set to 0 as there is no tunnel or inner l2 header. Since this is a valid value remove the test. By the way, also remove the same test with l3_len because at this point, it is expected that the software provides proper values in the mbuf.

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

2015-02-04 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 v2 17/20] testpmd: add a warning if outer ip cksum requested but not supported

2015-02-04 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 fc08183..9de3e7e 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -2930,7 +2930,11 @@ csum_show(

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

2015-02-04 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 --- lib/librte_pmd_i40e/i40e_ethdev.c | 3 ++- 1

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

2015-02-04 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: Olivier Matz --- lib/libr

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

2015-02-04 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 b19869

[dpdk-dev] [PATCH v2 13/20] testpmd: support gre tunnels in csum fwd engine

2015-02-04 Thread Olivier Matz
Add support for Ethernet over GRE and IP over GRE tunnels. Signed-off-by: Olivier Matz --- app/test-pmd/cmdline.c | 6 ++-- app/test-pmd/csumonly.c | 87 + 2 files changed, 84 insertions(+), 9 deletions(-) diff --git a/app/test-pmd/cmdline.c b/a

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

2015-02-04 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 a/app/t

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

2015-02-04 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 deletio

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

2015-02-04 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 v2 09/20] testpmd: rename vxlan in outer_ip in csum commands

2015-02-04 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 --- app/test-pmd/cmdl

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

2015-02-04 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 laye

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

2015-02-04 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 v2 06/20] testpmd: replace tx_checksum command by csum

2015-02-04 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 --- app/test-pmd/cmdli

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

2015-02-04 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 --- app/test-pmd/csumonl

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

2015-02-04 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 re

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

2015-02-04 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 v2 02/20] mbuf: enhance the API documentation of offload flags

2015-02-04 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 insertio

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

2015-02-04 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 a/lib/librte_mbu

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

2015-02-04 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 PKT_TX_UDP_TUNNEL_

[dpdk-dev] [PATCH] mk: Add DT_SONAME to shared libraries

2015-02-04 Thread Panu Matilainen
This is all-important now that the libraries are versioned: DT_SONAME presence instructs the runtime dynamic linker to load the shared object by the versioned name in DT_SONAME instead of the the unversioned symlink name used during build. Signed-off-by: Panu Matilainen --- mk/rte.lib.mk | 2 +-

[dpdk-dev] [PATCH] maintainers: claim responsability for testpmd and user guide

2015-02-04 Thread Pablo de Lara
Signed-off-by: Pablo de Lara --- MAINTAINERS |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 9a63714..26302f2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -352,6 +352,7 @@ F: app/test/virtual_pmd.c F: app/test/virtual_pmd.h Driver testi

[dpdk-dev] [PATCH] cmdline: add cmdline_token_portlist_ops to version map

2015-02-04 Thread Olivier MATZ
On 02/04/2015 08:07 AM, Panu Matilainen wrote: > cmdline_token_portlist_ops fell through cracks in the initial symbol > versioning patch, breaking pktgen build. > > Signed-off-by: Panu Matilainen > --- > lib/librte_cmdline/rte_cmdline_version.map | 1 + > 1 file changed, 1 insertion(+) > > diff

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

2015-02-04 Thread Chen, Jing D
Hi Michael, > -Original Message- > From: Qiu, Michael > Sent: Wednesday, February 04, 2015 10:36 AM > To: Chen, Jing D; dev at dpdk.org > Cc: Zhang, Helin; Shaw, Jeffrey B > Subject: Re: [PATCH 10/18] fm10k: add dev start/stop functions > > On 1/30/2015 1:08 PM, Chen, Jing D wrote: > > F

[dpdk-dev] [PATCH] cmdline: add cmdline_token_portlist_ops to version map

2015-02-04 Thread Panu Matilainen
cmdline_token_portlist_ops fell through cracks in the initial symbol versioning patch, breaking pktgen build. Signed-off-by: Panu Matilainen --- lib/librte_cmdline/rte_cmdline_version.map | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_cmdline/rte_cmdline_version.map b/lib/librte

[dpdk-dev] [PATCH 0/2] enable SRIOV switch in i40e driver

2015-02-04 Thread Liu, Jijiang
> -Original Message- > From: Wu, Jingjing > Sent: Thursday, January 29, 2015 9:42 AM > To: dev at dpdk.org > Cc: Wu, Jingjing; Zhang, Helin; Chen, Jing D; Cao, Min > Subject: [PATCH 0/2] enable SRIOV switch in i40e driver > > Enable SRIOV switch in i40e driver. With this patch set, SRIOV

[dpdk-dev] [PATCH] mk: Add DT_SONAME to shared libraries

2015-02-04 Thread Neil Horman
On Wed, Feb 04, 2015 at 10:22:50AM +0200, Panu Matilainen wrote: > This is all-important now that the libraries are versioned: DT_SONAME > presence instructs the runtime dynamic linker to load the shared object > by the versioned name in DT_SONAME instead of the the unversioned symlink > name used

[dpdk-dev] [PATCH] cmdline: add cmdline_token_portlist_ops to version map

2015-02-04 Thread Neil Horman
On Wed, Feb 04, 2015 at 09:07:14AM +0200, Panu Matilainen wrote: > cmdline_token_portlist_ops fell through cracks in the initial symbol > versioning patch, breaking pktgen build. > > Signed-off-by: Panu Matilainen > --- > lib/librte_cmdline/rte_cmdline_version.map | 1 + > 1 file changed, 1 inse

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

2015-02-04 Thread Qiu, Michael
On 1/30/2015 1:08 PM, Chen, Jing D wrote: > 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(Ma

[dpdk-dev] [PATCH v2 1/5] ethdev: add rx interrupt enable/disable functions

2015-02-04 Thread Zhou, Danny
> -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Wednesday, February 04, 2015 7:43 AM > To: Zhou, Danny > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 1/5] ethdev: add rx interrupt > enable/disable functions > > On Tue, 3 Feb 2015

[dpdk-dev] [PATCH v2 0/5] Interrupt mode for PMD

2015-02-04 Thread Zhou, Danny
> -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Wednesday, February 04, 2015 7:40 AM > To: Zhou, Danny > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 0/5] Interrupt mode for PMD > > On Tue, 3 Feb 2015 16:18:26 +0800 > Zhou Danny w

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

2015-02-04 Thread Qiu, Michael
On 2/3/2015 6:30 PM, Tetsuya Mukawa wrote: > On 2015/02/03 18:14, Qiu, Michael wrote: >> On 2/3/2015 2:16 PM, Qiu, Michael wrote: >>> On 2/1/2015 12:02 PM, Tetsuya Mukawa wrote: The patch introduces following commands. - port attach [ident] - port detach [port_id] - attach: att

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

2015-02-04 Thread Xu, Qian Q
Haifeng 1. Get the latest dpdk master branch code, apply huawei's patchset of vhost-user. The first patch is http://dpdk.org/dev/patchwork/patch/2796/, totally 12patches, date is 1/30/2015. 2. Update the config/common_linuxapp and build the samples, see my script for reference. If cd ./dpdk e

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

2015-02-04 Thread Ouyang, Changchun
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Friday, January 30, 2015 7:14 AM > To: Ouyang, Changchun > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 17/25] virtio: Use port IO to get PCI > resource. > > Hi Changchun, > >

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

2015-02-04 Thread Zhang, Helin
Hi Jia > -Original Message- > From: Jia Yu [mailto:jyu at vmware.com] > Sent: Wednesday, February 4, 2015 2:53 AM > To: Zhang, Helin > Cc: dev at dpdk.org; Thomas Monjalon > Subject: Re: [dpdk-dev] [PATCH 1/2] rte_ethdev: update link status (speed, > duplex, link_up) after rte_eth_dev_star