[dpdk-dev] [PATCH] [VIRTIO] Support multiple queues feature in DPDK based virtio-net frontend.

2014-05-16 Thread Ouyang Changchun
This patch support multiple queues feature in DPDK based virtio-net frontend. It firstly gets max queue number of virtio-net from virtio pci configuration and then send command to negotiate the queue numer with backend; when receiving and transmiting packets, negotiated multiple virtio-net queues

[dpdk-dev] [PATCH 3/3] ring: autotest for using ring as ethdev

2014-05-16 Thread Bruce Richardson
An automated unit test for the new API to allow a ring to be used as an ethdev. Verifies that expected enqueue/dequeue functionality still works. Signed-off-by: Bruce Richardson --- app/test/test_ring.c | 25 + 1 file changed, 25 insertions(+) diff --git a/app/test/test_

[dpdk-dev] [PATCH 2/3] ring: add support for converting a ring to ethdev

2014-05-16 Thread Bruce Richardson
Add in a pair of functions which meet the criteria for rx_burst and tx_burst, which then allow a ring to be used as though it were an ethdev, so that code can be written agnostically. Provide a convertion function that takes a single ring and returns an index of the ethdev corresponding to it. Sig

[dpdk-dev] [PATCH 1/3] ethdev: Remove ethdev.h dependency on mbuf + mempool

2014-05-16 Thread Bruce Richardson
This allows us to get the ethdev structure definition without a full set of additional headers from other libs being included. To ensure compilation, add new includes to C files that needed mbuf header without explicitly including it. Signed-off-by: Bruce Richardson --- app/test-pmd/cmdline.c

[dpdk-dev] [PATCH 0/3] ring: provide rte_ring_as_ethdev API

2014-05-16 Thread Bruce Richardson
This patch set aims to provide a shorter simpler alternative the public API functions for using rings as ethdevs provided by the librte_pmd_ring library. This alternative just provides simple RX and TX burst functions and a conversion API, without any of the complexities present in the pmd_ring

[dpdk-dev] DPDK Bare Metal

2014-05-16 Thread daniel chapiesky
Hello, [This message was previously sent to "contact us" on 01.org... they directed me to post here instead... ] My company is developing secure networking technology and we are currently building a prototype of our system using the dpdk as the underlying communications platform. So far so good

[dpdk-dev] [PATCH v5 00/14] dpdk: Separate compile time linkage between eal lib and pmd's

2014-05-16 Thread Thomas Monjalon
Hi Neil, 2014-05-16 11:28, Neil Horman: > Ping, so whats the status on the rest of this series? You said you would > integrate it with 1.7.0, but you've applied several dozen patches ahead of > it (many of which were posted after it), and as a result, it no longer > applies. I assume you're plan

[dpdk-dev] [PATCH RFC 11/11] ixgbe/mbuf: add TSO support

2014-05-16 Thread Ananyev, Konstantin
Hi Oliver, >Yes, recalculating the pseudo-header checksum without the ip_len >is a slow down. This slow down should however be compared to the >operation in progress. When you do TSO, you are generally transmitting >a large TCP packet (several KB), and the cost of the TCP stack is >probably much

[dpdk-dev] [PATCH 0/5] Various patches to 1.6.0r2

2014-05-16 Thread Thomas Monjalon
2014-05-02 16:42, Stephen Hemminger: > These are updated versions of some of the earlier patches I sent. > Plus some more changes that are helpful when interacting with > mempool/zone etc. commits: 356cb73 mempool: add iterator function 58f8a1d memzone: add iterator function e5ac7c2 eal: don't inl

[dpdk-dev] [PATCH 5/5] add FILE arguement to debug functions

2014-05-16 Thread Thomas Monjalon
2014-05-06 12:52, Burakov, Anatoly: > Hi Stephen, > > > The DPDK dump functions are useful for remote debugging of an > > applications. But when application runs as a daemon, stdout > > is typically routed to /dev/null. > > > > Instead change all these functions to take a stdio FILE * handle > >

[dpdk-dev] [PATCH v3 0/6] examples: add a new makefile to build all examples

2014-05-16 Thread Thomas Monjalon
2014-05-16 10:18, Olivier Matz: > This patch series adds a makefile to build all examples supported > by the configuration. It helps to check that all examples compile > after a dpdk modification. > > After applying the patches, it is possible to build all examples for > given targets, given the i

[dpdk-dev] [PATCH] mk: add missing scripts directory in install directory

2014-05-16 Thread Thomas Monjalon
2014-05-09 15:31, David Marchand: > Trying to install headers for an external library using DPDK exported > makefile rte.extshared.mk results in following error : > > $ cd dpdk > $ make install DESTDIR=/home/marchand/myapp/staging/plop > T=x86_64-default-linuxapp-gcc $ cd ~/myapp > $ make RTE_SDK=

[dpdk-dev] [PATCH] app/testpmd: show mac address at initialization

2014-05-16 Thread Thomas Monjalon
> Display port number and MAC address at start up. > It is useful when configuring a packet generator. > > Signed-off-by: Zijie Pan Acked-by: Thomas Monjalon Applied for version 1.7.0. -- Thomas

[dpdk-dev] [PATCH] app/testpmd: add --disable-link-check option

2014-05-16 Thread Thomas Monjalon
2014-04-30 15:30, David Marchand: > When starting/stopping ports, a link status check on all available ports is > done. This can be annoying when cables are not plugged at the time. > Default behavior is untouched. > > Signed-off-by: David Marchand Acked-by: Thomas Monjalon Applied for version

[dpdk-dev] [PATCH] app/testpmd: add engine that replies to ARP and ICMP echo requests

2014-05-16 Thread Thomas Monjalon
> From: Ivan Boule > > Add a new specific packet processing engine in the "testpmd" application > that only replies to ARP requests and to ICMP echo requests. > For this purpose, a new "icmpecho" forwarding mode is provided that can be > dynamically selected with the following testpmd command: >

[dpdk-dev] [PATCH v3] app/testpmd: list forwarding engines

2014-05-16 Thread Thomas Monjalon
> > Having a function to list forwarding engines helps to show them > > in cli help and in parameters usage witout duplicating code. > > > > Signed-off-by: Thomas Monjalon > > Acked by: Ivan Boule Applied for version 1.7.0. -- Thomas

[dpdk-dev] [PATCH 0/6] Extensions to test-pmd

2014-05-16 Thread Thomas Monjalon
Hi Cyril, 2014-04-03 10:30, Cyril Chemparathy: > This patch series contains a few minor extensions to test-pmd. These > changes have been added primarily for convenience while testing out various > scenarios with DPDK. > > Cyril Chemparathy (6): > test-pmd: add support for single port loopback

[dpdk-dev] [PATCH 0/3] ring: provide rte_ring_as_ethdev API

2014-05-16 Thread Neil Horman
On Fri, May 16, 2014 at 07:15:11PM +0100, Bruce Richardson wrote: > This patch set aims to provide a shorter simpler alternative the public API > functions for using rings as ethdevs provided by the librte_pmd_ring library. > This alternative just provides simple RX and TX burst functions and a

[dpdk-dev] [PATCH 4/5] memzone: add iterator function

2014-05-16 Thread Olivier MATZ
> When doing diagnostic function, it is useful to have a ability > to iterate over all memzones. > > Signed-off-by: Stephen Hemminger Acked-by: Olivier Matz

[dpdk-dev] [PATCH 3/5] mempool: add walk iterator

2014-05-16 Thread Olivier MATZ
Hi Stephen, > +void rte_mempool_walk(void (*func)(const struct rte_mempool *, void *), > + void *arg) > +{ > + struct rte_mempool *mp = NULL; > + struct rte_mempool_list *mempool_list; > + > + if ((mempool_list = > + RTE_TAILQ_LOOKUP_BY_IDX(RTE_TAILQ_MEMPOOL,

[dpdk-dev] [PATCH RFC 11/11] ixgbe/mbuf: add TSO support

2014-05-16 Thread Olivier MATZ
Hi Konstantin, On 05/15/2014 06:30 PM, Ananyev, Konstantin wrote: > With the current DPDK implementation the upper code would still be different > for TCP checksum (without segmentation) and TCP segmentation: > different flags in mbuf, with TSO you need to setup l4_len and mss fields > inside mb

[dpdk-dev] [PATCH 2/2] timer bug fix

2014-05-16 Thread Vadim Suraev
Description: while running a periodic timer's callback, if another timer is manipulated, the updated flag is raised preventing the periodic timer to reload. Fix: move updated flag from priv_timer to rte_timer stucture (one per core) Signed-off-by: Vadim Suraev --- lib/librte_timer/rte_timer

[dpdk-dev] [PATCH 1/2] timer bug fix

2014-05-16 Thread Vadim Suraev
Description: when going running, the pending count is not incremented. Fix: decremend pending when going running. Then, if periodic, increment, if one shot - do nothing Signed-off-by: Vadim Suraev --- lib/librte_timer/rte_timer.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[dpdk-dev] [PATCH 0/2]

2014-05-16 Thread Vadim Suraev
two timer bugs fixed lib/librte_timer/rte_timer.c | 21 ++--- lib/librte_timer/rte_timer.h |7 ++- 2 files changed, 16 insertions(+), 12 deletions(-) -- 1.7.9.5

[dpdk-dev] [PATCH v5 00/14] dpdk: Separate compile time linkage between eal lib and pmd's

2014-05-16 Thread Neil Horman
On Mon, Apr 21, 2014 at 10:59:25AM -0400, Neil Horman wrote: > Disconnect compile time linkage between eal library / applications and pmd's > > I noticed that, while tinkering with dpdk, building for shared libraries still > resulted in all the test applications linking to all the built pmd's, des

[dpdk-dev] [PATCH v2 5/5] app/testpmd: allow to configure RSS hash key

2014-05-16 Thread Ivan Boule
Add the command "port config X rss-hash-key key" in the 'testpmd' application to configure the RSS hash key used to compute the RSS hash of input [IP] packets received on port X. Signed-off-by: Ivan Boule --- app/test-pmd/cmdline.c | 96 +++- app/tes

[dpdk-dev] [PATCH v2 4/5] ethdev: allow to get RSS hash functions and key

2014-05-16 Thread Ivan Boule
1) Add a new function "rss_hash_conf_get" in the PMD API to retrieve the current configuration of the RSS functions and/or of the RSS key used by a NIC to compute the RSS hash of input packets. The new function uses the existing data structure "rte_eth_rss_conf" for returning the RSS ha

[dpdk-dev] [PATCH v2 3/5] app/testpmd: configure RSS without restart

2014-05-16 Thread Ivan Boule
The function cmd_config_rss_parsed() associated with the command "port config rss all" required to first stop all ports, in order to then entirely re-configure all ports with the new RSS hash computation parameters. Use now the new function rte_eth_dev_rss_hash_conf_update() that dynamically only c

[dpdk-dev] [PATCH v2 2/5] ethdev: allow to set RSS hash computation flags and/or key

2014-05-16 Thread Ivan Boule
1) Add a new function "rss_hash_update" in the PMD API to dynamically update the RSS flags and/or the RSS key used by a NIC to compute the RSS hash of input packets. The new function uses the existing data structure "rte_eth_rss_conf" for the argument that contains the new hash flags an

[dpdk-dev] [PATCH v2 1/5] ethdev: check RX queue indices in RETA config against number of queues

2014-05-16 Thread Ivan Boule
Each entry of the RSS redirection table (RETA) of igb and ixgbe ports contains a 4-bit RX queue index, thus imposing RSS RX queue indices to be strictly lower than 16. In addition, if a RETA entry is configured with a RX queue index that is strictly lower than 16, but is greater or equal to the num

[dpdk-dev] [PATCH v2 0/5] allow to dynamically change RSS configuration

2014-05-16 Thread Ivan Boule
This set of patches allows to dynamically get and set the RSS configuration of a port: - rss functions (IPv4/IPv6//UDP/TCP ...) - rss hash key Changes included in v2: - Rename functions "rss_hash_conf_update" to "rss_hash_update" - In RSS hash update functions of igb and ixgbe PMDs, add tests th

[dpdk-dev] [PATCH v3 6/6] mk: add "make examples" target in root makefile

2014-05-16 Thread Olivier Matz
It is now possible to build all projects from the examples/ directory using one command from root directory. Some illustration of what is possible: - build examples in the DPDK tree for one target # install the x86_64-default-linuxapp-gcc in # ${RTE_SDK}/x86_64-default-linuxapp-gcc directory

[dpdk-dev] [PATCH v3 5/6] examples: fix netmap_compat example

2014-05-16 Thread Olivier Matz
It is not allowed to reference a an absolute file name in SRCS-y. A VPATH has to be used, else the dependencies won't be checked properly. Signed-off-by: Olivier Matz --- examples/netmap_compat/bridge/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/netma

[dpdk-dev] [PATCH v3 4/6] examples: fix qos_sched makefile

2014-05-16 Thread Olivier Matz
The example does not compile as the linker complains about duplicated symbols. Remove -lsched from LDLIBS, it is already present in rte.app.mk and added by the DPDK framework automatically. Signed-off-by: Olivier Matz --- examples/qos_sched/Makefile | 2 -- 1 file changed, 2 deletions(-) diff

[dpdk-dev] [PATCH v3 3/6] examples: add a makefile to build all examples

2014-05-16 Thread Olivier Matz
It is now possible to build all examples by doing the following: user at droids:~/dpdk.org$ cd examples user at droids:~/dpdk.org/examples$ make RTE_SDK=${PWD}/.. \ RTE_TARGET=x86_64-default-linuxapp-gcc Signed-off-by: Olivier Matz --- examples/Makefile | 68 ++

[dpdk-dev] [PATCH v3 2/6] examples: use rte.extsubdir.mk to process subdirectories

2014-05-16 Thread Olivier Matz
Signed-off-by: Olivier Matz --- examples/l2fwd-ivshmem/Makefile | 9 + examples/multi_process/Makefile | 16 +++- examples/multi_process/client_server_mp/Makefile | 15 ++- examples/quota_watermark/Makefile| 12 +++

[dpdk-dev] [PATCH v3 1/6] mk: introduce rte.extsubdir.mk

2014-05-16 Thread Olivier Matz
This makefile can be included by a project that needs to build several applications or libraries that are located in different directories. Signed-off-by: Olivier Matz --- mk/rte.extsubdir.mk | 53 + 1 file changed, 53 insertions(+) create mod

[dpdk-dev] [PATCH v3 0/6] examples: add a new makefile to build all examples

2014-05-16 Thread Olivier Matz
This patch series adds a makefile to build all examples supported by the configuration. It helps to check that all examples compile after a dpdk modification. After applying the patches, it is possible to build all examples for given targets, given the installation directory: # first, install t

[dpdk-dev] [PATCH 0/6] Extensions to test-pmd

2014-05-16 Thread Cyril Chemparathy
On 5/16/2014 7:22 AM, Thomas Monjalon wrote: > Hi Cyril, > > 2014-04-03 10:30, Cyril Chemparathy: >> This patch series contains a few minor extensions to test-pmd. These >> changes have been added primarily for convenience while testing out various >> scenarios with DPDK. >> >> Cyril Chemparathy (

[dpdk-dev] [PATCH v3] app/testpmd: list forwarding engines

2014-05-16 Thread Ivan Boule
On 05/15/2014 06:08 PM, Thomas Monjalon wrote: > Having a function to list forwarding engines helps to show them > in cli help and in parameters usage witout duplicating code. > > Signed-off-by: Thomas Monjalon > --- > app/test-pmd/cmdline.c| 52 > +++

[dpdk-dev] [PATCH v2] malloc: fix malloc and free linear complexity

2014-05-16 Thread rsanfo...@gmail.com
Problems with lib rte_malloc: 1. Rte_malloc searches a heap's entire free list looking for the best fit, resulting in linear complexity. 2. Heaps store free blocks in a singly-linked list, resulting in linear complexity when rte_free needs to remove an adjacent block. 3. The library

[dpdk-dev] fail to bind '82541GI Gigabit Ethernet Controller' to IGB_UIO driver

2014-05-16 Thread Thomas Monjalon
Hi Sim, 2014-05-14 18:44, Helmut Sim: > I made the required change in order to support the 82541GI chipset and I > was able to bind it successfully to the igb_uio Don't hesitate to submit a patch after having validated that it's working well. Thanks -- Thomas