[dpdk-dev] [PATCH] i40e: prefer base driver naming

2014-06-24 Thread Thomas Monjalon
2014-06-24 15:32, Zhang, Helin: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > > The PMD is built on top of the base driver which is provided by Intel and > > shouldn't be modified to allow easy batch upgrade from Intel. > > > > The base driver is a "shared code" between many p

[dpdk-dev] [RFC PATCH DRAFT 2/2] l2fwd: update l2fwd to use tx_buffer API

2014-06-24 Thread Bruce Richardson
The internal buffering of packets for TX done in l2fwd is no longer needed, so replace this code with calls to the new rte_eth_tx_buffer* APIs. --- examples/l2fwd/main.c | 61 ++- 1 file changed, 7 insertions(+), 54 deletions(-) diff --git a/example

[dpdk-dev] [RFC PATCH DRAFT 1/2] ethdev: add buffered single pkt TX function to API

2014-06-24 Thread Bruce Richardson
Many sample apps include internal buffering for single-packet-at-a-time operation. Since this is such a common paradigm, this functionality is better suited to being inside the core ethdev API. The new APIs include three functions: * rte_eth_tx_buffer - buffer up a single packet for future transmis

[dpdk-dev] [RFC PATCH DRAFT 0/2] ethdev: Proposal to expand API for single-pkt-tx

2014-06-24 Thread Bruce Richardson
This is an RFC patch to get feedback on this change proposal before I do any further investigation work into it, looking at all the example apps - as there are a lot of them. :-) The idea is to remove all the code in the sample applications for buffering packets on TX by moving the buffering functi

[dpdk-dev] Random mbuf corruption

2014-06-24 Thread Stefan Baranoff
Thanks, all! We have alloc/free counters in place but I'll enable those debug options. I'll try older releases of RHEL and get back to you. I've also eradicated pthreads in this code but also have the mempool cache size set to 0 just in case. I should mention we hold onto mbufs for a while (up to

[dpdk-dev] eal_parse_coremask fails on SIGILL

2014-06-24 Thread Helmut Sim
Indeed, I just verified it with building for Westmere, thanks. However the meaning is that the system will be built to the lowest target microarchitecture, or alternatively, multiple builds for different microarchitectures will be delivered. Thanks. On Tue, Jun 24, 2014 at 8:32 PM, Richardson,

[dpdk-dev] eal_parse_coremask fails on SIGILL

2014-06-24 Thread Helmut Sim
one more detail, i am using dpdk-1.6.0r1 On Tue, Jun 24, 2014 at 6:05 PM, Helmut Sim wrote: > Hi, > > I need some help to understand the following issue. > > I am building the DPDK with make install T=x86_64-default-linuxapp-gcc and > it works well on my machine. > However when testing it on m

[dpdk-dev] eal_parse_coremask fails on SIGILL

2014-06-24 Thread Helmut Sim
Hi, I need some help to understand the following issue. I am building the DPDK with make install T=x86_64-default-linuxapp-gcc and it works well on my machine. However when testing it on my virtual machine (ubuntu 14.04 server guest n xen hv) it fails for SIGILL: here is the relevant gdb output f

[dpdk-dev] [PATCH 1/3] stringfns: remove rte_snprintf

2014-06-24 Thread Richardson, Bruce
> -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Tuesday, June 24, 2014 10:54 AM > To: Richardson, Bruce > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 1/3] stringfns: remove rte_snprintf > > On Tue, 24 Jun 2014 17:39:52 + > "Richard

[dpdk-dev] [PATCH] mempool: don't leak ring on failure

2014-06-24 Thread Ananyev, Konstantin
> > On Tue, 24 Jun 2014 16:16:02 + > "Ananyev, Konstantin" wrote: > > > But now, memzone created for the actual mempool could get leaked instead? > > Since memzone's can't be destroyed, then only solution would be if > checked if memzone with same name already exists. Actually, wouldn't it

[dpdk-dev] [PATCH] mempool: don't leak ring on failure

2014-06-24 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ananyev, Konstantin > Sent: Tuesday, June 24, 2014 9:16 AM > To: Stephen Hemminger; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] mempool: don't leak ring on failure > > Hi Stephen, > > > > > If mempool can

[dpdk-dev] [PATCH 1/3] stringfns: remove rte_snprintf

2014-06-24 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Stephen Hemminger > Sent: Tuesday, June 24, 2014 9:03 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 1/3] stringfns: remove rte_snprintf > > The function rte_snprintf serves no useful purpose. It is the >

[dpdk-dev] eal_parse_coremask fails on SIGILL

2014-06-24 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Helmut Sim > Sent: Tuesday, June 24, 2014 8:08 AM > To: dev at dpdk.org > Subject: Re: [dpdk-dev] eal_parse_coremask fails on SIGILL > > one more detail, i am using dpdk-1.6.0r1 > > > > On Tue, Jun 24, 2014

[dpdk-dev] [PATCH 1/2] mk: overriding CC also overrides HOSTCC

2014-06-24 Thread Richardson, Bruce
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, June 24, 2014 2:39 AM > To: Richardson, Bruce > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 1/2] mk: overriding CC also overrides HOSTCC > > Hi Bruce, > > 2014-06-24 01:23, Bruce R

[dpdk-dev] [PATCH v7 6/6] Link Bonding Library doxygen additions

2014-06-24 Thread Declan Doherty
Signed-off-by: Declan Doherty --- doc/doxy-api-index.md |1 + doc/doxy-api.conf |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/doc/doxy-api-index.md b/doc/doxy-api-index.md index 7b26e98..ee3ad4f 100644 --- a/doc/doxy-api-index.md +++ b/doc/doxy-api-index.md @@

[dpdk-dev] [PATCH v7 5/6] testpmd link bonding additions

2014-06-24 Thread Declan Doherty
- Includes the ability to create new bonded devices. - Add /remove bonding slave devices. - Interogate bonded device stats/configuration - Change bonding modes and select balance transmit polices Signed-off-by: Declan Doherty --- app/test-pmd/cmdline.c| 579 +

[dpdk-dev] [PATCH v7 4/6] Link bonding Unit Tests

2014-06-24 Thread Declan Doherty
Including: - code to generate packet bursts for testing rx and tx functionality of bonded device - virtual/stubbed out ethdev for use as slave ethdev in testing Signed-off-by: Declan Doherty --- app/test/Makefile |4 +- app/test/commands.c |7 + app/tes

[dpdk-dev] [PATCH v7 3/6] EAL support for link bonding device initialization

2014-06-24 Thread Declan Doherty
Updating functionality in EAL to support adding link bonding devices via ?vdev option. Link bonding devices will be initialized after all physical devices have been probed and initialized. Signed-off-by: Declan Doherty --- lib/librte_eal/bsdapp/eal/eal.c | 10 - lib/librte_eal/

[dpdk-dev] [PATCH v7 2/6] Support for unique interface naming of pmds

2014-06-24 Thread Declan Doherty
Adding support to rte_eth_dev_data structure to support unique name identifier for ethdevs to support adding slave ethdevs (specifically virtual devices which have no public unique identifier) to a link bonding device. This changes the API rte_eth_dev_allocate() to require a const char *name when a

[dpdk-dev] [PATCH v7 1/6] Link Bonding Library (lib/librte_pmd_bond)

2014-06-24 Thread Declan Doherty
Initial release with support for Mode 0 - Round Robin Mode 1 - Active Backup Mode 2 - Balance -> Supports 3 transmit polices (layer 2, layer 2+3, layer 3+4) Mode 3 - Broadcast Signed-off-by: Declan Doherty --- config/common_bsdapp |5 + config/common_linuxapp |

[dpdk-dev] [PATCH v7 0/6] Link Bonding Library

2014-06-24 Thread Declan Doherty
This patch contains the initial release of the Link Bonding PMD Library Supporting bonding modes: 0 - Round Robin 1 - Active Backup 2 - Balance (Supporting 3 transmission polices) layer 2, layer 2+3, layer 3+4 3 - Broadcast Version 6 of patch set: Debug tracing formatting issue in rte

[dpdk-dev] [PATCH] mempool: don't leak ring on failure

2014-06-24 Thread Ananyev, Konstantin
Hi Stephen, > > If mempool can not be created because of insufficient memory > it returns an error but has already created a ring (and leaves it > behind). This prevents code from trying one mempool size and then > retrying with a smaller size if the bigger size fails. > > Reordering to do ring

[dpdk-dev] [RFC PATCH DRAFT 1/2] ethdev: add buffered single pkt TX function to API

2014-06-24 Thread Stephen Hemminger
On Tue, 24 Jun 2014 23:32:15 +0100 Bruce Richardson wrote: > Many sample apps include internal buffering for single-packet-at-a-time > operation. Since this is such a common paradigm, this functionality is > better suited to being inside the core ethdev API. > The new APIs include three functions

[dpdk-dev] [RFC PATCH DRAFT 1/2] ethdev: add buffered single pkt TX function to API

2014-06-24 Thread Stephen Hemminger
On Tue, 24 Jun 2014 23:32:15 +0100 Bruce Richardson wrote: > > +static void > +free_unsent_pkts(struct rte_mbuf **pkts, uint16_t unsent, > + void *userdata __rte_unused) > +{ > + unsigned i; > + for (i = 0; i < unsent; i++) > + rte_pktmbuf_free(pkts[i]); > +} > +

[dpdk-dev] [PATCH v6 6/6] Link Bonding Library doxygen additions

2014-06-24 Thread Declan Doherty
Signed-off-by: Declan Doherty --- doc/doxy-api-index.md |1 + doc/doxy-api.conf |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/doc/doxy-api-index.md b/doc/doxy-api-index.md index 7b26e98..ee3ad4f 100644 --- a/doc/doxy-api-index.md +++ b/doc/doxy-api-index.md @@

[dpdk-dev] [PATCH v6 5/6] testpmd link bonding additions

2014-06-24 Thread Declan Doherty
- Includes the ability to create new bonded devices. - Add /remove bonding slave devices. - Interogate bonded device stats/configuration - Change bonding modes and select balance transmit polices Signed-off-by: Declan Doherty --- app/test-pmd/cmdline.c| 579 +

[dpdk-dev] [PATCH v6 4/6] Link bonding Unit Tests

2014-06-24 Thread Declan Doherty
Including: - code to generate packet bursts for testing rx and tx functionality of bonded device - virtual/stubbed out ethdev for use as slave ethdev in testing Signed-off-by: Declan Doherty --- app/test/Makefile |4 +- app/test/commands.c |7 + app/tes

[dpdk-dev] [PATCH v6 3/6] EAL support for link bonding device initialization

2014-06-24 Thread Declan Doherty
Updating functionality in EAL to support adding link bonding devices via ?vdev option. Link bonding devices will be initialized after all physical devices have been probed and initialized. Signed-off-by: Declan Doherty --- lib/librte_eal/bsdapp/eal/eal.c | 10 - lib/librte_eal/

[dpdk-dev] [PATCH v6 2/6] Support for unique interface naming of pmds

2014-06-24 Thread Declan Doherty
Adding support to rte_eth_dev_data structure to support unique name identifier for ethdevs to support adding slave ethdevs (specifically virtual devices which have no public unique identifier) to a link bonding device. This changes the API rte_eth_dev_allocate() to require a const char *name when a

[dpdk-dev] [PATCH v6 1/6] Link Bonding Library (lib/librte_pmd_bond)

2014-06-24 Thread Declan Doherty
Initial release with support for Mode 0 - Round Robin Mode 1 - Active Backup Mode 2 - Balance -> Supports 3 transmit polices (layer 2, layer 2+3, layer 3+4) Mode 3 - Broadcast Signed-off-by: Declan Doherty --- config/common_bsdapp |5 + config/common_linuxapp |

[dpdk-dev] [PATCH v6 0/6] Link Bonding Library

2014-06-24 Thread Declan Doherty
This patch contains the initial release of the Link Bonding PMD Library Supporting bonding modes: 0 - Round Robin 1 - Active Backup 2 - Balance (Supporting 3 transmission polices) layer 2, layer 2+3, layer 3+4 3 - Broadcast Version 6 of patch set: Small fix for tx burst function in ro

[dpdk-dev] [PATCH] ixgbe: Alternative fix for 82599 Bypass NIC, getting incorrect media type

2014-06-24 Thread Pablo de Lara
From: Pablo de Lara This was previosly solved in commit 60a70d4e042350ca0f9200334b341063438be89b, but this alternative fix solves the same issue, but without modifying the ixgbe shared code. Signed-off-by: Pablo de Lara --- lib/librte_pmd_ixgbe/ixgbe/ixgbe_82599.c |3 -- lib/librte_pmd_ix

[dpdk-dev] [PATCH] ixgbe: Alternative fix for 82599 Bypass NIC, getting incorrect media type

2014-06-24 Thread Zhang, Helin
-Original Message- From: Ananyev, Konstantin Sent: Tuesday, June 24, 2014 11:31 PM To: Zhang, Helin; De Lara Guarch, Pablo Cc: dev at dpdk.org Subject: RE: [dpdk-dev] [PATCH] ixgbe: Alternative fix for 82599 Bypass NIC, getting incorrect media type Hi Helin, > -Original Message---

[dpdk-dev] [PATCH] i40e: prefer base driver naming

2014-06-24 Thread Zhang, Helin
-Original Message- From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] Sent: Tuesday, June 24, 2014 4:57 PM To: dev at dpdk.org Cc: Zhang, Helin Subject: [PATCH] i40e: prefer base driver naming The PMD is built on top of the base driver which is provided by Intel and shouldn't be

[dpdk-dev] [PATCH] ixgbe: Alternative fix for 82599 Bypass NIC, getting incorrect media type

2014-06-24 Thread Ananyev, Konstantin
Hi Helin, > -Original Message- > From: Zhang, Helin > Sent: Tuesday, June 24, 2014 4:23 PM > To: Ananyev, Konstantin; De Lara Guarch, Pablo > Cc: dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH] ixgbe: Alternative fix for 82599 Bypass NIC, > getting incorrect media type > > -Origina

[dpdk-dev] [PATCH] i40e: fix shared code compile warning

2014-06-24 Thread Zhang, Helin
-Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ananyev, Konstantin Sent: Tuesday, June 24, 2014 10:44 PM To: Thomas Monjalon; Chen, Jing D Cc: dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH] i40e: fix shared code compile warning Hi Thomas, > -Original Messag

[dpdk-dev] [PATCH] ixgbe: Alternative fix for 82599 Bypass NIC, getting incorrect media type

2014-06-24 Thread Zhang, Helin
-Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ananyev, Konstantin Sent: Tuesday, June 24, 2014 10:47 PM To: De Lara Guarch, Pablo; dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH] ixgbe: Alternative fix for 82599 Bypass NIC, getting incorrect media type > This wa

[dpdk-dev] [PATCH 3/3] app/testpmd: allow to set part of flow control parameters

2014-06-24 Thread David Marchand
We might want to only change a parameter rather than have to set all possible parameters, so add "partial" commands. These commands only change the specified parameter. To avoid duplicating code all around, a unique parser is kept. This parser uses the .data parameter to select the right behavior.

[dpdk-dev] [PATCH 2/3] app/testpmd: move parser after flow_ctrl declarations

2014-06-24 Thread David Marchand
Prepare for next commit. Signed-off-by: David Marchand --- app/test-pmd/cmdline.c | 74 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 3d2a91a..8b85d4d 100644 --- a/app/test-

[dpdk-dev] [PATCH 1/3] app/testpmd: add missing autoneg field to set flow_ctrl

2014-06-24 Thread David Marchand
Following commit 2d95b84aaacb3d2d0bd70367c0530d15e0cbb14e, rte_eth_fc_conf struct contains a autoneg field that must be set by callers. Add this parameter to testpmd. Signed-off-by: David Marchand --- app/test-pmd/cmdline.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-)

[dpdk-dev] [PATCH 0/3] fix flow control in testpmd

2014-06-24 Thread David Marchand
Here is a patchset that addresses the problem reported by Jijiang Liu and introduces "partial" commands for setting flow control parameters in testpmd. By the way, I tried to factorise the code in testpmd when handling flow control "commands" so that we have only one parser even if multiple comman

[dpdk-dev] [PATCH v3 0/2] malloc: fix malloc and free linear complexity

2014-06-24 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Robert Sanford > Sent: Monday, June 23, 2014 10:17 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 0/2] malloc: fix malloc and free linear > complexity > > Comments on previous versions of this patch: >

[dpdk-dev] [PATCH] ixgbe: Alternative fix for 82599 Bypass NIC, getting incorrect media type

2014-06-24 Thread Ananyev, Konstantin
> This was previosly solved in commit 60a70d4e042350ca0f9200334b341063438be89b, > but this alternative fix solves the same issue, but without modifying > the ixgbe shared code. > > Signed-off-by: Pablo de Lara > --- > lib/librte_pmd_ixgbe/ixgbe/ixgbe_82599.c |3 -- > lib/librte_pmd_ixgbe/i

[dpdk-dev] [PATCH] i40e: fix shared code compile warning

2014-06-24 Thread Ananyev, Konstantin
Hi Thomas, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon > Sent: Tuesday, June 24, 2014 11:06 AM > To: Chen, Jing D > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] i40e: fix shared code compile warning > > 2014-06-24 09:47, Chen, Ji

[dpdk-dev] [PATCH] i40e: fix shared code compile warning

2014-06-24 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Fix a compile warning in shared code on 32-bits RHEL6.3/6.5. Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_i40e/Makefile |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/librte_pmd_i40e/Makefile b/lib/librte_pmd_i40e/Makefile index 09

[dpdk-dev] [PATCH v3 0/7] enhancements for i40e

2014-06-24 Thread Thomas Monjalon
2014-06-24 10:02, Helin Zhang: > These patches are enhancements for i40e or relevant. In detail, they > include: * fix for getting correct RSS hash result. > * remove an interface which is not used. > * fix for copying wrong size of link info. > * fix for updating the hash lookup table of PF RSS

[dpdk-dev] Random mbuf corruption

2014-06-24 Thread Olivier MATZ
Hi, On 06/24/2014 12:48 PM, Neil Horman wrote: > Sounds like it might be time to add in some poisoning options to the mbuf > allocator. Such option already exists: CONFIG_RTE_LIBRTE_MBUF_DEBUG and RTE_LIBRTE_MEMPOOL_DEBUG will enable some runtime checks, at least double free and buffer overflows.

[dpdk-dev] Fwd: CPU does not support x86-64 instruction set

2014-06-24 Thread Alex Markuze
On Tue, Jun 24, 2014 at 11:21 AM, Thomas Monjalon wrote: > Welcome Alex. > Please, for future messages, try to answer below as explained here: > http://dpdk.org/ml > > 2014-06-24 11:12, Alex Markuze: > > Thomas Monjalon wrote: > > > 2014-06-23 15:42, Alex Markuze: > > > > Hi, I'm new to

[dpdk-dev] [PATCH] i40e: fix shared code compile warning

2014-06-24 Thread Thomas Monjalon
2014-06-24 09:47, Chen, Jing D: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2014-06-24 13:22, Chen Jing D: > > > +CFLAGS_i40e_lan_hmc.o += -Wno-error > > > > I know we shouldn't modify base drivers. But this one seems to be an > > important error. In such case, we already mo

[dpdk-dev] [PATCH 1/2] mk: overriding CC also overrides HOSTCC

2014-06-24 Thread Thomas Monjalon
Hi Bruce, 2014-06-24 01:23, Bruce Richardson: > when overriding the CC variable on the commandline, the HOSTCC value > was remaining at "gcc", which caused errors on Free BSD10 when using a gcc > as e.g. gcc48, without a binary just called "gcc". This change overrides > HOSTCC when CC is overridde

[dpdk-dev] Why rte_snprintf at all?

2014-06-24 Thread Thomas Monjalon
2014-06-23 22:53, Richardson, Bruce: > As for the #define, it's a quick fix, except that we end up having to keep > it forever as the code using the function will never get changed to use > rte_snprintf. Given it's just a one-line macro, it's probably not a big > deal in this case, but I'd rather s

[dpdk-dev] [PATCH 1/2 v2] string: deprecate rte_snprintf

2014-06-24 Thread Stephen Hemminger
The function rte_snprintf serves no useful purpose. It is the same as snprintf() for all valid inputs. Deprecate it and replace all uses in current code. Leave the tests for the deprecated function in place. Signed-off-by: Stephen Hemminger --- v2 -- don't remove rte_snprintf, deprecate instead

[dpdk-dev] [PATCH 1/2 v2] fix incorrect snprintf args

2014-06-24 Thread Stephen Hemminger
Now that snprintf is used, Gcc finds more uses of unsafe arguments. Fix where found. Some of these may have already been fixed by other patches on the mailing list. Signed-off-by: Stephen Hemminger --- v2 - no changes to this part --- a/lib/librte_kni/rte_kni.c 2014-06-24 08:48:55.758031238 -

[dpdk-dev] Fwd: CPU does not support x86-64 instruction set

2014-06-24 Thread Alex Markuze
Thomas Thanks for your reply, I've resolved the issue in a similar way by modifying the VM xml config file with this line CONFIG_RTE_MACHINE="x86-64"' But it didn't seem to matter (I didn't explore this much farther, I dint really try a clean build and didn't make sure that the .config file I've m

[dpdk-dev] [PATCH] i40e: prefer base driver naming

2014-06-24 Thread Thomas Monjalon
The PMD is built on top of the base driver which is provided by Intel and shouldn't be modified to allow easy batch upgrade from Intel. The base driver is a "shared code" between many projects. But in DPDK, the "base driver" naming makes more sense. Signed-off-by: Thomas Monjalon --- lib/librte

[dpdk-dev] [PATCH 1/3] stringfns: remove rte_snprintf

2014-06-24 Thread Stephen Hemminger
On Tue, 24 Jun 2014 17:39:52 + "Richardson, Bruce" wrote: > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Stephen Hemminger > > Sent: Tuesday, June 24, 2014 9:03 AM > > To: dev at dpdk.org > > Subject: [dpdk-dev] [PATCH 1/3] stringfns: remove rte_snp

[dpdk-dev] [PATCH] i40e: fix shared code compile warning

2014-06-24 Thread Thomas Monjalon
Hi, 2014-06-24 13:22, Chen Jing D: > Fix a compile warning in shared code on 32-bits RHEL6.3/6.5. > > Signed-off-by: Chen Jing D(Mark) In such case you should show the error message in the log. lib/librte_pmd_i40e/i40e/i40e_lan_hmc.c:917: error: integer constant is too large for

[dpdk-dev] [PATCH] mempool: don't leak ring on failure

2014-06-24 Thread Stephen Hemminger
On Tue, 24 Jun 2014 16:16:02 + "Ananyev, Konstantin" wrote: > But now, memzone created for the actual mempool could get leaked instead? Since memzone's can't be destroyed, then only solution would be if checked if memzone with same name already exists.

[dpdk-dev] Fwd: CPU does not support x86-64 instruction set

2014-06-24 Thread Thomas Monjalon
Welcome Alex. Please, for future messages, try to answer below as explained here: http://dpdk.org/ml 2014-06-24 11:12, Alex Markuze: > Thomas Monjalon wrote: > > 2014-06-23 15:42, Alex Markuze: > > > Hi, I'm new to DPDK and Im trying to compile on a x86 Ubuntu 14.04 > > VM(KVM). > > > And

[dpdk-dev] [PATCH v3 7/7] app/testpmd: rework for displaying different size of RX descriptors

2014-06-24 Thread Helin Zhang
i40e supports 16 and 32 bytes RX descriptors which can be configured. It needs to check the driver type and the configuration to determine if 16 or 32 bytes RX descriptors is being used, for reading and displaying the different sizes of RX descriptors. Signed-off-by: Helin Zhang Acked-by: Jing Ch

[dpdk-dev] [PATCH v3 6/7] i40e: ignore the failure of updating default macvlan filter

2014-06-24 Thread Helin Zhang
For NVM4.2.2 or after, the firmware has the correct configurations and load the macvlan filter as expected. It is not needed to Update the default macvlan filter which cannot be removed at all during initialization. Signed-off-by: Helin Zhang Acked-by: Jing Chen Acked-by: Cunming Liang --- lib

[dpdk-dev] [PATCH v3 5/7] i40e: double vlan should be specifically disabled by default

2014-06-24 Thread Helin Zhang
Double vlan should be specifically disabled by default during port initialization which is expected. Signed-off-by: Helin Zhang Acked-by: Jing Chen Acked-by: Cunming Liang --- lib/librte_pmd_i40e/i40e_ethdev.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/librte_pmd_i40e/i40e_eth

[dpdk-dev] [PATCH v3 4/7] i40e: fix for updating the hash lookup table of PF RSS

2014-06-24 Thread Helin Zhang
The bit shifting were written wrongly in '0x1 < j', the correct one should be '0x1 << j'. Signed-off-by: Helin Zhang Acked-by: Jing Chen Acked-by: Cunming Liang --- lib/librte_pmd_i40e/i40e_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_i40e/i40e_et

[dpdk-dev] [PATCH v3 3/7] i40evf: fix for copying wrong size of link info

2014-06-24 Thread Helin Zhang
Fix a bug of copying wrong size of link information in the function of i40evf_get_link_status(). Signed-off-by: Helin Zhang Acked-by: Jing Chen Acked-by: Cunming Liang --- lib/librte_pmd_i40e/i40e_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_i4

[dpdk-dev] [PATCH v3 2/7] i40evf: remove an interface which is not used

2014-06-24 Thread Helin Zhang
i40evf_dev_atomic_read_link_status() was defined but not used. To avoid possible warnings by some compilers, it needs to delete the whole function. Signed-off-by: Helin Zhang Acked-by: Jing Chen Acked-by: Cunming Liang --- lib/librte_pmd_i40e/i40e_ethdev_vf.c | 14 -- 1 file change

[dpdk-dev] [PATCH v3 1/7] i40e: fix for getting correct RSS hash result

2014-06-24 Thread Helin Zhang
It wrongly gets the RSS hash result from the RX descriptor which has been modified for receiving new packet. The fix is to get the RSS hash result from the buffer which saves the RX descriptor. Signed-off-by: Helin Zhang Acked-by: Jing Chen Acked-by: Cunming Liang --- lib/librte_pmd_i40e/i40e_

[dpdk-dev] [PATCH v3 0/7] enhancements for i40e

2014-06-24 Thread Helin Zhang
These patches are enhancements for i40e or relevant. In detail, they include: * fix for getting correct RSS hash result. * remove an interface which is not used. * fix for copying wrong size of link info. * fix for updating the hash lookup table of PF RSS. * double vlan should be specifically

[dpdk-dev] [PATCH] i40e: fix shared code compile warning

2014-06-24 Thread Chen, Jing D
Hi Thomas, -Original Message- From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] Sent: Tuesday, June 24, 2014 4:47 PM To: Chen, Jing D Cc: dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH] i40e: fix shared code compile warning Hi, 2014-06-24 13:22, Chen Jing D: > Fix a compile warn

[dpdk-dev] [PATCH 3/3] fix incorrect snprintf usage

2014-06-24 Thread Stephen Hemminger
Now that snprintf is used, Gcc finds more uses of unsafe arguments. Fix where found. These may have already been fixed by other patches on the mailing list. Signed-off-by: Stephen Hemminger --- a/lib/librte_kni/rte_kni.c 2014-06-24 08:48:55.758031238 -0700 +++ b/lib/librte_kni/rte_kni.c 2014-

[dpdk-dev] [PATCH 2/3] test: remove no longer valid tests

2014-06-24 Thread Stephen Hemminger
Since GCC catches calling snprintf() with NULL argument at compile time (which is even better). These string function tests are unnecessary and no longer compile. Signed-off-by: Stephen Hemminger --- a/app/test/test_string_fns.c2014-06-24 08:48:52.558007950 -0700 +++ b/app/test/test_stri

[dpdk-dev] [PATCH 1/3] stringfns: remove rte_snprintf

2014-06-24 Thread Stephen Hemminger
The function rte_snprintf serves no useful purpose. It is the same as snprintf() for all valid inputs. Just remove it and replace all uses in current code. Signed-off-by: Stephen Hemminger --- a/app/test-pipeline/init.c 2014-06-20 13:23:17.462947732 -0700 +++ b/app/test-pipeline/init.c 2014-0

[dpdk-dev] [PATCH] mempool: don't leak ring on failure

2014-06-24 Thread Stephen Hemminger
If mempool can not be created because of insufficient memory it returns an error but has already created a ring (and leaves it behind). This prevents code from trying one mempool size and then retrying with a smaller size if the bigger size fails. Reordering to do ring creation after getting memo

[dpdk-dev] Random mbuf corruption

2014-06-24 Thread Gray, Mark D
> > Paul, > > Thanks for the advice; we ran memtest as well as the Dell complete system > diagnostic and neither found an issue. The plot thickens, though! > > Our admins messed up our kickstart labels and what I *thought* was CentOS > 6.4 was actually RHEL 6.4 and the problem seems to be follow

[dpdk-dev] Random mbuf corruption

2014-06-24 Thread Neil Horman
On Mon, Jun 23, 2014 at 05:43:21PM -0400, Stefan Baranoff wrote: > Paul, > > Thanks for the advice; we ran memtest as well as the Dell complete system > diagnostic and neither found an issue. The plot thickens, though! > > Our admins messed up our kickstart labels and what I *thought* was CentOS

[dpdk-dev] [PATCH 2/2] bsdapp: disable ACL library compilation

2014-06-24 Thread Bruce Richardson
Using gcc 4.8 on FreeBSD 10, support for SSE4.x is not detected by the compiler, meaning that the ACL library, which depends on SSE4.2 cannot compile. Disable this library for the native target allows compiles to succeed on FreeBSD 10 using gcc. Signed-off-by: Bruce Richardson --- config/defconf

[dpdk-dev] [PATCH 1/2] mk: overriding CC also overrides HOSTCC

2014-06-24 Thread Bruce Richardson
when overriding the CC variable on the commandline, the HOSTCC value was remaining at "gcc", which caused errors on Free BSD10 when using a gcc as e.g. gcc48, without a binary just called "gcc". This change overrides HOSTCC when CC is overridden, which means that setting CC=gcc48, will now also set

[dpdk-dev] [PATCH 0/2] minor compile fixes for FreeBSD 10

2014-06-24 Thread Bruce Richardson
These two small patches fix minor compilation issues found when testing compilation on a FreeBSD 10 system. Bruce Richardson (2): mk: overriding CC also overrides HOSTCC bsdapp: disable ACL library compilation config/defconfig_x86_64-native-bsdapp-gcc | 5 + mk/toolchain/gcc/rte.vars.m