[dpdk-dev] mmap fails with more than 40000 hugepages

2015-02-06 Thread Linhaifeng
On 2015/2/5 20:00, Damjan Marion (damarion) wrote: > Hi, > > I have system with 2 NUMA nodes and 256G RAM total. I noticed that DPDK > crashes in rte_eal_init() > when number of available hugepages is around 4 or above. > Everything works fine with lower values (i.e. 3). > > I also

[dpdk-dev] [PATCH] fix testpmd show port info error

2015-02-06 Thread Xuelin Shi
Hi Olivier, Would you please help to review the bottom patch? Thanks, Shi Xuelin -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Xuelin Shi Sent: Thursday, February 05, 2015 17:27 To: dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH] fix testpmd show port info

[dpdk-dev] mmap fails with more than 40000 hugepages

2015-02-06 Thread Linhaifeng
On 2015/2/5 20:00, Damjan Marion (damarion) wrote: > Hi, > > I have system with 2 NUMA nodes and 256G RAM total. I noticed that DPDK > crashes in rte_eal_init() > when number of available hugepages is around 4 or above. > Everything works fine with lower values (i.e. 3). > > I also

[dpdk-dev] [PATCH v2] testpmd: fix port parsing in show port info command

2015-02-06 Thread xuelin....@freescale.com
From: Xuelin Shi the port number type should be consistent with librte_cmdline, else there is potential endian issue. Signed-off-by: Xuelin Shi --- v2 change: change port type to uint8 rephrase patch title app/test-pmd/cmdline.c | 2 +- 1 file changed, 1

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

2015-02-06 Thread Linhaifeng
On 2015/2/4 9:38, Xu, Qian Q wrote: > 4. Launch the VM1 and VM2 with virtio device, note: you need use qemu > version>2.1 to enable the vhost-user server's feature. Old qemu such as > 1.5,1.6 didn't support it. > Below is my VM1 startup command, for your reference, similar for VM2. >

[dpdk-dev] [PATCH v6 1/2] librte_pmd_null: Add null PMD

2015-02-06 Thread Tetsuya Mukawa
'null PMD' is a driver of the virtual device particulary designed to measure performance of DPDK PMDs. When an application call rx, null PMD just allocates mbufs and returns those. Also tx, the PMD just frees mbufs. The PMD has following options. - size: specify packe size allocated by RX.

[dpdk-dev] [PATCH v6 2/2] librte_pmd_null: Support port hotplug function

2015-02-06 Thread Tetsuya Mukawa
This patch adds port hotplug support to null PMD. v6: - Fix a paramter of rte_eth_dev_free(). v4: - Fix commit title. Signed-off-by: Tetsuya Mukawa --- lib/librte_pmd_null/rte_eth_null.c | 32 1 file changed, 32 insertions(+) diff --git

[dpdk-dev] ixgbe:about latency

2015-02-06 Thread Linhaifeng
Hi, I used l2fwd to test ixgbe PMD's latency (packet length is 64 bytes) found an interesting thing that latency is about 22us when tx bits rate is 4M and latency is 103us when tx bits rate is 5M. Who can tell me why?Is it a bug? Thank you very much! -- Regards, Haifeng

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

2015-02-06 Thread Xu, Qian Q
Haifeng Are you using the latest dpdk branch with vhost-user patches? I have never met the issue. When is the vhost sample crashed? When you start VM or when you run sth in VM? Is your qemu 2.2? How about your memory info? Could you give more details about your steps? -Original

[dpdk-dev] ACL Issue with single field rule and rest with wild card entry

2015-02-06 Thread Rapelly, Varun
to match wild card entries in a rule? Regards, Varun -- next part -- An embedded and charset-unspecified text was scrubbed... Name: main.c URL: <http://dpdk.org/ml/archives/dev/attachments/20150206/2fb0639e/attachment.c>

[dpdk-dev] [PATCH v2] testpmd: fix port parsing in show port info command

2015-02-06 Thread Olivier MATZ
Hi, On 02/06/2015 02:29 AM, xuelin.shi at freescale.com wrote: > From: Xuelin Shi > > the port number type should be consistent with librte_cmdline, > else there is potential endian issue. > > Signed-off-by: Xuelin Shi > --- > v2 change: > change port type to uint8 > rephrase patch title >

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

2015-02-06 Thread Olivier MATZ
Hi Thomas, On 02/04/2015 11:23 PM, Thomas Monjalon wrote: > 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

[dpdk-dev] [dts] Bond feature can't running well on 40G i40e NICs

2015-02-06 Thread Declan Doherty
On 05/02/15 02:03, lhffjzh wrote: > Hi DPDK maintainers, > > > > We encounter confusion recently which is 40G i40e NICs bond issue, our > bonding logic as below, the ixgbe bonding is running well both 1.7.1 and > 1.8.0, but i40e are all failed. > > > > Create bond port -> config slave ports(tx/rx)

[dpdk-dev] mmap fails with more than 40000 hugepages

2015-02-06 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Linhaifeng > Sent: Friday, February 06, 2015 2:04 AM > To: Damjan Marion (damarion); dev at dpdk.org > Subject: Re: [dpdk-dev] mmap fails with more than 4 hugepages > > > > On 2015/2/5 20:00, Damjan

[dpdk-dev] mmap fails with more than 40000 hugepages

2015-02-06 Thread Damjan Marion (damarion)
> On 06 Feb 2015, at 11:26, De Lara Guarch, Pablo intel.com> wrote: > > > >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Linhaifeng >> Sent: Friday, February 06, 2015 2:04 AM >> To: Damjan Marion (damarion); dev at dpdk.org >> Subject: Re: [dpdk-dev]

[dpdk-dev] upper limit on the size of allocation through rte_malloc in dpdk-1.8.0?

2015-02-06 Thread Bruce Richardson
On Wed, Feb 04, 2015 at 05:24:58PM +0200, Stefan Puiu wrote: > 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

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

2015-02-06 Thread Linhaifeng
On 2015/2/6 13:54, Xu, Qian Q wrote: > Haifeng > Are you using the latest dpdk branch with vhost-user patches? I have never > met the issue. > When is the vhost sample crashed? When you start VM or when you run sth in > VM? Is your qemu 2.2? How about your memory info? Could you give more

[dpdk-dev] [RFC PATCH] rte_timer: Fix rte_timer_reset return value

2015-02-06 Thread Olivier MATZ
Hi Robert, Please see some comments below. On 02/03/2015 09:42 PM, rsanford2 at gmail.com wrote: > From: Robert Sanford > > - API rte_timer_reset() should return -1 when the timer is in the > RUNNING or CONFIG state. Instead, it ignores the return value of > internal function

[dpdk-dev] XL710 what is correct SFP+ connector vendor?

2015-02-06 Thread sothy shan
Hi! we are using XL710 4 portx10G. For the connetion can we use SFP+ connector from any vendor? Any specific SFP+ connector to test DPDK? We have some SFP+ connectoors. when connected, nothing is working. Thanks for your reponse. Best regards Sothy

[dpdk-dev] upper limit on the size of allocation through rte_malloc in dpdk-1.8.0?

2015-02-06 Thread Olivier MATZ
Hi, On 02/06/2015 12:00 PM, Bruce Richardson wrote: > On Wed, Feb 04, 2015 at 05:24:58PM +0200, Stefan Puiu wrote: >> 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

[dpdk-dev] [PATCH v6 1/2] librte_pmd_null: Add null PMD

2015-02-06 Thread Iremonger, Bernard
Hi Tetsuya, My comments are in line below. > -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Friday, February 6, 2015 4:38 AM > To: dev at dpdk.org > Cc: Iremonger, Bernard; Tetsuya Mukawa > Subject: [PATCH v6 1/2] librte_pmd_null: Add null PMD > > 'null

[dpdk-dev] ACL Issue with single field rule and rest with wild card entry

2015-02-06 Thread Ananyev, Konstantin
Hi Varun, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Rapelly, Varun > Sent: Friday, February 06, 2015 7:25 AM > To: dev at dpdk.org > Subject: [dpdk-dev] ACL Issue with single field rule and rest with wild card > entry > > Hi, > > struct ipv6_5tuple

[dpdk-dev] [PATCH] MAINTAINERS: claim IP fragmentation and ACL

2015-02-06 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a63714..e5abe7d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -226,6 +226,7 @@ Network headers F: lib/librte_net/ IP fragmentation & reassembly +M:

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

2015-02-06 Thread Gonzalez Monroy, Sergio
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Cristian Dumitrescu > Sent: Wednesday, February 4, 2015 3:53 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] MAINTAINERS: claim metering, sched and pkt > framework > > As original author of these DPDK components, I am volunteering

[dpdk-dev] [PATCH] MAINTAINERS: claim IP fragmentation and ACL

2015-02-06 Thread Gonzalez Monroy, Sergio
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Konstantin > Ananyev > Sent: Friday, February 6, 2015 12:36 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] MAINTAINERS: claim IP fragmentation and ACL > > Signed-off-by: Konstantin Ananyev > --- > MAINTAINERS | 2 ++ > 1 file

[dpdk-dev] [PATCH] ixgbe: fix vector PMD chained mbuf receive

2015-02-06 Thread Bruce Richardson
When the vector pmd was receiving a mix of packets of various sizes, some of which were split across multiple mbufs, there was an issue with reassembly of the jumbo frames. This was due to a skipped increment when using "continue" in a while loop. Changing the loop to a "for" loop fixes this

[dpdk-dev] [PATCH] maintainers: claim FreeBSD EAL and distributor

2015-02-06 Thread Bruce Richardson
--- MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a63714..7a2c3ba 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -120,14 +120,17 @@ F: examples/vhost_xen/ F: doc/guides/prog_guide/intel_dpdk_xen_based_packet_switch_sol.rst FreeBSD EAL (with

[dpdk-dev] [PATCH] maintainers: claim FreeBSD EAL and distributor

2015-02-06 Thread Bruce Richardson
On Fri, Feb 06, 2015 at 01:51:46PM +, Bruce Richardson wrote: > --- > MAINTAINERS | 4 > 1 file changed, 4 insertions(+) Forgot sign-off :-(, will send v2 now, with it. /Bruce > > diff --git a/MAINTAINERS b/MAINTAINERS > index 9a63714..7a2c3ba 100644 > --- a/MAINTAINERS > +++

[dpdk-dev] [PATCH v2] maintainers: claim FreeBSD EAL and distributor

2015-02-06 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a63714..7a2c3ba 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -120,14 +120,17 @@ F: examples/vhost_xen/ F:

[dpdk-dev] [PATCH] maintainers: claim hash, lpm and cfgfile libraries

2015-02-06 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7a2c3ba..cf6baff 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -278,12 +278,14 @@ F: examples/l3fwd-acl/ F: doc/guides/sample_app_ug/l3_forward_access_ctrl.rst

[dpdk-dev] [PATCH] testpmd: remove duplicated parameter parsing

2015-02-06 Thread Pablo de Lara
Several parameters were being parsed twice in testpmd, so this patch gets rid of the second parsing. Signed-off-by: Pablo de Lara --- app/test-pmd/parameters.c | 56 - 1 files changed, 0 insertions(+), 56 deletions(-) diff --git

[dpdk-dev] [PATCH] testpmd: remove incorrect parameter limits in help command line

2015-02-06 Thread Pablo de Lara
Ring threshold parameters an RX/TX queue (pthresh, wthresh and hthresh) had an incorrect range of values shown in help command line. Signed-off-by: Pablo de Lara --- app/test-pmd/parameters.c | 18 ++ 1 files changed, 6 insertions(+), 12 deletions(-) diff --git

[dpdk-dev] [PATCH] maintainers: claim hash, lpm and cfgfile libraries

2015-02-06 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > Sent: Friday, February 06, 2015 1:57 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] maintainers: claim hash, lpm and cfgfile libraries > > Signed-off-by: Bruce Richardson

[dpdk-dev] [PATCH v2] maintainers: claim FreeBSD EAL and distributor

2015-02-06 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > Sent: Friday, February 06, 2015 1:56 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] maintainers: claim FreeBSD EAL and > distributor > > Signed-off-by: Bruce Richardson

[dpdk-dev] [PATCH v3 0/5] New Reorder Library

2015-02-06 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 v3 1/5] reorder: new reorder library

2015-02-06 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 v3 2/5] app: New reorder unit test

2015-02-06 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] [discuss]emulated e1000 device with qemu is not showing nic stats correctly

2015-02-06 Thread Srinivasreddy R
Hi , I have emulated virtual e1000 device using qemu . I have binded to igb_uio . and run PacketGen . Now I am able to receive and transmit packets on the device . But PacketGen is not showing Tx/Rx Rate . I have put printed struct rte_eth_stats after fetching nic stats . except tx,

[dpdk-dev] [PATCH v4 16/17] ring: add sched_yield to avoid spin forever

2015-02-06 Thread Olivier MATZ
Hi, On 02/02/2015 03:02 AM, Cunming Liang wrote: > Add a sched_yield() syscall if the thread spins for too long, waiting other > thread to finish its operations on the ring. > That gives pre-empted thread a chance to proceed and finish with ring > enqnue/dequeue operation. > The purpose is to

[dpdk-dev] [PATCH] maintainers: claim hash, lpm and cfgfile libraries

2015-02-06 Thread Bruce Richardson
On Fri, Feb 06, 2015 at 01:57:07PM +, Bruce Richardson wrote: > Signed-off-by: Bruce Richardson Self-NAK this version - Cristian has already claimed cfgfile and I'm happy to let him have it :-) > --- > MAINTAINERS | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/MAINTAINERS

[dpdk-dev] [PATCH v2] maintainers: claim hash and lpm libraries

2015-02-06 Thread Bruce Richardson
Signed-off-by: Bruce Richardson remove me from cfgfile --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7a2c3ba..99cb6b7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -278,12 +278,14 @@ F: examples/l3fwd-acl/ F:

[dpdk-dev] [PATCH v3] maintainers: claim hash and lpm libraries

2015-02-06 Thread Bruce Richardson
Signed-off-by: Bruce Richardson --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7a2c3ba..99cb6b7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -278,12 +278,14 @@ F: examples/l3fwd-acl/ F: doc/guides/sample_app_ug/l3_forward_access_ctrl.rst

[dpdk-dev] [RFC PATCH] rte_timer: Fix rte_timer_reset return value

2015-02-06 Thread Robert Sanford
Hi Olivier, Thanks for reviewing this patch. Please see my responses to your comments, below. I also have one request for you. You probably use git almost every day. For people who only use git maybe once per year, could you please show us the exact sequence of commands that you run to prepare a

[dpdk-dev] [PATCH 0/4] Broadcom 10G NIC Poll Mode Driver

2015-02-06 Thread Stephen Hemminger
From: Stephen Hemminger These are the patches to enable supporting the Broadcom NetExtreme II 10G devices (show up as bnx2x on Linux). The driver has only been tested on Linux, there maybe issues with firmware loading and PCI config access on BSD. Stephen Hemminger (4):

[dpdk-dev] [PATCH 1/4] pci: allow access to PCI config space

2015-02-06 Thread Stephen Hemminger
From: Stephen Hemminger Some drivers need ability to access PCI config (for example for power management). This adds an abstraction to do this; only implemented on Linux, but should be possible on BSD. Signed-off-by: Stephen Hemminger ---

[dpdk-dev] [PATCH 2/4] bcm: add BCM pci device ids

2015-02-06 Thread Stephen Hemminger
From: Stephen Hemminger Add PCI id's to enable BCM poll mode driver. Signed-off-by: Stephen Hemminger --- lib/librte_eal/common/include/rte_pci_dev_ids.h | 30 + 1 file changed, 30 insertions(+) diff --git

[dpdk-dev] [PATCH 4/4] bcm: enable BCM poll mode driver in config

2015-02-06 Thread Stephen Hemminger
From: Stephen Hemminger Enable BCM poll mode driver in default config. Signed-off-by: Stephen Hemminger --- config/common_linuxapp | 10 ++ 1 file changed, 10 insertions(+) diff --git a/config/common_linuxapp b/config/common_linuxapp index d428f84..86b157d

[dpdk-dev] [PATCH v4 00/17] support multi-pthread per core

2015-02-06 Thread Robert Sanford
On Fri, Feb 6, 2015 at 10:47 AM, Olivier MATZ wrote: > Hi, > > On 02/02/2015 03:02 AM, Cunming Liang wrote: > > v4 changes: > > new patch fixing strnlen() invalid return in 32bit icc [03/17] > > update and add more comments on sched_yield() [16/17] > > > > v3 changes: > > new patch adding

[dpdk-dev] [PATCH 3/4] bcm: new poll mode driver

2015-02-06 Thread Stephen Hemminger
From: Stephen Hemminger Add driver for the Broadcom NetXtremeII 10 gigabit devices. Signed-off-by: Stephen Hemminger --- lib/Makefile| 1 + lib/librte_pmd_bcm/Makefile |28 + lib/librte_pmd_bcm/bcm.c| 11817