[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] ixgbe: fix vector PMD chained mbuf receive

2015-02-06 Thread Bruce Richardson
for" loop fixes this problem, by ensuring the increment is always performed. Reported-by: Prashant Upadhyaya Reported-by: Martin Weiser Signed-off-by: Bruce Richardson Tested-by: Martin Weiser --- lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(

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

2015-02-06 Thread Bruce Richardson
(with overlaps) +M: Bruce Richardson F: lib/librte_eal/bsdapp/Makefile F: lib/librte_eal/bsdapp/eal/ F: doc/guides/freebsd_gsg/ FreeBSD contigmem +M: Bruce Richardson F: lib/librte_eal/bsdapp/contigmem/ FreeBSD UIO +M: Bruce Richardson F: lib/librte_eal/bsdapp/nic_uio/ @@ -234,6 +237,7 @@ F

[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 > ---

[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: doc/guides/prog_guide

[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] 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 --g

[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: doc/guides/sample_app_ug

[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] [PATCH v2 01/15] mbuf: add definitions of unified packet types

2015-02-09 Thread Bruce Richardson
On Mon, Feb 09, 2015 at 02:40:35PM +0800, Helin Zhang wrote: > As there are only 6 bit flags in ol_flags for indicating packet types, > which is not enough to describe all the possible packet types hardware > can recognize. For example, i40e hardware can recognize more than 150 > packet types.

[dpdk-dev] mbuf: how to set data to NULL?

2015-02-09 Thread Bruce Richardson
On Mon, Feb 09, 2015 at 10:51:36AM +, Kavanagh, Mark B wrote: > Hi Bruce, > > As a follow-on to my previous question: I suppose what I'm really getting at > is trying to understand the implications of removing the data pointer, and > determine if it's possible to replicate behavior observed

[dpdk-dev] [PATCH 0/3] Enable uio_pci_generic support

2015-02-09 Thread Bruce Richardson
s/dpdk_nic_bind.py | 2 +- > 6 files changed, 172 insertions(+), 113 deletions(-) > > -- > 1.8.1.4 > Series Acked-by: Bruce Richardson

[dpdk-dev] [PATCH v2 01/15] mbuf: add definitions of unified packet types

2015-02-10 Thread Bruce Richardson
On Tue, Feb 10, 2015 at 12:53:52AM +, Zhang, Helin wrote: > Hi Bruce > > Fortunately I have Steve as the author of a sub-patch for vector PMD in this > patch set. That means we have already taken into account the VPMD in it. > All is workable with vPMD, and with performance result mentioned.

[dpdk-dev] [PATCH v4] test: fix missing NULL pointer checks

2015-02-10 Thread Bruce Richardson
On Fri, Jan 30, 2015 at 12:14:53PM +0100, Daniel Mrzyglod wrote: > In test_sched, we are missing NULL pointer checks after create_mempool() > and rte_pktmbuf_alloc(). Add in these checks using TEST_ASSERT_NOT_NULL > macros. > > VERIFY macro was removed and replaced by standard test ASSERTS from >

[dpdk-dev] [PATCH v3] test: fix missing NULL pointer checks

2015-02-10 Thread Bruce Richardson
On Fri, Jan 30, 2015 at 11:18:19AM +0100, Thomas Monjalon wrote: > 2015-01-27 13:06, Neil Horman: > > On Tue, Jan 27, 2015 at 04:44:53PM +0100, Daniel Mrzyglod wrote: > > > In test_sched, we are missing NULL pointer checks after create_mempool() > > > and rte_pktmbuf_alloc(). Add in these checks

[dpdk-dev] [PATCH] Adding RTE_KNI_PREEMPT configuration option

2015-02-10 Thread Bruce Richardson
On Tue, Feb 10, 2015 at 12:59:29PM +0100, Marc Sune wrote: > This patch of Nov 2014 hasn't been yet ACKed/NACKed. Could someone please > give some quick feedback? > > Thanks > marc > Idea is good, any chance it could be added as a run-time rather than compile-time option? /Bruce > On 07/11/14

[dpdk-dev] [PATCH] Adding RTE_KNI_PREEMPT configuration option

2015-02-10 Thread Bruce Richardson
On Tue, Feb 10, 2015 at 01:21:55PM +0100, Marc Sune wrote: > > On 10/02/15 13:02, Bruce Richardson wrote: > >On Tue, Feb 10, 2015 at 12:59:29PM +0100, Marc Sune wrote: > >>This patch of Nov 2014 hasn't been yet ACKed/NACKed. Could someone please > >>give some q

[dpdk-dev] [PATCH] Adding RTE_KNI_PREEMPT configuration option

2015-02-11 Thread Bruce Richardson
KNI kernel thread(s) do not call schedule_timeout_interruptible(), > >>>>which improves overall KNI performance at the expense of CPU cycles > >>(polling). > >>>>Default values is 'yes', maintaining the same behaviour as of now. > >>>> > >>

[dpdk-dev] [PATCH] librte_lpm: use field access instead of type conversion.

2015-02-12 Thread Bruce Richardson
On Wed, Feb 11, 2015 at 02:12:59PM +0800, xuelin.shi at freescale.com wrote: > From: Xuelin Shi > > struct tbl_entry{ > uint8_t next_hop; > uint8_t valid :1; > uint8_t valid_group :1; > uint8_t depth :6 > } > uint16_t tbl = (uint16_t)tbl_entry; > next_hop =

[dpdk-dev] [PATCH] Make -Werror optional

2015-02-12 Thread Bruce Richardson
On Thu, Feb 12, 2015 at 01:13:22PM +0200, Panu Matilainen wrote: > This adds new CONFIG_RTE_ERROR_ON_WARNING config option to enable > fail-on-warning compile behavior, defaulting to off. > > Failing build on warnings is a useful developer tool but its bad > for release tarballs which can and do

[dpdk-dev] [PATCH] Make -Werror optional

2015-02-12 Thread Bruce Richardson
On Thu, Feb 12, 2015 at 02:02:19PM +0200, Panu Matilainen wrote: > On 02/12/2015 01:25 PM, Bruce Richardson wrote: > >On Thu, Feb 12, 2015 at 01:13:22PM +0200, Panu Matilainen wrote: > >>This adds new CONFIG_RTE_ERROR_ON_WARNING config option to enable > >>fail-

[dpdk-dev] [PATCH v5 18/19] ring: add sched_yield to avoid spin forever

2015-02-12 Thread Bruce Richardson
On Thu, Feb 12, 2015 at 01:08:43PM +, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: Liang, Cunming > > Sent: Thursday, February 12, 2015 1:05 PM > > To: Olivier MATZ; dev at dpdk.org > > Cc: Ananyev, Konstantin > > Subject: RE: [PATCH v5 18/19] ring: add sched_yield

[dpdk-dev] [PATCH] Make -Werror optional

2015-02-12 Thread Bruce Richardson
On Thu, Feb 12, 2015 at 03:58:07PM +0200, Panu Matilainen wrote: > On 02/12/2015 02:08 PM, Bruce Richardson wrote: > >On Thu, Feb 12, 2015 at 02:02:19PM +0200, Panu Matilainen wrote: > >>On 02/12/2015 01:25 PM, Bruce Richardson wrote: > >>>On Thu, Feb 12, 2015 at 01:

[dpdk-dev] [PATCH] Minor C++11 compilation fix for rte_pci.h

2015-02-13 Thread Bruce Richardson
On Fri, Feb 13, 2015 at 08:25:38AM +, Mcnamara, John wrote: > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Stefan Puiu > > Sent: Wednesday, February 11, 2015 8:51 AM > > To: dev at dpdk.org > > Subject: [dpdk-dev] [PATCH] Minor C++11 compilation fix

[dpdk-dev] [PATCH v2 2/4] ethdev: Add in data rxtx callback support

2015-02-13 Thread Bruce Richardson
before being handed > > to the NIC for transmission. > > > > Signed-off-by: Bruce Richardson > [...] > > @@ -2390,7 +2445,17 @@ rte_eth_rx_burst(uint8_t port_id, uint16_t queue_id, > > struct rte_eth_dev *dev; > > > > dev = _eth_devices[por

[dpdk-dev] [PATCH 3/6] bsd: remove useless assignments

2015-02-16 Thread Bruce Richardson
On Sat, Feb 14, 2015 at 09:59:07AM -0500, Stephen Hemminger wrote: > If variable is set in the next line, it doesn't need to be > initialized. > > Signed-off-by: Stephen Hemminger > --- > lib/librte_eal/bsdapp/eal/eal.c | 3 ++- > lib/librte_eal/bsdapp/eal/eal_pci.c | 2 +- > 2 files

[dpdk-dev] [PATCH v2 3/4] examples: example showing use of callbacks.

2015-02-16 Thread Bruce Richardson
he timestamp is used to calculate > > the packet latency through the app, in cycles. > > > > Signed-off-by: Bruce Richardson > > > I'm looking at the example and I don't understand what is the advantage > of having callbacks in ethdev layer, knowing that the applicati

[dpdk-dev] Lcore-vports-queues mapping

2015-02-17 Thread Bruce Richardson
On Tue, Feb 17, 2015 at 09:08:07AM +, kuldeep.samasi at wipro.com wrote: > Hi Team , > > I am using DPDK-1.7.1 , I am trying find out how to map lcore -- >vports -- > > queuesin code level as well as user command prompt level . > Suggestions are welcome on this . > > Hi, cores and ports

[dpdk-dev] Lcore-vports-queues mapping

2015-02-17 Thread Bruce Richardson
primarily a set of libraries, and contains some apps purely as examples or for testing. /Bruce > > > Regards > Kuldeep > > -----Original Message- > From: Bruce Richardson [mailto:bruce.richardson at intel.com] > Sent: Tuesday, February 17, 2015 3:44 PM > To: Kuldeep S

[dpdk-dev] [PATCH v2 3/4] examples: example showing use of callbacks.

2015-02-17 Thread Bruce Richardson
On Mon, Feb 16, 2015 at 06:34:37PM +0100, Thomas Monjalon wrote: > 2015-02-16 15:16, Bruce Richardson: > > On Mon, Feb 16, 2015 at 03:33:40PM +0100, Olivier MATZ wrote: > > > Hi John, > > > > > > On 02/13/2015 04:39 PM, John McNamara wr

[dpdk-dev] [PATCH v2 3/4] examples: example showing use of callbacks.

2015-02-17 Thread Bruce Richardson
On Tue, Feb 17, 2015 at 02:28:02PM +0100, Olivier MATZ wrote: > Hi Bruce, > > On 02/17/2015 01:25 PM, Bruce Richardson wrote: > >On Mon, Feb 16, 2015 at 06:34:37PM +0100, Thomas Monjalon wrote: > >>2015-02-16 15:16, Bruce Richardson: > >>>In this specific insta

[dpdk-dev] [PATCH v2 3/4] examples: example showing use of callbacks.

2015-02-17 Thread Bruce Richardson
On Tue, Feb 17, 2015 at 04:32:01PM +0100, Thomas Monjalon wrote: > 2015-02-17 12:25, Bruce Richardson: > > On Mon, Feb 16, 2015 at 06:34:37PM +0100, Thomas Monjalon wrote: > > > 2015-02-16 15:16, Bruce Richardson: > > > > On Mon, Feb 16, 2015 at 03:33:40PM +0100, Ol

[dpdk-dev] [PATCH v2 3/4] examples: example showing use of callbacks.

2015-02-17 Thread Bruce Richardson
On Tue, Feb 17, 2015 at 10:49:24AM -0500, Neil Horman wrote: > On Tue, Feb 17, 2015 at 01:50:58PM +0000, Bruce Richardson wrote: > > On Tue, Feb 17, 2015 at 02:28:02PM +0100, Olivier MATZ wrote: > > > Hi Bruce, > > > > > > On 02/17/2015 01:25 PM, Bruce Ric

[dpdk-dev] [PATCH v2 3/4] examples: example showing use of callbacks.

2015-02-17 Thread Bruce Richardson
On Tue, Feb 17, 2015 at 11:08:10AM -0500, Neil Horman wrote: > On Tue, Feb 17, 2015 at 04:00:56PM +0000, Bruce Richardson wrote: > > On Tue, Feb 17, 2015 at 10:49:24AM -0500, Neil Horman wrote: > > > On Tue, Feb 17, 2015 at 01:50:58PM +, Bruce Richardson wrote: > >

[dpdk-dev] testpmd app issues

2015-02-17 Thread Bruce Richardson
On Tue, Feb 17, 2015 at 09:31:33AM -0700, Jeff Wang wrote: > Hi, > > I'm new to DPDK. > > I have gone through the user guide, set up environment, hugepages. I can > get the helloworld app work. Now, when I tried to play with the testpmd > app, I got the following issue: > > [root at localhost

[dpdk-dev] [PATCH 2/2] Remove RTE_MBUF_REFCNT references

2015-02-18 Thread Bruce Richardson
On Wed, Feb 18, 2015 at 10:16:56AM +0100, Olivier MATZ wrote: > Hi Sergio, > > On 02/16/2015 05:08 PM, Sergio Gonzalez Monroy wrote: > >This patch removes all references to RTE_MBUF_REFCNT, setting the refcnt > >field in the mbuf struct permanently. > > > >Signed-off-by: Sergio Gonzalez Monroy >

[dpdk-dev] [PATCH 2/2] Remove RTE_MBUF_REFCNT references

2015-02-18 Thread Bruce Richardson
On Wed, Feb 18, 2015 at 09:48:58AM +, Ananyev, Konstantin wrote: > Hi lads, > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > > Sent: Wednesday, February 18, 2015 9:36 AM > > To: Olivier MATZ > >

[dpdk-dev] [PATCH v8 03/14] eal/pci, ethdev: Remove assumption that port will not be detached

2015-02-18 Thread Bruce Richardson
On Wed, Feb 18, 2015 at 10:57:25AM +0100, Thomas Monjalon wrote: > 2015-02-18 15:10, Tetsuya Mukawa: > > On 2015/02/18 10:54, Tetsuya Mukawa wrote: > > > On 2015/02/18 9:31, Thomas Monjalon wrote: > > >> 2015-02-17 15:14, Tetsuya Mukawa: > > >>> On 2015/02/17 9:36, Thomas Monjalon wrote: > >

[dpdk-dev] [PATCH 2/2] Remove RTE_MBUF_REFCNT references

2015-02-18 Thread Bruce Richardson
On Wed, Feb 18, 2015 at 11:14:42AM +0100, Olivier MATZ wrote: > On 02/18/2015 11:00 AM, Bruce Richardson wrote: > >On Wed, Feb 18, 2015 at 09:48:58AM +, Ananyev, Konstantin wrote: > >>Hi lads, > >> > >>>-Original Message- > >>>F

[dpdk-dev] [PATCH 2/2] Remove RTE_MBUF_REFCNT references

2015-02-18 Thread Bruce Richardson
On Wed, Feb 18, 2015 at 11:33:48AM +0100, Olivier MATZ wrote: > Hi, > > On 02/18/2015 11:22 AM, Bruce Richardson wrote: > >On Wed, Feb 18, 2015 at 11:14:42AM +0100, Olivier MATZ wrote: > >>On 02/18/2015 11:00 AM, Bruce Richardson wrote: > >>>On Wed, Feb 1

[dpdk-dev] [PATCH v8 03/14] eal/pci, ethdev: Remove assumption that port will not be detached

2015-02-18 Thread Bruce Richardson
On Wed, Feb 18, 2015 at 07:58:06PM +0900, Tetsuya Mukawa wrote: > On 2015/02/18 19:03, Bruce Richardson wrote: > > On Wed, Feb 18, 2015 at 10:57:25AM +0100, Thomas Monjalon wrote: > >> 2015-02-18 15:10, Tetsuya Mukawa: > >>> On 2015/02/18 10:54, Tetsuya Mukawa wr

[dpdk-dev] [RFC PATCH] lib/librte_ethdev: Expand port identifier

2015-02-18 Thread Bruce Richardson
On Wed, Feb 18, 2015 at 08:02:49PM +0900, Tetsuya Mukawa wrote: > Currently uint8_t is used for port identifier. This patch changes it, > and use uint16_t as port identifier. > This patch only changes ethdev library. ABI of the library will be > kept even after applying it. > > Also, this patch

[dpdk-dev] [RFC PATCH] lib/librte_ethdev: Expand port identifier

2015-02-18 Thread Bruce Richardson
On Wed, Feb 18, 2015 at 12:30:07PM +, Bruce Richardson wrote: > On Wed, Feb 18, 2015 at 08:02:49PM +0900, Tetsuya Mukawa wrote: > > Currently uint8_t is used for port identifier. This patch changes it, > > and use uint16_t as port identifier. > > This patch only change

[dpdk-dev] [RFC PATCH] lib/librte_ethdev: Expand port identifier

2015-02-18 Thread Bruce Richardson
On Wed, Feb 18, 2015 at 02:10:48PM +0100, Marc Sune wrote: > > On 18/02/15 13:31, Bruce Richardson wrote: > >On Wed, Feb 18, 2015 at 12:30:07PM +, Bruce Richardson wrote: > >>On Wed, Feb 18, 2015 at 08:02:49PM +0900, Tetsuya Mukawa wrote: > >>>Currently ui

[dpdk-dev] [RFC PATCH] lib/librte_ethdev: Expand port identifier

2015-02-18 Thread Bruce Richardson
On Wed, Feb 18, 2015 at 01:05:10PM +, Wodkowski, PawelX wrote: > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > > Sent: Wednesday, February 18, 2015 1:32 PM > > To: Tetsuya Mukawa > > Cc: dev at dpdk.

[dpdk-dev] [PATCH 1/6] test: remove unneeded casts

2015-02-19 Thread Bruce Richardson
On Sat, Feb 14, 2015 at 09:59:05AM -0500, Stephen Hemminger wrote: > The malloc family returns void * and therefore cast is unnecessary. > Use calloc rather than zmalloc with multiply for array. > > Signed-off-by: Stephen Hemminger Looks like a good basic cleanup Acked-by: Bruc

[dpdk-dev] [PATCH 2/6] vhost_xen: remove unnecessary cast

2015-02-19 Thread Bruce Richardson
On Sat, Feb 14, 2015 at 09:59:06AM -0500, Stephen Hemminger wrote: > Don't need to cast malloc family of functions since they return > void *. > > Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson > --- > examples/vhost_xen/vhost_monitor.c | 2 +- >

[dpdk-dev] [PATCH 4/6] enic: eliminate useless cast

2015-02-19 Thread Bruce Richardson
On Sat, Feb 14, 2015 at 09:59:08AM -0500, Stephen Hemminger wrote: > Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson > --- > lib/librte_pmd_enic/enic_clsf.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/lib/librte_pmd_enic

[dpdk-dev] [PATCH 5/6] eal: remove useless memset

2015-02-19 Thread Bruce Richardson
On Sat, Feb 14, 2015 at 09:59:09AM -0500, Stephen Hemminger wrote: > The path variable is set via snprintf, and does not need to > memset before that. > > Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson > --- > lib/librte_eal/linuxapp/eal/eal_hugepage_info.

[dpdk-dev] [PATCH 6/6] examples: remove unneeded casts

2015-02-19 Thread Bruce Richardson
On Sat, Feb 14, 2015 at 09:59:10AM -0500, Stephen Hemminger wrote: > *alloc() routines return void * and therefore cast is not needed. > > Signed-off-by: Stephen Hemminger > --- > examples/kni/main.c | 4 ++-- > examples/l3fwd-acl/main.c | 4 ++-- > examples/vhost/main.c | 7 --- >

[dpdk-dev] [PATCH v6 0/7] rte_hash_crc reworked to be platform-independent

2015-02-19 Thread Bruce Richardson
back especially. The existing hash tests, test the hash table implementation rather than the mathematical argorithm used to compute the hash values. Overall, though, software fallback for CRC is something well worthwhile having. Series Acked-by: Bruce Richardson > -- > Sincerely, > > Yerden Zhumabekov > State Technical Service > Astana, KZ > >

[dpdk-dev] [PATCH v4 2/3] ethdev: add optional rxtx callback support

2015-02-20 Thread Bruce Richardson
llback function, if > configured, to allow additional processing to be done on them, e.g. > filling in more mbuf fields, before passing back to the application. > On TX, the packets are similarly post-processed before being handed > to the NIC for transmission. > > Signed-off-b

[dpdk-dev] [PATCH v2 1/3] eal: enable uio_pci_generic support

2015-02-20 Thread Bruce Richardson
On Fri, Feb 20, 2015 at 10:01:10AM +0100, Thomas Monjalon wrote: > Hi Danny, > > 2015-02-20 01:08, Zhou Danny: > > @@ -148,6 +151,7 @@ struct rte_pci_device { > > struct rte_pci_id id; /**< PCI ID. */ > > struct rte_pci_resource mem_resource[PCI_MAX_RESOURCE]; /**< PCI

[dpdk-dev] [PATCH v3 0/3] enable uio_pci_generic support

2015-02-20 Thread Bruce Richardson
v3 changes - made processing of uio devices identical, irrespective of igb_uio or uio_pci_generic - removed storage of kernel driver name from dev node as now unneeded. v2 changes: - Change variable name of kernel driver with precise comment - Fix a union definition error in v1 patchset - Move

[dpdk-dev] [PATCH v3 3/3] tools: enable binding NIC device to uio_pci_generic

2015-02-20 Thread Bruce Richardson
From: Zhou Danny <danny.z...@intel.com> Add uio_pci_generic to the list of supported kernel drivers. Signed-off-by: Danny Zhou Tested-by: Qun Wan Signed-off-by: Bruce Richardson --- tools/dpdk_nic_bind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[dpdk-dev] [PATCH v3 2/3] eal: add interrupt enable/disable routines for uio_pci_generic

2015-02-20 Thread Bruce Richardson
From: Zhou Danny <danny.z...@intel.com> enable/disable interrupt by manipulating a control bit of command register on NIC's PCIe configuration space. Signed-off-by: Danny Zhou Tested-by: Qun Wan Signed-off-by: Bruce Richardson --- lib/librte_eal/linuxapp/eal/eal_interrupts.

[dpdk-dev] [PATCH v3 1/3] eal: enable uio_pci_generic support

2015-02-20 Thread Bruce Richardson
files in /sys rather than /dev/uio* 2) Setup bus master bit in NIC's PCIe configuration space for uio_pci_generic. Signed-off-by: Danny Zhou Signed-off-by: Bruce Richardson --- v3 changes: - Remove the requirement for the kernel_driver_name to be stored for each device - Ensure greater commo

[dpdk-dev] [PATCH] lpm: fix overflow issue

2015-02-22 Thread Bruce Richardson
On Fri, Feb 20, 2015 at 04:16:46PM +0300, Igor Ryzhov wrote: > LPM table overflow may occur if table is full and added rule has the biggest > depth that already have some rules. > > Signed-off-by: Igor Ryzhov Acked-by: Bruce Richardson > --- > lib/librte_lpm/rte_lpm.c

[dpdk-dev] Testpmd returns error.

2015-02-22 Thread Bruce Richardson
On Sun, Feb 22, 2015 at 06:51:58PM +, Richardson, Bruce wrote: > > > > > On 22 Feb 2015, at 16:19, David Marchand 6wind.com> wrote: > > Hello, > > On Sun, Feb 22, 2015 at 3:17 PM, Thomas Monjalon 6wind.com> wrote:

[dpdk-dev] Testpmd returns error.

2015-02-22 Thread Bruce Richardson
On Sun, Feb 22, 2015 at 02:30:02PM +0900, Tetsuya Mukawa wrote: > Hi, > > In my environment, testpmd in latest master branch returns error like below. > > $ sudo ./tools/dpdk_nic_bind.py -b igb_uio :02:00.0 > $ sudo ./x86_64-native-linuxapp-gcc/app/testpmd -c f -n 1 -- -i > EAL: Detected

[dpdk-dev] Testpmd returns error.

2015-02-23 Thread Bruce Richardson
On Mon, Feb 23, 2015 at 11:33:45AM +0900, Tetsuya Mukawa wrote: > On 2015/02/23 5:46, Bruce Richardson wrote: > > On Sun, Feb 22, 2015 at 02:30:02PM +0900, Tetsuya Mukawa wrote: > >> Hi, > >> > >> In my environment, testpmd in latest master branch returns erro

[dpdk-dev] [PATCH] eal: mmap uio resources using resourceX files

2015-02-23 Thread Bruce Richardson
Instead of distinguishing the BAR mappings via offset within a single file, originally /dev/uioX, switch to mapping each individual bar via the appropriately numbered resourceX file. Signed-off-by: Bruce Richardson --- lib/librte_eal/common/include/rte_pci.h| 2 +- lib/librte_eal/linuxapp

[dpdk-dev] [PATCH] eal: mmap uio resources using resourceX files

2015-02-23 Thread Bruce Richardson
On Mon, Feb 23, 2015 at 02:57:24PM +, Bruce Richardson wrote: > Instead of distinguishing the BAR mappings via offset within a single > file, originally /dev/uioX, switch to mapping each individual bar via > the appropriately numbered resourceX file. > > Signed-off-by: B

[dpdk-dev] [PATCH v2 0/2] fix and improve uio_pci_generic support

2015-02-23 Thread Bruce Richardson
This patch does some cleanup of the uio mapping code to a) fix issue with mmap of PCI bars reported by Tetsuya and confirmed by others. b) eliminate redundant code and reduce scans of /sys Bruce Richardson (2): eal: mmap uio resources using resourceX files eal: populate uio_maps from pci

[dpdk-dev] [PATCH v2 1/2] eal: mmap uio resources using resourceX files

2015-02-23 Thread Bruce Richardson
Instead of distinguishing the BAR mappings via offset within a single file, originally /dev/uioX, switch to mapping each individual bar via the appropriately numbered resourceX file. Signed-off-by: Bruce Richardson --- lib/librte_eal/common/include/rte_pci.h| 2 +- lib/librte_eal/linuxapp

[dpdk-dev] [PATCH v2 2/2] eal: populate uio_maps from pci mem_resources array

2015-02-23 Thread Bruce Richardson
Rather than scanning the resource file in sysfs a second time, we can pull the information on physical addresses of BARs from the pci resource information already present in the dev structure. Signed-off-by: Bruce Richardson --- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 163

[dpdk-dev] [PATCH v6 0/7] rte_hash_crc reworked to be platform-independent

2015-02-24 Thread Bruce Richardson
On Tue, Feb 24, 2015 at 04:10:34AM +0100, Thomas Monjalon wrote: > 2015-02-24 09:00, Yerden Zhumabekov: > > > > 23.02.2015 23:36, Thomas Monjalon ?: > > > 2015-02-19 15:21, Bruce Richardson: > > >> Confirmed, this worked for me too. > > >> Look

[dpdk-dev] rte_memcpy optimization patch to dpdk ver 1.7

2015-02-24 Thread Bruce Richardson
On Tue, Feb 24, 2015 at 04:25:40AM +, Vithal S Mohare wrote: > Hi Neil, > > > While most of the newer CPUs supports ssse3, found a I7 not supporting it. > So, DPDK can't run these CPUs? Is this restriction acceptable? > > -sh-3.2$ cat /proc/cpuinfo > processor : 0 > vendor_id

[dpdk-dev] [PATCH v2] mk: Rework gcc version detection to permit versions newer than 4.x

2015-02-24 Thread Bruce Richardson
On Tue, Feb 24, 2015 at 11:44:21AM +0100, David Marchand wrote: > On Tue, Feb 24, 2015 at 11:36 AM, Mcnamara, John > wrote: > > > > > > >> $ gcc -dumpversion > > > >>> 4.7 > > > >>> > > > Hum, how about something like always appending .0.0 to the gcc - > > > dumpversion then cut at 3 characters

[dpdk-dev] [PATCH v2 0/2] fix and improve uio_pci_generic support

2015-02-24 Thread Bruce Richardson
On Mon, Feb 23, 2015 at 05:02:33PM +, Bruce Richardson wrote: > This patch does some cleanup of the uio mapping code to > a) fix issue with mmap of PCI bars reported by Tetsuya and confirmed > by others. > b) eliminate redundant code and reduce scans of /sys > > >

[dpdk-dev] [PATCH v2 0/2] fix and improve uio_pci_generic support

2015-02-24 Thread Bruce Richardson
On Tue, Feb 24, 2015 at 12:23:15PM +0100, David Marchand wrote: > Hello Bruce, > > On Tue, Feb 24, 2015 at 11:53 AM, Bruce Richardson < > bruce.richardson at intel.com> wrote: > > > On Mon, Feb 23, 2015 at 05:02:33PM +, Bruce Richardson wrote: > > > Thi

[dpdk-dev] [PATCH v3 2/2] eal: populate uio_maps from pci mem_resources array

2015-02-24 Thread Bruce Richardson
Rather than scanning the resource file in sysfs a second time, we can pull the information on physical addresses of BARs from the pci resource information already present in the dev structure. Signed-off-by: Bruce Richardson --- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 163

[dpdk-dev] [PATCH v3 0/2] fix and improve uio_pci_generic support

2015-02-24 Thread Bruce Richardson
duce scans of /sys Bruce Richardson (2): eal: mmap uio resources using resourceX files eal: populate uio_maps from pci mem_resources array lib/librte_eal/common/include/rte_pci.h| 2 +- lib/librte_eal/linuxapp/eal/eal_pci_init.h | 1 + lib/librte_eal/linuxapp/eal/eal_pci_ui

[dpdk-dev] [PATCH v3 1/2] eal: mmap uio resources using resourceX files

2015-02-24 Thread Bruce Richardson
Instead of distinguishing the BAR mappings via offset within a single file, originally /dev/uioX, switch to mapping each individual bar via the appropriately numbered resourceX file. Signed-off-by: Bruce Richardson --- lib/librte_eal/common/include/rte_pci.h| 2 +- lib/librte_eal/linuxapp

[dpdk-dev] [PATCH v4 1/3] eal: mmap uio resources using resourceX files

2015-02-24 Thread Bruce Richardson
Instead of distinguishing the BAR mappings via offset within a single file, originally /dev/uioX, switch to mapping each individual bar via the appropriately numbered resourceX file. Signed-off-by: Bruce Richardson Acked-by: David Marchand --- lib/librte_eal/common/include/rte_pci.h| 2

[dpdk-dev] [PATCH v4 0/3] fix and improve uio_pci_generic support

2015-02-24 Thread Bruce Richardson
by Tetsuya and confirmed by others. b) eliminate redundant code and reduce scans of /sys Bruce Richardson (3): eal: mmap uio resources using resourceX files eal: populate uio_maps from pci mem_resources array eal: remove unnecessary check for primary instance lib/librte_eal/common/include/rte_pci.

[dpdk-dev] [PATCH v4 2/3] eal: populate uio_maps from pci mem_resources array

2015-02-24 Thread Bruce Richardson
Rather than scanning the resource file in sysfs a second time, we can pull the information on physical addresses of BARs from the pci resource information already present in the dev structure. Signed-off-by: Bruce Richardson Acked-by: David Marchand --- lib/librte_eal/linuxapp/eal

[dpdk-dev] [PATCH v4 3/3] eal: remove unnecessary check for primary instance

2015-02-24 Thread Bruce Richardson
In pci_uio_map_resource we check that we are in a primary process before calling pci_uio_set_bus_master. However, there is already an earlier check which means that we are always in a primary instance at this point in the code, so the check can be removed. Signed-off-by: Bruce Richardson Acked

[dpdk-dev] [PATCH] app/test: add crc32 algorithms equivalence check

2015-02-24 Thread Bruce Richardson
On Tue, Feb 24, 2015 at 06:36:28PM +0600, Yerden Zhumabekov wrote: > New function test_crc32_hash_alg_equiv() checks whether software, > 4-byte operand and 8-byte operand versions of CRC32 hash function > implementations return the same result value. > > Signed-off-by: Yerden Zhumabekov Looks

[dpdk-dev] [PATCH 0/2] update docs for uio_pci_generic

2015-02-24 Thread Bruce Richardson
over DPDK specific ones. Bruce Richardson (2): doc: Update GSG for uio_pci_generic use doc: update programmers guide for uio_pci_generic doc/guides/linux_gsg/build_dpdk.rst| 63 -- doc/guides/linux_gsg/build_sample_apps.rst | 5 +- doc/guides

[dpdk-dev] [PATCH 1/2] doc: Update GSG for uio_pci_generic use

2015-02-24 Thread Bruce Richardson
Since DPDK now has support for the in-tree uio_pci_generic driver, update the GSG document to reference this module, and to use it in preference to the igb_uio driver, which is DPDK-specific. Signed-off-by: Bruce Richardson --- doc/guides/linux_gsg/build_dpdk.rst| 63

[dpdk-dev] [PATCH 2/2] doc: update programmers guide for uio_pci_generic

2015-02-24 Thread Bruce Richardson
Since DPDK now has support for the in-tree uio_pci_generic driver, update the programmers guide document to reference this module, and to use it in preference to the igb_uio driver, which is DPDK-specific. Signed-off-by: Bruce Richardson --- doc/guides/prog_guide/env_abstraction_layer.rst

[dpdk-dev] : ixgbe: why bulk allocation is not used for a scattered Rx flow?

2015-02-25 Thread Bruce Richardson
On Wed, Feb 25, 2015 at 11:40:36AM +0200, Vlad Zolotarov wrote: > Hi, I have a question about the "scattered Rx" feature: why enabling it > disabled "bulk allocation" feature? The "bulk-allocation" feature is one where a more optimized RX code path is used. For the sake of performance, when doing

[dpdk-dev] dpdk - poll mode - context switches

2015-02-25 Thread Bruce Richardson
On Wed, Feb 25, 2015 at 10:54:51AM +0100, Jog Lie wrote: > Hello, > > I am not sure to understand the mechanism behind dpdk concerning the context > switches. > I have two user space applications that need access to the NIC according to > incoming port rules (port 80 and port 443). > > How to

[dpdk-dev] [PATCH v2 0/3] timer: fix rte_timer_reset

2015-02-25 Thread Bruce Richardson
On Wed, Feb 25, 2015 at 06:02:24AM -0500, Robert Sanford wrote: > Hi Thomas, > > Yes, I'm interested in becoming a maintainer of rte_timer. What are the > responsibilities? > > > One question about lib rte_timer that's been troubling me for a while: How > are skip lists better than BSD-style

[dpdk-dev] [PATCH v2] app/test: add crc32 algorithms equivalence check

2015-02-25 Thread Bruce Richardson
humabekov Two small notes below for improving output on error. Acked-by: Bruce Richardson > --- > app/test/test_hash.c | 63 > ++ > 1 file changed, 63 insertions(+) > > diff --git a/app/test/test_hash.c b/app/test/test_hash.

[dpdk-dev] [PATCH 1/2] doc: Update GSG for uio_pci_generic use

2015-02-25 Thread Bruce Richardson
On Wed, Feb 25, 2015 at 12:14:15PM +, Iremonger, Bernard wrote: > > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > > Sent: Tuesday, February 24, 2015 4:28 PM > > To: dev at dpdk.org > > Subject

[dpdk-dev] [PATCH 2/2] doc: update programmers guide for uio_pci_generic

2015-02-25 Thread Bruce Richardson
On Wed, Feb 25, 2015 at 12:19:10PM +, Iremonger, Bernard wrote: > > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > > Sent: Tuesday, February 24, 2015 4:28 PM > > To: dev at dpdk.org > > Subject

[dpdk-dev] [PATCH v3] app/test: add crc32 algorithms equivalence check

2015-02-25 Thread Bruce Richardson
mabekov Acked-by: Bruce Richardson > --- > app/test/test_hash.c | 60 > ++ > 1 file changed, 60 insertions(+) > > diff --git a/app/test/test_hash.c b/app/test/test_hash.c > index 76b1b8f..653dd86 100644 > --- a/app/test/t

[dpdk-dev] [PATCH 2/2] doc: update programmers guide for uio_pci_generic

2015-02-25 Thread Bruce Richardson
k-dev] [PATCH 2/2] doc: update programmers guide for > > uio_pci_generic > > > > On Wed, Feb 25, 2015 at 12:19:10PM +, Iremonger, Bernard wrote: > > > > > > > > > > -Original Message- > > > > From: dev [mailto:dev-bounc

[dpdk-dev] [Dpdk-ovs] problem in binding interfaces of virtio-pci on the VM

2015-02-26 Thread Bruce Richardson
On Thu, Feb 26, 2015 at 10:08:59PM +0530, Srinivasreddy R wrote: > hi Mike, > Thanks for our detailed explanation of your example . usually i do similar > to u and i am aware of working with dpdk applications . > my problem is : > 1. i have written a code for host to guest communication .[taken

[dpdk-dev] [Dpdk-ovs] problem in binding interfaces of virtio-pci on the VM

2015-02-27 Thread Bruce Richardson
05.0 > Does VNC not also connect using a network port? What is the output of ./dpdk_nic_bind.py --status before you run this command? /Bruce > > > thanks, > srinivas. > > > > On Thu, Feb 26, 2015 at 10:30 PM, Bruce Richardson < > bruce.richardson at intel.com

[dpdk-dev] [Dpdk-ovs] problem in binding interfaces of virtio-pci on the VM

2015-02-27 Thread Bruce Richardson
can't mmap RAM pages: Cannot allocate memory > qemu-system-x86_64: unable to start vhost net: 22: falling back on > userspace virtio > qemu-system-x86_64: unable to start vhost net: 22: falling back on > userspace virtio > > > > > thanks, > srinivas. > >

[dpdk-dev] [PATCH 2/2] doc: update programmers guide for uio_pci_generic

2015-02-27 Thread Bruce Richardson
On Wed, Feb 25, 2015 at 01:20:43PM +, Bruce Richardson wrote: > On Wed, Feb 25, 2015 at 01:12:43PM +, Iremonger, Bernard wrote: > > > > > > > -Original Message- > > > From: Richardson, Bruce > > > Sent: Wednesday, February 25, 2015 12:2

[dpdk-dev] [PATCH v3 5/6] ixgbe: Config VF RSS

2015-01-05 Thread Bruce Richardson
On Fri, Dec 26, 2014 at 01:52:25AM +, Ouyang, Changchun wrote: > > > > -Original Message- > > From: Vlad Zolotarov [mailto:vladz at cloudius-systems.com] > > Sent: Thursday, December 25, 2014 9:20 PM > > To: Ouyang, Changchun; dev at dpdk.org > > Subject: Re: [dpdk-dev] [PATCH v3

[dpdk-dev] [PATCH v3 0/6] Enable VF RSS for Niantic

2015-01-05 Thread Bruce Richardson
On Thu, Dec 25, 2014 at 01:46:54AM +, Ouyang, Changchun wrote: > Hi, > > > -Original Message- > > From: Vlad Zolotarov [mailto:vladz at cloudius-systems.com] > > Sent: Wednesday, December 24, 2014 5:59 PM > > To: Ouyang, Changchun; dev at dpdk.org > > Subject: Re: [dpdk-dev] [PATCH v3

[dpdk-dev] Query on the modified rte_mbuf structure

2015-01-05 Thread Bruce Richardson
On Tue, Dec 30, 2014 at 08:58:01AM +0200, Tapio Tallgren wrote: > Hi, > > I am not sure if I understand the question correctly, but there was a > change to the rte_mbuf structure with > patch ea672a8b1655bbb44876d2550ff56f384968a43b. It got rid of the pkt > member in rte_mbuf. Here is an example

[dpdk-dev] [PATCH 1/2] Fix checkpatch errors in librte_acl

2015-01-05 Thread Bruce Richardson
On Thu, Dec 25, 2014 at 10:31:47AM -0500, Ravi Kerur wrote: > Fix checkpatch warnings and errors in lib/librte_acl. checkpatch > is run as follows > > scripts/checkpatch.pl --no-tree --file > > Following warnings are treated as false-positive > > 1. WARNING: quoted string split across lines >

[dpdk-dev] [PATCH 0/2] Fix checkpatch errors

2015-01-05 Thread Bruce Richardson
On Thu, Dec 25, 2014 at 10:31:46AM -0500, Ravi Kerur wrote: > checkpatch script is run against files in librte_acl and > librte_mempool files. No functionality change. > Changes are tested in Ubuntu and FreeBSD. > > Ravi Kerur (2): > Fix checkpatch errors in librte_acl > Fix checkpatch

[dpdk-dev] [PATCH 0/7] Move EAL common functions

2015-01-05 Thread Bruce Richardson
On Sun, Jan 04, 2015 at 03:10:46PM -0800, Ravi Kerur wrote: > Hi, > > I plan to work on this and would like to know if I need consider anything > else other than mentioned in the email by Olivier/Neil i.e.go with 2 > directories > > common-os/generic-os > common-posix > > under librte_eal

  1   2   3   4   5   6   7   8   9   10   >