[dpdk-dev] rte_acl test-acl app

2014-10-24 Thread Erik Ziegenbalg
Hi everyone, I am having trouble to successfully perform a packet classification using the rte_acl test app. I have my rules.acl and trace.acl files as follows: rules.acl: @192.168.0.0/24 192.168.0.0/24 400 : 500 1000 : 2000 6/0xff trace.acl: 192.168.0.5 192.168.0.9 450 1002 0x06 However, the

[dpdk-dev] rte_acl test-acl app

2014-10-24 Thread Erik Ziegenbalg
Hi everyone, I am having trouble to successfully perform a packet classification using the rte_acl test app. I have my rules.acl and trace.acl files as follows: rules.acl: @192.168.0.0/24 192.168.0.0/24 400 : 500 1000 : 2000 6/0xff trace.acl: 192.168.0.5 192.168.0.9 450 1002 0x06 However, the

[dpdk-dev] [PATCH 1/2] ixgbe: remove static qualifier for thread safety

2014-10-24 Thread Masaru Oki
Oh, sorry, you are right. I had missed first * for copy. thank you. 2014-10-24 19:34 GMT+09:00 Bruce Richardson : > On Thu, Oct 23, 2014 at 08:43:39AM +0900, Masaru Oki wrote: >> Hi, >> >> in this code, pointer of local variable (mb_def) is returned by your changes. >> mb_def should be static

[dpdk-dev] Possible bug in eal_pci pci_scan_one

2014-10-24 Thread Stephen Hemminger
On Mon, 6 Oct 2014 02:13:44 -0700 Matthew Hall wrote: > Hi Guys, > > I'm doing my development on kind of a cheap machine with no NUMA support... > but several years ago I used DPDK to build a NUMA box that could do 40 gbits > bidirectional L4-L7 stateful traffic replay. > > So given the past

[dpdk-dev] Cannot mmap device resource in DPDK 1.7.0 multi-process/multi-thread

2014-10-24 Thread Mario Gianni
So you are telling me that in order to implement multi-process I should better use the l2fwd_fork example instead of client_server_mp. In fact if I use the client_server_mp with a lot of mp_client threads it gives me the error. If instead I use the l2fwd_fork example it doesn't give me the

[dpdk-dev] [PATCH 2/3] pmd: RX function need keep EXTERNAL_MBUF flag

2014-10-24 Thread Bruce Richardson
On Fri, Oct 24, 2014 at 01:34:58PM +0100, Bruce Richardson wrote: > On Fri, Oct 24, 2014 at 10:46:06AM +, Ananyev, Konstantin wrote: > > Hi Changchun, > > > > > -Original Message- > > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ouyang Changchun > > > Sent: Friday,

[dpdk-dev] [PATCH] vhost: Check descriptor number for vector Rx

2014-10-24 Thread Ouyang Changchun
For zero copy, it need check whether RX descriptor num meets the least requirement when using vector PMD Rx function, and give user more hints if it fails to meet the least requirement. Signed-off-by: Changchun Ouyang --- examples/vhost/main.c | 17 + 1 file changed, 17

[dpdk-dev] [PATCH 3/3] vhost: Removes dependency on REFCNT for zero copy

2014-10-24 Thread Ouyang Changchun
Vhost zero copy removes the dependency on macro REFCNT by using EXTERNAL_MBUF flag in mbuf.ol_flags to indicate it is an external buffer from guest. Signed-off-by: Changchun Ouyang --- examples/vhost/main.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git

[dpdk-dev] [PATCH 2/3] pmd: RX function need keep EXTERNAL_MBUF flag

2014-10-24 Thread Ouyang Changchun
Every pmd RX function need keep the EXTERNAL_MBUF flag in mbuf.ol_flags, and can't overwrite it when filling ol_flags from descriptor to mbuf, otherwise, it probably cause to crash when freeing a mbuf and trying to freeing its attached external buffer, say, from guest space. Signed-off-by:

[dpdk-dev] [PATCH 0/3] Vhost app removes dependency of REFCNT

2014-10-24 Thread Ouyang Changchun
To remove the dependency of RTE_MBUF_REFCNT for vhost zero copy, the mbuf need introduce EXTERNAL_MBUF(in ol_flags) to indicate it attaches to an external buffer, say, from guest space. And don't free the external buffer when freeing the mbuf itself in host, in addition, RX function in PMD need

[dpdk-dev] [PATCH v2 4/4] app/testpmd:test VF MAC filter

2014-10-24 Thread Jijiang Liu
Add a test command in testpmd to test VF MAC filter feature. Signed-off-by: Jijiang Liu --- app/test-pmd/cmdline.c | 119 ++- 1 files changed, 116 insertions(+), 3 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index

[dpdk-dev] [PATCH v2 3/4] i40e:add VF MAC filter

2014-10-24 Thread Jijiang Liu
It mainly add i40e_vf_mac_filter_set() function to support perfect match and hash match of MAC address and VLAN ID for VF. Signed-off-by: Jijiang Liu --- lib/librte_pmd_i40e/i40e_ethdev.c | 118 - 1 files changed, 116 insertions(+), 2 deletions(-) diff

[dpdk-dev] [PATCH v2 2/4] i40e:expand MAC filter implemantation in i40e

2014-10-24 Thread Jijiang Liu
This patch mainly optimizes the i40e_add_macvlan_filters() and the i40e_remove_macvlan_filters() functions in order that we are able to provide filter type configuration. And another relevant MAC filter codes are changed based on new data structures. Signed-off-by: Jijiang Liu ---

[dpdk-dev] [PATCH v2 1/4] librte_ether:extend MAC filter data structures

2014-10-24 Thread Jijiang Liu
Add the data definations for MAC filter enhancement in rte_eth_ctrl.h file. Signed-off-by: Jijiang Liu --- lib/librte_ether/rte_eth_ctrl.h | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/lib/librte_ether/rte_eth_ctrl.h

[dpdk-dev] [PATCH v2 0/4] support VF MAC filter on Fortville

2014-10-24 Thread Jijiang Liu
The patch set enhances configurability of MAC filter and supports VF MAC filter on Fortville. It mainly includes: - The following filter type are configurable: 1. Perfect match of MAC address 2. Perfect match of MAC address and VLAN ID 3. Hash match of MAC address 4. Hash match of

[dpdk-dev] [PATCH 2/3] pmd: RX function need keep EXTERNAL_MBUF flag

2014-10-24 Thread Ananyev, Konstantin
> -Original Message- > From: Richardson, Bruce > Sent: Friday, October 24, 2014 4:43 PM > To: Ananyev, Konstantin > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 2/3] pmd: RX function need keep EXTERNAL_MBUF > flag > > On Fri, Oct 24, 2014 at 01:34:58PM +0100, Bruce Richardson

[dpdk-dev] [PATCH] doc: fix a typo

2014-10-24 Thread Jincheng Miao
Signed-off-by: Jincheng Miao --- doc/guides/linux_gsg/sys_reqs.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/linux_gsg/sys_reqs.rst b/doc/guides/linux_gsg/sys_reqs.rst index 6a03f54..c14411e 100755 --- a/doc/guides/linux_gsg/sys_reqs.rst +++

[dpdk-dev] [PATCH] eal: replace strict_strtoul with kstrtoul

2014-10-24 Thread Jincheng Miao
>From upstream kernel commit 3db2e9cd, strict_strto* serial functions are removed. So that we should directly used kstrtoul instead. Signed-off-by: Jincheng Miao --- lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 4 ++-- lib/librte_eal/linuxapp/kni/kni_vhost.c | 2 +-

[dpdk-dev] DPDK Community Conference Call - Friday 31st October

2014-10-24 Thread Michael Marchetti
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of O'driscoll, Tim > Sent: Friday, October 24, 2014 5:22 AM > To: dev at dpdk.org > Subject: [dpdk-dev] DPDK Community Conference Call - Friday 31st October > > We're planning to hold our first community

[dpdk-dev] Cannot mmap device resource in DPDK 1.7.0 multi-process/multi-thread

2014-10-24 Thread Mario Gianni
Hi Bruce, thank you for your answer, adding cores to the primary mask didn't help, instead it helped manually passing the --base-virtaddr parameter, setting it to the first value of Virtual Area that EAL finds when it starts the primary process. ? Honestly I don't understand why it works in

[dpdk-dev] EAL : Input/output error on DPDK 1.7.1

2014-10-24 Thread Stephen Hemminger
INTX is badly emulated in VMWare; the disable logic doesn't work. I thought the DPDK API detected when link state interrupt would not work. But of course the application needs to check that before enabling link state On Fri, Oct 24, 2014 at 8:52 AM, Masaru Oki wrote: > Hi, > I got same result

[dpdk-dev] Cannot mmap device resource in DPDK 1.7.0 multi-process/multi-thread

2014-10-24 Thread Bruce Richardson
On Fri, Oct 24, 2014 at 03:04:26PM +0200, Mario Gianni wrote: > Hi Bruce, > thank you for your answer, adding cores to the primary mask didn't help, > instead it helped manually passing the --base-virtaddr parameter, setting it > to the first value of Virtual Area that EAL finds when it starts

[dpdk-dev] [PATCH v5 3/3] ethdev: fix wrong error return refere to API definition

2014-10-24 Thread Cunming Liang
Per definition, rte_eth_rx_burst/rte_eth_tx_burst/rte_eth_rx_queue_count returns the packet number. When RTE_LIBRTE_ETHDEV_DEBUG turns on, retval of FUNC_PTR_OR_ERR_RTE was set to -ENOTSUP. It makes confusing. The patch always return 0 no matter no packet or there's error. Meanwhile set errno in

[dpdk-dev] [PATCH v5 2/3] app/test: measure the cost of rx/tx routines by cycle number

2014-10-24 Thread Cunming Liang
The unit test can be used to measure cycles per packet in different rx/tx rouines. The NIC works in loopback mode. So it doesn't require test equipment to measure throughput. As result, the unit test shows the average cycles per packet consuming. When doing the test, make sure the link is UP.

[dpdk-dev] [PATCH v5 1/3] app/test: allow to create packets in different sizes

2014-10-24 Thread Cunming Liang
adding support to allow packet burst generator to create packets in differenct sizes Signed-off-by: Cunming Liang Acked-by: Declan Doherty --- app/test/packet_burst_generator.c | 26 app/test/packet_burst_generator.h | 11 +++-- app/test/test_link_bonding.c

[dpdk-dev] [PATCH v5 0/3] app/test: unit test to measure cycles per packet

2014-10-24 Thread Cunming Liang
BTW, [1/3] is the same patch as below one. http://dpdk.org/dev/patchwork/patch/817 v5 update: # fix the confusing of retval in some API of rte_ethdev v4 ignore v3 update: # Codes refine according to the feedback. 1. add ether_format_addr to rte_ether.h 2. fix typo in code comments. 3.

[dpdk-dev] ethtool and igb/ixgbe (kni)

2014-10-24 Thread Kevin Wilson
Hi, I am looking in the file hierarchy of dpdk, and I see that under /dpdk-1.7.1/lib/librte_eal/linuxapp/kni/ethtool we have: igb ixgbe README My question is: why the igb and ixgbe are on this path, under ethtool ? are they related to ethtool in any way ? The README does not explain it.

[dpdk-dev] [PATCH v4 3/3] ethdev: fix wrong error return refer to API definition

2014-10-24 Thread Cunming Liang
Per definition, rte_eth_rx_burst/rte_eth_tx_burst/rte_eth_rx_queue_count returns the packet number. When RTE_LIBRTE_ETHDEV_DEBUG turns on, retval of FUNC_PTR_OR_ERR_RTE was set to -ENOTSUP. It makes confusing. The patch always return 0 no matter no packet or there's error. Meanwhile set errno in

[dpdk-dev] [PATCH v4 2/3] app/test: measure the cost of rx/tx routines by cycle number

2014-10-24 Thread Cunming Liang
The unit test can be used to measure cycles per packet in different rx/tx rouines. The NIC works in loopback mode. So it doesn't require test equipment to measure throughput. As result, the unit test shows the average cycles per packet consuming. When doing the test, make sure the link is UP.

[dpdk-dev] [PATCH v4 1/3] app/test: allow to create packets in different sizes

2014-10-24 Thread Cunming Liang
adding support to allow packet burst generator to create packets in differenct sizes Signed-off-by: Cunming Liang Acked-by: Declan Doherty --- app/test/packet_burst_generator.c | 26 app/test/packet_burst_generator.h | 11 +++-- app/test/test_link_bonding.c

[dpdk-dev] [PATCH v4 0/3] app/test: unit test to measure cycles per packet

2014-10-24 Thread Cunming Liang
BTW, [1/3] is the same patch as below one. http://dpdk.org/dev/patchwork/patch/817 v4 update: # fix the confusing of retval in some API of rte_ethdev v3 update: # Codes refine according to the feedback. 1. add ether_format_addr to rte_ether.h 2. fix typo in code comments. 3. %lu to

[dpdk-dev] [PATCH 2/3] pmd: RX function need keep EXTERNAL_MBUF flag

2014-10-24 Thread Bruce Richardson
On Fri, Oct 24, 2014 at 10:46:06AM +, Ananyev, Konstantin wrote: > Hi Changchun, > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ouyang Changchun > > Sent: Friday, October 24, 2014 9:10 AM > > To: dev at dpdk.org > > Subject: [dpdk-dev] [PATCH 2/3]

[dpdk-dev] Cannot mmap device resource in DPDK 1.7.0 multi-process/multi-thread

2014-10-24 Thread Mario Gianni
Hi all, I have a problem since I updated to 1.7.0 version, I got a multi-process, multi-threaded application, In my application first I launch a master process, then I launch a secondary process with multiple threads in it Well, when the number of lcores reserved for the secondary process exceeds

[dpdk-dev] Cannot mmap device resource in DPDK 1.7.0 multi-process/multi-thread

2014-10-24 Thread Bruce Richardson
On Fri, Oct 24, 2014 at 01:21:08PM +0200, Mario Gianni wrote: > Hi all, I have a problem since I updated to 1.7.0 version, > I got a multi-process, multi-threaded application, > In my application first I launch a master process, then I launch a secondary > process with multiple threads in it >

[dpdk-dev] EAL : Input/output error on DPDK 1.7.1

2014-10-24 Thread Masaru Oki
Hi, I got same result in VMware Workstation environment. At least in my environment, INTX toggle check is not work with VMware E1000 Ethernet. Please try attached patch. 2014-10-17 3:04 GMT+09:00 Raghav K : > Hey, > I observe continuous burst of I/O Errors, as indicated below, with the > testpmd

[dpdk-dev] [dpdk-announce] DPDK Features for Q1 2015

2014-10-24 Thread Thomas Monjalon
2014-10-24 08:10, O'driscoll, Tim: > > From: Matthew Hall [mailto:mhall at mhcomputing.net] > > Specifically, in the virtio-net case above, I have discovered, and Sergio > > at Intel > > just reproduced today, that neither virtio PMD works at all inside of > > VirtualBox. One can't init, and the

[dpdk-dev] Possible bug in eal_pci pci_scan_one

2014-10-24 Thread Matthew Hall
On Fri, Oct 24, 2014 at 06:36:29PM +0530, Stephen Hemminger wrote: > The code is fairly consistent in returning -1 for cases of not a NUMA socket, > bogus port value. It is interpreted as SOCKET_ID_ANY in several places. > The examples mostly check for -1 and use socket 0 as a fallback. > Probably

[dpdk-dev] [dpdk-announce] DPDK Features for Q1 2015

2014-10-24 Thread Matthew Hall
On Fri, Oct 24, 2014 at 12:10:20PM +0200, Thomas Monjalon wrote: > I'm the author of this page. I think I've written VirtualBox to show where > virtio is implemented. You interpreted this as "supported environment", so > I'm removing it. Thanks for testing and reporting. Of course, I'm very

[dpdk-dev] [dpdk-announce] DPDK Features for Q1 2015

2014-10-24 Thread Matthew Hall
On Fri, Oct 24, 2014 at 08:10:40AM +, O'driscoll, Tim wrote: > At the moment, within Intel we test with KVM, Xen and ESXi. We've never > tested with VirtualBox. So, maybe this is an error on the Supported NICs > page, or maybe somebody else is testing that configuration. So, one of the most

[dpdk-dev] [PATCH 0/3] Vhost app removes dependency of REFCNT

2014-10-24 Thread Thomas Monjalon
2014-10-24 16:10, Ouyang Changchun: > To remove the dependency of RTE_MBUF_REFCNT for vhost zero copy, > the mbuf need introduce EXTERNAL_MBUF(in ol_flags) to indicate it > attaches to an external buffer, say, from guest space. And don't > free the external buffer when freeing the mbuf itself in

[dpdk-dev] [PATCH 0/3] Vhost app removes dependency of REFCNT

2014-10-24 Thread Bruce Richardson
On Fri, Oct 24, 2014 at 11:47:46AM +0200, Thomas Monjalon wrote: > 2014-10-24 16:10, Ouyang Changchun: > > To remove the dependency of RTE_MBUF_REFCNT for vhost zero copy, > > the mbuf need introduce EXTERNAL_MBUF(in ol_flags) to indicate it > > attaches to an external buffer, say, from guest

[dpdk-dev] [PATCH 1/2] ixgbe: remove static qualifier for thread safety

2014-10-24 Thread Bruce Richardson
On Thu, Oct 23, 2014 at 08:43:39AM +0900, Masaru Oki wrote: > Hi, > > in this code, pointer of local variable (mb_def) is returned by your changes. > mb_def should be static for each thread. Actually, no. A copy is made of 8 bytes of the mb_def variable and stored as an mbuf initializer inside

[dpdk-dev] [PATCH] vhost: Check descriptor number for vector Rx

2014-10-24 Thread Thomas Monjalon
Hi Changchun, 2014-10-24 16:38, Ouyang Changchun: > For zero copy, it need check whether RX descriptor num meets the > least requirement when using vector PMD Rx function, and give user > more hints if it fails to meet the least requirement. [...] > --- a/examples/vhost/main.c > +++

[dpdk-dev] [PATCH v5 3/3] ethdev: fix wrong error return refere to API definition

2014-10-24 Thread Ananyev, Konstantin
> -Original Message- > From: y at ecsmtp.sh.intel.com [mailto:y at ecsmtp.sh.intel.com] > Sent: Friday, October 24, 2014 6:55 AM > To: dev at dpdk.org > Cc: nhorman at tuxdriver.com; Richardson, Bruce; Ananyev, Konstantin; De Lara > Guarch, Pablo; Liang, Cunming > Subject: [PATCH v5

[dpdk-dev] [PATCH 2/3] pmd: RX function need keep EXTERNAL_MBUF flag

2014-10-24 Thread Ananyev, Konstantin
Hi Changchun, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ouyang Changchun > Sent: Friday, October 24, 2014 9:10 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 2/3] pmd: RX function need keep EXTERNAL_MBUF flag > > Every pmd RX function need keep

[dpdk-dev] [PATCH] kni: fix building on Ubuntu-hybrids

2014-10-24 Thread Alexander Guy
On Oct 24, 2014, at 12:35 AM, Thomas Monjalon wrote: > > Please, could explain what is the file /proc/version_signature and why > it can be a check for Ubuntu kernel? Ubuntu provides /proc/version_signature to help with determining kernel lineage; it doesn?t exist in upstream kernels:

[dpdk-dev] [PATCH] kni: fix building on Ubuntu-hybrids

2014-10-24 Thread Thomas Monjalon
2014-10-23 16:39, Alexander Guy: > In the case where a userspace reports itself as Ubuntu, but the > kernel isn't providing the expected version signature interface, > turn off Ubuntu specializations. > > This situation happens often enough in development environments, > and with

[dpdk-dev] DPDK Community Conference Call - Friday 31st October

2014-10-24 Thread O'driscoll, Tim
We're planning to hold our first community conference call on Friday 31st October. It's impossible to find a time that suits everybody, so we've chosen to do this in the afternoon/evening in Europe, which is the morning in the USA. This does unfortunately limit participation from PRC, Japan and

[dpdk-dev] [dpdk-announce] DPDK Features for Q1 2015

2014-10-24 Thread O'driscoll, Tim
> From: Matthew Hall [mailto:mhall at mhcomputing.net] > > On Wed, Oct 22, 2014 at 01:48:36PM +, O'driscoll, Tim wrote: > > Single Virtio Driver: Merge existing Virtio drivers into a single > > implementation, incorporating the best features from each of the > > existing drivers. > >

[dpdk-dev] [PATCH v4 0/3] app/test: unit test to measure cycles per packet

2014-10-24 Thread Liang, Cunming
Sorry, just ignore this version. > -Original Message- > From: Liang, Cunming > Sent: Friday, October 24, 2014 1:40 PM > To: dev at dpdk.org > Cc: nhorman at tuxdriver.com; Richardson, Bruce; Ananyev, Konstantin; De Lara > Guarch, Pablo; Liang, Cunming > Subject: [PATCH v4 0/3] app/test:

[dpdk-dev] [PATCH v4 5/8] test app: adding support for generating variable sized packet bursts

2014-10-24 Thread Liang, Cunming
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Declan Doherty > Sent: Tuesday, September 30, 2014 5:58 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v4 5/8] test app: adding support for generating > variable sized packet bursts > > >

[dpdk-dev] [PATCH v2 1/4] app/test: unit test for rx and tx cycles/packet

2014-10-24 Thread Liang, Cunming
It's reasonable to me. I'll make a patch for rte_ethdev.c. > -Original Message- > From: Richardson, Bruce > Sent: Wednesday, October 22, 2014 11:10 PM > To: Ananyev, Konstantin; Neil Horman; Liang, Cunming > Cc: dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 1/4] app/test: unit test