[dpdk-dev] Running 32bit secondary with 64bit primary DPDK process

2014-12-05 Thread Vijayakumar Muthuvel Manickam
Hi, I have a patch that enables 32bit secondary DPDK processes to attach with 64bit primary DPDK process and share the mempool and ring datastructures. I developed this patch to enable our product(from Brocade) which uses a 32bit userspace network stack to be able to work with PMDs like ivshmem an

[dpdk-dev] [RFC PATCH] ixgbe: ixgbe_recv_pkts_vec shouldn't override mbuf buffer length

2014-12-05 Thread Thomas Monjalon
2014-12-05 19:03, Jean-Mickael Guerin: > On 05/12/2014 18:07, Ananyev, Konstantin wrote: > > From: Jean-Mickael Guerin [mailto:jean-mickael.guerin at 6wind.com] > >> On 05/12/2014 16:20, Konstantin Ananyev wrote: > >>> That's an alternative way to fix the problem described in the patch: > >>> http:

[dpdk-dev] [PATCH 1/2] ixgbe: fix setup of mbuf initializer template

2014-12-05 Thread Thomas Monjalon
> > Add a compiler barrier to make sure all fields covered by > > the marker rearm_data are assigned before the read. > > > > Signed-off-by: Jean-Mickael Guerin > > Acked-by: David Marchand > > Fixes: 0ff3324da2 ("ixgbe: rework vector pmd following mbuf changes") > > Acked-by: Bruce Richardson

[dpdk-dev] [PATCH] librte_pmd_af_packet: add compile-time checks for kernel-specific options

2014-12-05 Thread Thomas Monjalon
2014-12-05 17:37, Thomas Monjalon: > 2014-12-05 11:24, John W. Linville: > > On Fri, Dec 05, 2014 at 10:30:53AM +0100, Thomas Monjalon wrote: > > > Hi John, > > > > > > 2014-12-04 16:42, John W. Linville: > > > > This allows the PMD to compile with kernels that don't support the > > > > options in

[dpdk-dev] [PATCH 0/2] enic fixes for clang compilation

2014-12-05 Thread Thomas Monjalon
> Compiling latest DPDK with clang 3.3 on FreeBSD 10 shows up a number of > compilation > errors in the enic driver. These two small patches fix those errors. > > Bruce Richardson (2): > enic: fix initialization error with clang > enic: fix error with uninitialized variable. Acked and applie

[dpdk-dev] Accessing Virtual Function Device on Guest Machine using VFIO

2014-12-05 Thread Thomas Monjalon
Hi, Please don't reply to a previous email to start a different topic. You can check how it looks here: http://thread.gmane.org/gmane.comp.networking.dpdk.devel > "DISCLAIMER: This message is proprietary to Aricent and is intended solely > for the use of the individual to whom it is addr

[dpdk-dev] [RFC PATCH] ixgbe: ixgbe_recv_pkts_vec shouldn't override mbuf buffer length

2014-12-05 Thread Jean-Mickael Guerin
On 05/12/2014 18:07, Ananyev, Konstantin wrote: > > >> -Original Message- >> From: Jean-Mickael Guerin [mailto:jean-mickael.guerin at 6wind.com] >> Sent: Friday, December 05, 2014 4:59 PM >> To: Ananyev, Konstantin >> Cc: dev at dpdk.org >> Subject: Re: [dpdk-dev] [RFC PATCH] ixgbe: ixgbe_r

[dpdk-dev] [RFC PATCH] ixgbe: ixgbe_recv_pkts_vec shouldn't override mbuf buffer length

2014-12-05 Thread Thomas Monjalon
Konstantin, It would be easier if you sent a v2 of the patchset from Jean-Mickael. So, the first patch would be included with your rework of the second patch. Please use --in-reply-to to make tracking from emails or archives easier. Thanks -- Thomas

[dpdk-dev] [RFC PATCH] ixgbe: ixgbe_recv_pkts_vec shouldn't override mbuf buffer length

2014-12-05 Thread Jean-Mickael Guerin
On 05/12/2014 16:20, Konstantin Ananyev wrote: > That's an alternative way to fix the problem described in the patch: > http://dpdk.org/ml/archives/dev/2014-December/009394.html. > The main difference is: > - move buf_len fields out of rearm_data marker. > - make ixgbe_recv_pkts_vec() not touch buf

[dpdk-dev] [PATCH] librte_pmd_af_packet: add compile-time checks for kernel-specific options

2014-12-05 Thread Thomas Monjalon
2014-12-05 11:24, John W. Linville: > On Fri, Dec 05, 2014 at 10:30:53AM +0100, Thomas Monjalon wrote: > > Hi John, > > > > 2014-12-04 16:42, John W. Linville: > > > This allows the PMD to compile with kernels that don't support the > > > options in question. The "#if defined(...)" lines are a bi

[dpdk-dev] [PATCH] bond: fix for mac assignment to slaves device

2014-12-05 Thread Declan Doherty
Adding call to mac_address_slaves_update from the lsc handler when the first slave become active to propagate any mac changes made while devices are inactive Changed removing slave logic to use memmove instead of memcpy to move data within the same array, as this was corrupting the slave array. A

[dpdk-dev] Accessing Virtual Function Device on Guest Machine using VFIO

2014-12-05 Thread Aashima Arora
Hi, I was trying to access the pci config space(BAR) of the virtual function device visible in the virtual machine, similar to what DPDK does on host via both UIO and VFIO. Did the following steps. 1. Bound PF Drivers to ixgbe and spawned virtual function drivers , bound them to vfio-pci and se

[dpdk-dev] [PULL REQUEST] doc: modifications to user guides

2014-12-05 Thread Thomas Monjalon
> These changes are DPDK 1.8 modifications and some corrections to the > Linux Getting Started Guide, the FreeBSD Getting Started Guide, > the Programmers Guide, the Sample Application User Guide, > the TestPMD Application User Guide and the Release Notes. > > The following changes since commit b6

[dpdk-dev] [PATCH] examples: fix symmetric_mp, set NIC rx_drop_en bit

2014-12-05 Thread Thomas Monjalon
2014-12-03 16:56, Bruce Richardson: > The symmetric_mp example app is set up to allow two processes to > share a NIC port, with each pulling packets from one queue. In order > to have the app continue working when one of the process dies, the > drop_en bit should be set in the NIC configuration. Wi

[dpdk-dev] [PATCH] table: fix table_array for incomplete bitmask

2014-12-05 Thread Thomas Monjalon
> When a lookup was done on a table_array structure with an incomplete > bitmask, the results was always zero hits. This was because the > pkts_mask value was cleared as we process each entry, and the result > was assigned at the end of the loop, when pkts_mask was zero. > Changing the assignment t

[dpdk-dev] [PATCH]i40e: move the fdir_setup from dev_init to dev_configure

2014-12-05 Thread Thomas Monjalon
> > In order not to affect the FVL's performance by default setting, this patch > > moves > > the flow director initialization from i40e_pf_setup to i40e_dev_configure > > according to the mode in fdir configure info. > > Then the resources used for flow director will be only setup if it is > > e

[dpdk-dev] [PATCH] Fix KNI compiling issue on IBM Power

2014-12-05 Thread Chao Zhu
On 2014/12/5 4:05, Neil Horman wrote: > On Thu, Dec 04, 2014 at 04:59:59PM +0100, Thomas Monjalon wrote: >> 2014-12-04 10:32, Neil Horman: >>> On Thu, Dec 04, 2014 at 02:47:03PM +0100, Thomas Monjalon wrote: 2014-12-04 08:29, Neil Horman: > On Thu, Dec 04, 2014 at 12:59:31PM +0100, Thomas

[dpdk-dev] [RFC PATCH] ixgbe: ixgbe_recv_pkts_vec shouldn't override mbuf buffer length

2014-12-05 Thread Ananyev, Konstantin
> -Original Message- > From: Jean-Mickael Guerin [mailto:jean-mickael.guerin at 6wind.com] > Sent: Friday, December 05, 2014 4:59 PM > To: Ananyev, Konstantin > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [RFC PATCH] ixgbe: ixgbe_recv_pkts_vec shouldn't > override mbuf buffer length >

[dpdk-dev] [PATCH v5 0/3] i40e VXLAN TX checksum rework

2014-12-05 Thread Thomas Monjalon
> > We have got some feedback about backward compatibility of VXLAN TX checksum > > offload API with 1G/10G NIC after the i40e VXLAN > > TX checksum codes were applied, so we have to rework the APIs on i40e, > > including the changes of mbuf, i40e PMD and csum forward > > engine. > > > > The mai

[dpdk-dev] [PATCH 0/2] fix endianness in EAL

2014-12-05 Thread Thomas Monjalon
> > It can be hard to implement a reliable detection of endianness. > > Previous trials in testpmd failed. > > The IBM Power patchset introduced a config option. > > > > This patchset try to improve the situation by having a detection > > in EAL headers. > > > > Please test it (especially on IBM Po

[dpdk-dev] [PATCH v3] librte_cmdline: FreeBSD Fix oveflow when size of command result structure is greater than BUFSIZ

2014-12-05 Thread Thomas Monjalon
> > When using test-pmd with flow director in FreeBSD, the application will > > segfault/Bus error while parsing the command-line. This is due to how > > each commands result structure is represented during parsing, where the > > offsets > > for each tokens value is stored in a character array(cha

[dpdk-dev] [PATCH v3] Fix two compile issues with i686 platform

2014-12-05 Thread Chao Zhu
On 2014/12/4 17:12, Michael Qiu wrote: > lib/librte_eal/linuxapp/eal/eal_memory.c:324:4: error: comparison > is always false due to limited range of data type [-Werror=type-limits] > || (hugepage_sz == RTE_PGSIZE_16G)) { > ^ > cc1: all warnings being treated as errors > > lib/librte_eal/

[dpdk-dev] [PATCH] doc: typos corrected in distributor application

2014-12-05 Thread Reshma Pattan
corrected couple of typos in distributor application Signed-off-by: Reshma Pattan --- doc/guides/sample_app_ug/dist_app.rst |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guides/sample_app_ug/dist_app.rst b/doc/guides/sample_app_ug/dist_app.rst index 76e3924..57

[dpdk-dev] [PATCH] app/test: fix memory needs after RTE_MAX_LCORE was increased to 128

2014-12-05 Thread De Lara Guarch, Pablo
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, December 04, 2014 1:21 PM > To: De Lara Guarch, Pablo > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] app/test: fix memory needs after > RTE_MAX_LCORE was increased to 128 > > > S

[dpdk-dev] [PATCH 2/2] enic: fix error with uninitialized variable.

2014-12-05 Thread Bruce Richardson
The variable notify_pa is only initialized inside one branch of an if statement, triggering a compiler error with clang 3.3 on FreeBSD. CC vnic/vnic_dev.o /usr/home/bruce/dpdk.org/lib/librte_pmd_enic/vnic/vnic_dev.c:777:6: fatal error: variable 'notify_pa' is used uninitialized whenever '

[dpdk-dev] [PATCH 1/2] enic: fix initialization error with clang

2014-12-05 Thread Bruce Richardson
This patch fixes the following compiler error raised by clang 3.3 on FreeBSD 10: CC enic_clsf.o /usr/home/bruce/dpdk.org/lib/librte_pmd_enic/enic_clsf.c:99:25: fatal error: missing field 'u' initializer [-Wmissing-field-initializers] struct filter fltr = {0}; It fixes it by changing th

[dpdk-dev] [PATCH 0/2] enic fixes for clang compilation

2014-12-05 Thread Bruce Richardson
Compiling latest DPDK with clang 3.3 on FreeBSD 10 shows up a number of compilation errors in the enic driver. These two small patches fix those errors. Bruce Richardson (2): enic: fix initialization error with clang enic: fix error with uninitialized variable. lib/librte_pmd_enic/enic_clsf

[dpdk-dev] [PATCH] Fix KNI compiling issue on IBM Power

2014-12-05 Thread Thomas Monjalon
2014-12-05 09:42, Neil Horman: > On Fri, Dec 05, 2014 at 02:10:27PM +0100, Thomas Monjalon wrote: > > 2014-12-04 15:05, Neil Horman: > > > On Thu, Dec 04, 2014 at 04:59:59PM +0100, Thomas Monjalon wrote: > > > > I'm convinced we need to work on the build system but it's another > > > > discussion

[dpdk-dev] [PATCH v3] librte_cmdline: FreeBSD Fix oveflow when size of command result structure is greater than BUFSIZ

2014-12-05 Thread Bruce Richardson
On Fri, Dec 05, 2014 at 03:19:07PM +0100, Olivier Matz wrote: > From: Alan Carew > > When using test-pmd with flow director in FreeBSD, the application will > segfault/Bus error while parsing the command-line. This is due to how > each commands result structure is represented during parsing, wher

[dpdk-dev] [PATCH v2] ixgbe: don't override mbuf buffer length

2014-12-05 Thread Ananyev, Konstantin
> -Original Message- > From: Richardson, Bruce > Sent: Friday, December 05, 2014 12:11 PM > To: Ananyev, Konstantin > Cc: Jean-Mickael Guerin; dev at dpdk.org > Subject: Re: [PATCH v2] ixgbe: don't override mbuf buffer length > > On Fri, Dec 05, 2014 at 11:59:50AM +, Ananyev, Konstan

[dpdk-dev] [RFC PATCH] ixgbe: ixgbe_recv_pkts_vec shouldn't override mbuf buffer length

2014-12-05 Thread Konstantin Ananyev
That's an alternative way to fix the problem described in the patch: http://dpdk.org/ml/archives/dev/2014-December/009394.html. The main difference is: - move buf_len fields out of rearm_data marker. - make ixgbe_recv_pkts_vec() not touch buf_len field at all (as all other RX functions behave). Si

[dpdk-dev] [PATCH v3] librte_cmdline: FreeBSD Fix oveflow when size of command result structure is greater than BUFSIZ

2014-12-05 Thread Olivier Matz
From: Alan Carew When using test-pmd with flow director in FreeBSD, the application will segfault/Bus error while parsing the command-line. This is due to how each commands result structure is represented during parsing, where the offsets for each tokens value is stored in a character array(char

[dpdk-dev] [PATCH v2] librte_cmdline: FreeBSD Fix oveflow when size of command result structure is greater than BUFSIZ

2014-12-05 Thread Olivier MATZ
Hi Alan, On 11/10/2014 10:19 AM, Alan Carew wrote: > When using test-pmd with flow director in FreeBSD, the application will > segfault/Bus error while parsing the command-line. This is due to how > each commands result structure is represented during parsing, where the > offsets > for each tokens

[dpdk-dev] [PATCH v3] Fix two compile issues with i686 platform

2014-12-05 Thread Chao Zhu
Michael, I'm looking at it. I'll give you feedback soon. On 2014/12/5 14:56, Qiu, Michael wrote: > Hi Chao > > Would you please take a look at this patch? > > It's solved issue introduce by Power Arch support patch. > > Your comments are very precious :) > > Thanks, > Michael > On 12/5/2014 2:03

[dpdk-dev] [PATCH v3] Fix two compile issues with i686 platform

2014-12-05 Thread Bruce Richardson
On Fri, Dec 05, 2014 at 09:22:05AM -0500, Neil Horman wrote: > On Fri, Dec 05, 2014 at 04:31:47PM +0800, Chao Zhu wrote: > > > > On 2014/12/4 17:12, Michael Qiu wrote: > > >lib/librte_eal/linuxapp/eal/eal_memory.c:324:4: error: comparison > > >is always false due to limited range of data type [-We

[dpdk-dev] rte_pmd_init_all() with DPDK 1.7.0

2014-12-05 Thread Neil Horman
On Fri, Dec 05, 2014 at 11:30:41AM -0800, Malveeka Tewari wrote: > Hi all > > I have a very basic DPDK app that runs in two modes: sender and sniffer. > > In the sender mode, the app just reads data from a shared memory buffer and > sends packets out on a port using rte_eth_tx_burst. > In the sni

[dpdk-dev] [PATCH] Fix KNI compiling issue on IBM Power

2014-12-05 Thread Thomas Monjalon
2014-12-04 15:05, Neil Horman: > On Thu, Dec 04, 2014 at 04:59:59PM +0100, Thomas Monjalon wrote: > > 2014-12-04 10:32, Neil Horman: > > > On Thu, Dec 04, 2014 at 02:47:03PM +0100, Thomas Monjalon wrote: > > > > 2014-12-04 08:29, Neil Horman: > > > > > On Thu, Dec 04, 2014 at 12:59:31PM +0100, Thom

[dpdk-dev] How to send traffic b/w host KNI interface and external server???

2014-12-05 Thread Venkateswara Rao Dokku
Hi, Two machines are connected back-to-back. On one machine we ran the DPDK & bound the Ethernet port to the DPDK (back-to-back connected port). We loaded the igb_uio and KNI modules and ran the KNI app with the following command. *kni -c 0xff -n 4 -- -p 0x1 -P --config="(0,

[dpdk-dev] [PATCH v2] ixgbe: fix multi-process support

2014-12-05 Thread Bruce Richardson
When using multiple processes, the TX function used in all processes should be the same, otherwise the secondary processes cannot transmit more than tx-ring-size - 1 packets. To achieve this, we extract out the code to select the ixgbe TX function to be used into a separate function inside the ixgb

[dpdk-dev] Accessing Virtual Function Device on Guest Machine using VFIO

2014-12-05 Thread Neil Horman
On Fri, Dec 05, 2014 at 07:08:55PM +0100, Thomas Monjalon wrote: > Hi, > > Please don't reply to a previous email to start a different topic. > You can check how it looks here: > http://thread.gmane.org/gmane.comp.networking.dpdk.devel > > > "DISCLAIMER: This message is proprietary to Arice

[dpdk-dev] [PATCH v5 3/3] mbuf:replace the inner_l2_len and the inner_l3_len fields

2014-12-05 Thread Olivier MATZ
Hi, On 12/02/2014 04:06 PM, Jijiang Liu wrote: > Replace the inner_l2_len and the inner_l3_len field with the outer_l2_len and > outer_l3_len field, and rework csum forward engine and i40e PMD due to these > changes. > > Signed-off-by: Jijiang Liu > --- > app/test-pmd/csumonly.c |

[dpdk-dev] [PATCH v5 2/3] mbuf:add three TX ol_flags and repalce PKT_TX_VXLAN_CKSUM

2014-12-05 Thread Olivier MATZ
Hi, On 12/02/2014 04:06 PM, Jijiang Liu wrote: > Replace PKT_TX_VXLAN_CKSUM with PKT_TX_UDP_TUNNEL_PKT in order to indicate a > packet is an UDP tunneling packet, and introduce 3 TX offload flags for outer > IP TX checksum, which are PKT_TX_OUTER_IP_CKSUM, PKT_TX_OUTER_IPV4 and > PKT_TX_OUTER_I

[dpdk-dev] [PATCH v2] ixgbe: don't override mbuf buffer length

2014-12-05 Thread Bruce Richardson
On Fri, Dec 05, 2014 at 11:59:50AM +, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: Richardson, Bruce > > Sent: Friday, December 05, 2014 11:29 AM > > To: Ananyev, Konstantin > > Cc: Jean-Mickael Guerin; dev at dpdk.org > > Subject: Re: [PATCH v2] ixgbe: don't overri

[dpdk-dev] [PATCH v2] ixgbe: don't override mbuf buffer length

2014-12-05 Thread Ananyev, Konstantin
> -Original Message- > From: Richardson, Bruce > Sent: Friday, December 05, 2014 11:29 AM > To: Ananyev, Konstantin > Cc: Jean-Mickael Guerin; dev at dpdk.org > Subject: Re: [PATCH v2] ixgbe: don't override mbuf buffer length > > On Fri, Dec 05, 2014 at 11:19:11AM +, Ananyev, Konstan

[dpdk-dev] rte_pmd_init_all() with DPDK 1.7.0

2014-12-05 Thread Malveeka Tewari
Hi all I have a very basic DPDK app that runs in two modes: sender and sniffer. In the sender mode, the app just reads data from a shared memory buffer and sends packets out on a port using rte_eth_tx_burst. In the sniffer mode, the app polls for incoming packets on a port using rte_eth_rx_burst

[dpdk-dev] [PATCH v2] ixgbe: don't override mbuf buffer length

2014-12-05 Thread Bruce Richardson
On Fri, Dec 05, 2014 at 11:19:11AM +, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: Richardson, Bruce > > Sent: Friday, December 05, 2014 10:39 AM > > To: Ananyev, Konstantin > > Cc: Jean-Mickael Guerin; dev at dpdk.org > > Subject: Re: [PATCH v2] ixgbe: don't overri

[dpdk-dev] [PATCH] librte_pmd_af_packet: add compile-time checks for kernel-specific options

2014-12-05 Thread John W. Linville
On Fri, Dec 05, 2014 at 10:30:53AM +0100, Thomas Monjalon wrote: > Hi John, > > 2014-12-04 16:42, John W. Linville: > > This allows the PMD to compile with kernels that don't support the > > options in question. The "#if defined(...)" lines are a bit ugly, > > but I don't know of any better way t

[dpdk-dev] [PATCH v2] ixgbe: don't override mbuf buffer length

2014-12-05 Thread Ananyev, Konstantin
> -Original Message- > From: Richardson, Bruce > Sent: Friday, December 05, 2014 10:39 AM > To: Ananyev, Konstantin > Cc: Jean-Mickael Guerin; dev at dpdk.org > Subject: Re: [PATCH v2] ixgbe: don't override mbuf buffer length > > On Fri, Dec 05, 2014 at 01:10:28AM +, Ananyev, Konstan

[dpdk-dev] [PATCH 0/2] examples/vhost: support new VMDQ api and new nic i40e in vhost example

2014-12-05 Thread Fu, JingguoX
As we validate dpdk 1.8.0 rc2 from org, we report defect: Work_Request IXA00388707 The defect is about vhost virtio based 4 x 10 G NIC, and vhost-switch cannot startup, all cases for one copy on Fortville cannot validate. This defect can be fixed by this patches. Below are details for validatio

[dpdk-dev] [PATCH v2 2/2] mbuf: assign valid bit values for some RX and TX flags

2014-12-05 Thread Ananyev, Konstantin
Hi Helin, > -Original Message- > From: Zhang, Helin > Sent: Friday, December 05, 2014 1:46 AM > To: dev at dpdk.org > Cc: Cao, Waterman; Cao, Min; Wu, Jingjing; Liu, Jijiang; Ananyev, Konstantin; > olivier.matz at 6wind.com; Zhang, Helin > Subject: [PATCH v2 2/2] mbuf: assign valid bit va

[dpdk-dev] [PATCH v2] ixgbe: don't override mbuf buffer length

2014-12-05 Thread Bruce Richardson
On Thu, Dec 04, 2014 at 07:09:13PM +0100, Jean-Mickael Guerin wrote: > The template mbuf_initializer is hard coded with a buflen which > might have been set differently by the application at the time of > mbuf pool creation. > > Switch to a mbuf allocation, to fetch the correct default values. > T

[dpdk-dev] [PATCH v2] ixgbe: don't override mbuf buffer length

2014-12-05 Thread Bruce Richardson
On Fri, Dec 05, 2014 at 01:10:28AM +, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: Jean-Mickael Guerin [mailto:jean-mickael.guerin at 6wind.com] > > Sent: Thursday, December 04, 2014 6:09 PM > > To: dev at dpdk.org > > Cc: Richardson, Bruce; Ananyev, Konstantin > >

[dpdk-dev] [PATCH] librte_pmd_af_packet: add compile-time checks for kernel-specific options

2014-12-05 Thread Thomas Monjalon
Hi John, 2014-12-04 16:42, John W. Linville: > This allows the PMD to compile with kernels that don't support the > options in question. The "#if defined(...)" lines are a bit ugly, > but I don't know of any better way to accomplish the task. > > Signed-off-by: John W. Linville > --- > lib/lib

[dpdk-dev] [PATCH v3] test-pmd: Fix pointer aliasing error

2014-12-05 Thread Thomas Monjalon
2014-12-05 05:34, Qiu, Michael: > Any comments about this version? a new workaround solution :) Yes, one comment: I think it's ugly :) These aliasing errors are not reliable so I think we can disable it (like Linux does). But in case you don't want to disable the warning, please add a comment to y

[dpdk-dev] [PATCH v3] Fix two compile issues with i686 platform

2014-12-05 Thread Neil Horman
On Fri, Dec 05, 2014 at 03:02:33PM +, Bruce Richardson wrote: > On Fri, Dec 05, 2014 at 09:22:05AM -0500, Neil Horman wrote: > > On Fri, Dec 05, 2014 at 04:31:47PM +0800, Chao Zhu wrote: > > > > > > On 2014/12/4 17:12, Michael Qiu wrote: > > > >lib/librte_eal/linuxapp/eal/eal_memory.c:324:4: e

[dpdk-dev] [PATCH] i40e: Fix a vlan bug

2014-12-05 Thread Thomas Monjalon
Hi Huawei, 2014-12-05 04:56, Xie, Huawei: > Hi Thomas: > I will continue work on this fix. > Do you have comments to the v4 patch? > For Bruce's comment, I add some descriptive commit message for the commit. > For the constant number, I define a macro as the wrapper for the VFA array > index and

[dpdk-dev] [PATCH v2] VFIO: Avoid to enable vfio while the module not loaded

2014-12-05 Thread Burakov, Anatoly
Hi Michael, Few nitpicks :-) (wording of the log message I guess is up to Thomas, I won't comment on that) > lib/librte_eal/common/eal_private.h| 36 > ++ > lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 24 +--- > 2 files changed, 57 insertions

[dpdk-dev] [PATCH v2 2/2] mbuf: assign valid bit values for some RX and TX flags

2014-12-05 Thread Helin Zhang
Before redefining mbuf structure, there was lack of free bits in 'ol_flags' (32 bits in total) for new RX or TX flags. So it tried to reuse existant bits as most as possible, or even assigning 0 to some of bit flags. After new mbuf structure defined, there are quite a lot of free bits. So those new

[dpdk-dev] [PATCH v2 1/2] i40e: remove checking rxd flag which is not public

2014-12-05 Thread Helin Zhang
According to the latest datasheet, RX descriptor error flag of 'RECIPE' is not for public use, so its checks should be removed. Signed-off-by: Helin Zhang --- lib/librte_pmd_i40e/i40e_rxtx.c | 6 -- 1 file changed, 6 deletions(-) v2 changes: * Removed error flag of 'ECIPE' processing only i

[dpdk-dev] [PATCH v2 0/2] fix of enabling all newly added error flags

2014-12-05 Thread Helin Zhang
Before redefining mbuf structure, there was lack of free bits in 'ol_flags' (32 bits in total) for new RX or TX flags. So it tried to reuse existant bits as most as possible, or even assigning 0 to some of bit flags. After new mbuf structure defined, there are quite a lot of free bits. So those new

[dpdk-dev] [PATCH] Fix KNI compiling issue on IBM Power

2014-12-05 Thread Neil Horman
On Fri, Dec 05, 2014 at 02:10:27PM +0100, Thomas Monjalon wrote: > 2014-12-04 15:05, Neil Horman: > > On Thu, Dec 04, 2014 at 04:59:59PM +0100, Thomas Monjalon wrote: > > > 2014-12-04 10:32, Neil Horman: > > > > On Thu, Dec 04, 2014 at 02:47:03PM +0100, Thomas Monjalon wrote: > > > > > 2014-12-04 0

[dpdk-dev] [PATCH v3] Fix two compile issues with i686 platform

2014-12-05 Thread Neil Horman
On Fri, Dec 05, 2014 at 04:31:47PM +0800, Chao Zhu wrote: > > On 2014/12/4 17:12, Michael Qiu wrote: > >lib/librte_eal/linuxapp/eal/eal_memory.c:324:4: error: comparison > >is always false due to limited range of data type [-Werror=type-limits] > > || (hugepage_sz == RTE_PGSIZE_16G)) { > >

[dpdk-dev] [PATCH] ixgbe: fix multi-process support

2014-12-05 Thread Qiu, Michael
On 12/4/2014 7:49 PM, Bruce Richardson wrote: > When using multiple processes, the TX function used in all processes > should be the same, otherwise the secondary processes cannot transmit > more than tx-ring-size - 1 packets. > To achieve this, we extract out the code to select the ixgbe TX functi

[dpdk-dev] [PATCH] i40e: Fix a vlan bug

2014-12-05 Thread Chen, Jing D
Hi, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, December 4, 2014 11:33 PM > To: Chen, Jing D > Cc: dev at dpdk.org; Qiu, Michael > Subject: Re: [dpdk-dev] [PATCH] i40e: Fix a vlan bug > > 2014-12-04 14:29, Chen, Jing D: > > From: Th

[dpdk-dev] [PATCH v3] Fix two compile issues with i686 platform

2014-12-05 Thread Qiu, Michael
Hi Chao Would you please take a look at this patch? It's solved issue introduce by Power Arch support patch. Your comments are very precious :) Thanks, Michael On 12/5/2014 2:03 PM, Michael Qiu wrote: > lib/librte_eal/linuxapp/eal/eal_memory.c:324:4: error: comparison > is always false due to l

[dpdk-dev] [PATCH v3] test-pmd: Fix pointer aliasing error

2014-12-05 Thread Qiu, Michael
Any comments about this version? a new workaround solution :) Thanks, Michael On 12/4/2014 9:35 PM, Michael Qiu wrote: > app/test-pmd/csumonly.c: In function ?get_psd_sum?: > build/include/rte_ip.h:161: error: dereferencing pointer ?u16? > does break strict-aliasing rules > build/include/r

[dpdk-dev] [PATCH] i40e: Fix a vlan bug

2014-12-05 Thread Xie, Huawei
Hi Thomas: I will continue work on this fix. Do you have comments to the v4 patch? For Bruce's comment, I add some descriptive commit message for the commit. For the constant number, I define a macro as the wrapper for the VFA array index and value. One question is it isn't based on latest commit

[dpdk-dev] [PATCH v5 2/3] mbuf:add three TX ol_flags and repalce PKT_TX_VXLAN_CKSUM

2014-12-05 Thread Liu, Jijiang
> -Original Message- > From: Ananyev, Konstantin > Sent: Friday, December 5, 2014 6:56 AM > To: Olivier MATZ; Thomas Monjalon > Cc: dev at dpdk.org; Liu, Jijiang > Subject: RE: [dpdk-dev] [PATCH v5 2/3] mbuf:add three TX ol_flags and repalce > PKT_TX_VXLAN_CKSUM > > > > > -Original

[dpdk-dev] [PATCH] VFIO: Avoid to enable vfio while the module not loaded

2014-12-05 Thread Qiu, Michael
On 12/5/2014 12:31 AM, Burakov, Anatoly wrote: > Hi Michael > >> But indeed, when try to unload both vfio and vfio_iommu_type1, >> /dev/vfio/vfio still there, I'm also surprise. >> >> My ENV is fedora20, kernel version 3.6.7-200 X86_64. >> >> Believe or not, you can have a try, it seems a kernel is

[dpdk-dev] [PATCH v5 2/3] mbuf:add three TX ol_flags and repalce PKT_TX_VXLAN_CKSUM

2014-12-05 Thread Zhang, Helin
> -Original Message- > From: Ananyev, Konstantin > Sent: Thursday, December 4, 2014 6:20 PM > To: Zhang, Helin; Olivier MATZ; Liu, Jijiang; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH v5 2/3] mbuf:add three TX ol_flags and repalce > PKT_TX_VXLAN_CKSUM > > Hi Helin, > > > -Origi

[dpdk-dev] [PATCH v2] ixgbe: don't override mbuf buffer length

2014-12-05 Thread Ananyev, Konstantin
> -Original Message- > From: Jean-Mickael Guerin [mailto:jean-mickael.guerin at 6wind.com] > Sent: Thursday, December 04, 2014 6:09 PM > To: dev at dpdk.org > Cc: Richardson, Bruce; Ananyev, Konstantin > Subject: [PATCH v2] ixgbe: don't override mbuf buffer length > > The template mbuf_i

[dpdk-dev] [PATCH]i40e: move the fdir_setup from dev_init to dev_configure

2014-12-05 Thread Zhang, Helin
> -Original Message- > From: Wu, Jingjing > Sent: Thursday, December 4, 2014 11:40 PM > To: dev at dpdk.org > Cc: Wu, Jingjing; Zhang, Helin; Ananyev, Konstantin > Subject: [PATCH]i40e: move the fdir_setup from dev_init to dev_configure > > In order not to affect the FVL's performance by