Re: [dpdk-dev] [PATCH 3/3] doc: remove ABI changes in igb_uio

2017-01-31 Thread Tan, Jianfeng
On 1/31/2017 1:52 AM, Thomas Monjalon wrote: 2017-01-24 13:35, Ferruh Yigit: On 1/24/2017 7:34 AM, Jianfeng Tan wrote: We announced ABI changes to remove iomem and ioport mapping in igb_uio. But it has potential backward compatibility issue: cannot run old version DPDK on modified igb_uio. T

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] net/mlx5: fix link status query

2017-01-31 Thread Shahaf Shuler
: Tuesday, January 31, 2017 6:17 PM, Ferruh Yigit: > On 1/31/2017 11:45 AM, Shahaf Shuler wrote: > > Trying to query the link status through new kernel ioctl API > > ETHTOOL_GLINKSETTINGS was always failing due to kernel bug. > > The bug was fixed on version 4.9 > > this patch uses the legacy ioctl

Re: [dpdk-dev] [PATCH 1/6] net/tap: use correct tap name

2017-01-31 Thread Wiles, Keith
> On Jan 31, 2017, at 10:39 AM, Pascal Mazon wrote: > > On 01/31/2017 05:06 PM, Wiles, Keith wrote:> >> Looking at the changes to set the link up/down and the adding the two >> functions. I noticed in the stop/start routines I was set the link in DPDK >> and not adjusting the interface link. S

Re: [dpdk-dev] [PATCH v2 02/15] eventdev: add APIs for extended stats

2017-01-31 Thread Eads, Gage
Hi Harry, Looks like the function names in *_version.map don't quite match those in the eventdev header. +int +rte_event_dev_xstats_names_get(uint8_t dev_id, + struct rte_event_dev_xstat_name *xstats_names, + unsigned int size) +int +rte_event_dev_xstats_get(uint8_t dev_id, const

[dpdk-dev] [PATCH v4] eal: Support running as unprivileged user

2017-01-31 Thread Ben Walker
For Linux kernel 4.0 and newer, the ability to obtain physical page frame numbers for unprivileged users from /proc/self/pagemap was removed. Instead, when an IOMMU is present, simply choose our own DMA addresses instead. Signed-off-by: Ben Walker --- lib/librte_eal/common/eal_private.h | 1

[dpdk-dev] [PATCH v3] eal: Support running as unprivileged user

2017-01-31 Thread Ben Walker
For Linux kernel 4.0 and newer, the ability to obtain physical page frame numbers for unprivileged users from /proc/self/pagemap was removed. Instead, when an IOMMU is present, simply choose our own DMA addresses instead. Signed-off-by: Ben Walker --- lib/librte_eal/common/eal_private.h | 1

Re: [dpdk-dev] [PATCH 2/6] net/tap: use correct channel for error logs

2017-01-31 Thread Wiles, Keith
> On Jan 31, 2017, at 10:58 AM, Stephen Hemminger > wrote: > > On Tue, 31 Jan 2017 13:07:37 + > Ferruh Yigit wrote: > >> On 1/31/2017 9:42 AM, Pascal Mazon wrote: >>> Signed-off-by: Pascal Mazon >>> --- >> >> looks good to me. >> > > Agreed, almost all uses of INFO as log level are

Re: [dpdk-dev] [PATCH 2/6] net/tap: use correct channel for error logs

2017-01-31 Thread Stephen Hemminger
On Tue, 31 Jan 2017 13:07:37 + Ferruh Yigit wrote: > On 1/31/2017 9:42 AM, Pascal Mazon wrote: > > Signed-off-by: Pascal Mazon > > --- > > looks good to me. > Agreed, almost all uses of INFO as log level are wrong! Either the message is reporting a problem should be NOTICE, WARN, ERR or

Re: [dpdk-dev] [PATCH 25/25] rte_eal_init: add info about rte_errno codes

2017-01-31 Thread Stephen Hemminger
On Tue, 31 Jan 2017 09:33:45 + Bruce Richardson wrote: > On Mon, Jan 30, 2017 at 01:38:00PM -0500, Aaron Conole wrote: > > Stephen Hemminger writes: > > > > > On Fri, 27 Jan 2017 16:47:40 + > > > Bruce Richardson wrote: > > > > > >> On Fri, Jan 27, 2017 at 08:33:46AM -0800, Stephen

Re: [dpdk-dev] [PATCH] crypto/aesni_mb: add missing digest length

2017-01-31 Thread Declan Doherty
On 27/01/17 13:16, Pablo de Lara wrote: AESNI MB now supports authentication only operations, but the array containing all the possible digest lengths was not updated to reflect the new algorithm NULL_HASH, causing an "Out-of-bounds access". Coverity issue: 140977 Fixes: 8772c3f713e2 ("crypto/ae

Re: [dpdk-dev] [PATCH 1/6] net/tap: use correct tap name

2017-01-31 Thread Pascal Mazon
On 01/31/2017 05:06 PM, Wiles, Keith wrote:> Looking at the changes to set the link up/down and the adding the two functions. I noticed in the stop/start routines I was set the link in DPDK and not adjusting the interface link. Should the stop/start routine also do the same thing? Well, my

[dpdk-dev] [PATCH v2 13/15] event/sw: add dump function for easier debugging

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 118 1 file changed, 118 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index e352a5c..60

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] net/mlx5: fix link status query

2017-01-31 Thread Ferruh Yigit
On 1/31/2017 11:45 AM, Shahaf Shuler wrote: > Trying to query the link status through new kernel ioctl API > ETHTOOL_GLINKSETTINGS was always failing due to kernel bug. > The bug was fixed on version 4.9 > this patch uses the legacy ioctl API for lower kernels. > > Fixes: 188408719888 ("net/mlx5:

[dpdk-dev] [PATCH v2 15/15] app/test: add unit tests for SW eventdev driver

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Since the sw driver is a standalone lookaside device that has no HW requirements, we can provide a set of unit tests that test its functionality across the different queue types and with different input scenarios. This also adds the tests to be automatically run by autotes

[dpdk-dev] [PATCH v2 14/15] event/sw: add xstats support

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Add support for xstats to report out on the state of the eventdev. Useful for debugging and for unit tests, as well as observability at runtime and performance tuning of apps to work well with the scheduler. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren

[dpdk-dev] [PATCH v2 10/15] event/sw: add worker core functions

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson add the event enqueue, dequeue and release functions to the eventdev. These also include tracking of stats for observability in the load of the scheduler. Internally in the enqueue function, the various types of enqueue operations, to forward an existing event, to send a ne

[dpdk-dev] [PATCH v2 11/15] event/sw: add scheduling logic

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Add in the scheduling function which takes the events from the producer queues and buffers them before scheduling them to consumer queues. The scheduling logic includes support for atomic, reordered, and parallel scheduling of flows. Signed-off-by: Bruce Richardson Signed

[dpdk-dev] [PATCH v2 12/15] event/sw: add start stop and close functions

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 74 + 1 file changed, 74 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 17b5e49..e35

[dpdk-dev] [PATCH v2 09/15] event/sw: add support for linking queues to ports

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 68 + 1 file changed, 68 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 0b26fcb..693

[dpdk-dev] [PATCH v2 08/15] event/sw: add support for event ports

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Add in the data-structures for the ports used by workers to send packets to/from the scheduler. Also add in the functions to create/destroy those ports. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/event_ring.h | 179 +

[dpdk-dev] [PATCH v2 06/15] event/sw: add fns to return default port/queue config

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index b657eb4..ceca865 100644 -

[dpdk-dev] [PATCH v2 07/15] event/sw: add support for event queues

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Add in the data structures for the event queues, and the eventdev functions to create and destroy those queues. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/iq_ring.h | 176 drivers/ev

[dpdk-dev] [PATCH v2 05/15] event/sw: add configure function

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 15 +++ drivers/event/sw/sw_evdev.h | 11 +++ 2 files changed, 26 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c i

[dpdk-dev] [PATCH v2 02/15] eventdev: add APIs for extended stats

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Add in APIs for extended stats so that eventdev implementations can report out information on their internal state. The APIs are based on, but not identical to, the equivalent ethdev functions. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- lib/libr

[dpdk-dev] [PATCH v2 01/15] eventdev: remove unneeded dependencies

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Since eventdev uses event structures rather than working directly on mbufs, there is no actual dependencies on the mbuf library. The inclusion of an mbuf pointer element inside the event itself does not require the inclusion of the mbuf header file. Similarly the pci header

[dpdk-dev] [PATCH v2 04/15] event/sw: add device capabilities function

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson Add in the info_get function to return details on the queues, flow, prioritization capabilities, etc. that this device has. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 23 +++ drivers/event/sw/sw_

[dpdk-dev] [PATCH v2 03/15] event/sw: add new software-only eventdev driver

2017-01-31 Thread Harry van Haaren
From: Bruce Richardson This adds the minimal changes to allow a SW eventdev implementation to be compiled, linked and created at run time. The eventdev does nothing, but can be created via vdev on commandline, e.g. sudo ./x86_64-native-linuxapp-gcc/app/test --vdev=event_sw0 ... PMD: Creati

[dpdk-dev] [PATCH v2 00/15] next-eventdev: event/sw software eventdev

2017-01-31 Thread Harry van Haaren
The following patchset adds software eventdev implementation to the next-eventdev tree. This implementation is based on the previous software eventdev v1 patchset, now with comments addressed: 1) xstats api return values changed to be consistent 2) xstats api [out] added to appropriate values 3) x

[dpdk-dev] [PATCH 2/3] net/mlx5: fix verification of mark action

2017-01-31 Thread Nelio Laranjeiro
A configuration structure for the MARK action must always be specified. Fixes: ea3bc3b1df94 ("net/mlx5: support mark flow action") Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --gi

Re: [dpdk-dev] [PATCH 1/6] net/tap: use correct tap name

2017-01-31 Thread Wiles, Keith
> On Jan 31, 2017, at 9:44 AM, Pascal Mazon wrote: > > On 01/31/2017 04:44 PM, Wiles, Keith wrote: >> >>> On Jan 31, 2017, at 9:38 AM, Yigit, Ferruh wrote: >>> >>> On 1/31/2017 3:30 PM, Pascal Mazon wrote: On 01/31/2017 04:28 PM, Ferruh Yigit wrote: > On 1/31/2017 2:23 PM, Pascal Maz

[dpdk-dev] [PATCH 3/3] net/mlx5: fix flow rule creation if ports are stopped

2017-01-31 Thread Nelio Laranjeiro
Adding a flow when the port is stopped ends in an inconsistent situation where the queue can receive traffic when it should not. Record new rules and apply them as soon as the port is started. Fixes: 2097d0d1e2cc ("net/mlx5: support basic flow items and actions") Signed-off-by: Nelio Laranjeiro

[dpdk-dev] [PATCH 1/3] net/mlx5: use flow API default masks

2017-01-31 Thread Nelio Laranjeiro
Default masks were introduced in the API after its implementation in this PMD. Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_flow.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net

Re: [dpdk-dev] [PATCH 1/6] net/tap: use correct tap name

2017-01-31 Thread Pascal Mazon
On 01/31/2017 04:44 PM, Wiles, Keith wrote: On Jan 31, 2017, at 9:38 AM, Yigit, Ferruh wrote: On 1/31/2017 3:30 PM, Pascal Mazon wrote: On 01/31/2017 04:28 PM, Ferruh Yigit wrote: On 1/31/2017 2:23 PM, Pascal Mazon wrote: On 01/31/2017 02:06 PM, Ferruh Yigit wrote:> On 1/31/2017 9:42 AM, P

Re: [dpdk-dev] [PATCH 1/6] net/tap: use correct tap name

2017-01-31 Thread Wiles, Keith
> On Jan 31, 2017, at 9:38 AM, Yigit, Ferruh wrote: > > On 1/31/2017 3:30 PM, Pascal Mazon wrote: >> On 01/31/2017 04:28 PM, Ferruh Yigit wrote: >>> On 1/31/2017 2:23 PM, Pascal Mazon wrote: On 01/31/2017 02:06 PM, Ferruh Yigit wrote:> On 1/31/2017 9:42 AM, Pascal Mazon wrote: >> d

Re: [dpdk-dev] [PATCH v2] net/mlx5: fix link status query

2017-01-31 Thread Nélio Laranjeiro
On Tue, Jan 31, 2017 at 01:45:29PM +0200, Shahaf Shuler wrote: > Trying to query the link status through new kernel ioctl API > ETHTOOL_GLINKSETTINGS was always failing due to kernel bug. > The bug was fixed on version 4.9 > this patch uses the legacy ioctl API for lower kernels. > > Fixes: 188408

Re: [dpdk-dev] [PATCH v3] net/mlx5: fix link status is always inconsist

2017-01-31 Thread Nélio Laranjeiro
On Tue, Jan 31, 2017 at 03:13:38PM +0200, Shahaf Shuler wrote: > Query the link status can end up in an inconsist state where the port is > down but it is reporting speed. For that another query is scheduled for a > later time. > A race condition is possible between the scheduled call and other lin

Re: [dpdk-dev] [PATCH 1/6] net/tap: use correct tap name

2017-01-31 Thread Ferruh Yigit
On 1/31/2017 3:30 PM, Pascal Mazon wrote: > On 01/31/2017 04:28 PM, Ferruh Yigit wrote: >> On 1/31/2017 2:23 PM, Pascal Mazon wrote: >>> On 01/31/2017 02:06 PM, Ferruh Yigit wrote:> On 1/31/2017 9:42 AM, >>> Pascal Mazon wrote: > dev->data->name contains "net_tap", the device driver name.

Re: [dpdk-dev] [PATCH 1/6] net/tap: use correct tap name

2017-01-31 Thread Pascal Mazon
On 01/31/2017 04:28 PM, Ferruh Yigit wrote: On 1/31/2017 2:23 PM, Pascal Mazon wrote: On 01/31/2017 02:06 PM, Ferruh Yigit wrote:> On 1/31/2017 9:42 AM, Pascal Mazon wrote: dev->data->name contains "net_tap", the device driver name. I see what patch does, just as a note to commit log: AFAIK,

Re: [dpdk-dev] [PATCH 1/6] net/tap: use correct tap name

2017-01-31 Thread Ferruh Yigit
On 1/31/2017 2:23 PM, Pascal Mazon wrote: > On 01/31/2017 02:06 PM, Ferruh Yigit wrote:> On 1/31/2017 9:42 AM, > Pascal Mazon wrote: >>> dev->data->name contains "net_tap", the device driver name. >> >> I see what patch does, just as a note to commit log: >> >> AFAIK, "dev->data->name" is device n

Re: [dpdk-dev] [PATCH 1/6] net/tap: use correct tap name

2017-01-31 Thread Wiles, Keith
> On Jan 31, 2017, at 9:14 AM, Yigit, Ferruh wrote: > > On 1/31/2017 2:52 PM, Wiles, Keith wrote: >> >>> On Jan 31, 2017, at 3:42 AM, Pascal Mazon wrote: >>> >>> dev->data->name contains "net_tap", the device driver name. >>> dev->data->dev_private->name contains the actual iface name, >>> e.

Re: [dpdk-dev] [PATCH 1/6] net/tap: use correct tap name

2017-01-31 Thread Ferruh Yigit
On 1/31/2017 2:52 PM, Wiles, Keith wrote: > >> On Jan 31, 2017, at 3:42 AM, Pascal Mazon wrote: >> >> dev->data->name contains "net_tap", the device driver name. >> dev->data->dev_private->name contains the actual iface name, >> e.g. "dtap0". >> >> In tun_alloc() especially, we want to use the la

[dpdk-dev] [PATCH v2 1/2] app/testpmd: use LDLIBS in makefile

2017-01-31 Thread Ferruh Yigit
_LDLIBS is for internal usage, convert to LDLIBS usage. Signed-off-by: Ferruh Yigit --- app/test-pmd/Makefile | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/Makefile b/app/test-pmd/Makefile index a1500bb..7e52eb8 100644 --- a/app/test-pmd/Makefile ++

[dpdk-dev] [PATCH v2 2/2] mk: move PMD libraries to applications

2017-01-31 Thread Ferruh Yigit
Some PMDs provide device specific APIs. Bond and xenvirt are existing samples for this. And since these are PMD libraries, there are two options on how to link them for shared library build: 1- They can be linked to all applications by default, using common rte.app.mk file. 2- They can be explic

[dpdk-dev] [PATCH v2] mk: move libs that don't dependent PMD libs out of whole archive

2017-01-31 Thread Ferruh Yigit
During app build with static library, some libraries wrapped with --whole-archive compiler flag. Wrapped libraries are mainly PMD libraries, this is required because PMD APIs not called directly but run through callbacks registered via constructor functions. Also some set of libraries, depends to

Re: [dpdk-dev] [PATCH 1/6] net/tap: use correct tap name

2017-01-31 Thread Wiles, Keith
> On Jan 31, 2017, at 3:42 AM, Pascal Mazon wrote: > > dev->data->name contains "net_tap", the device driver name. > dev->data->dev_private->name contains the actual iface name, > e.g. "dtap0". > > In tun_alloc() especially, we want to use the latter. Otherwise the > netdevice would be wrongly

Re: [dpdk-dev] [PATCH 2/2] mk: move PMD libraries to applications

2017-01-31 Thread Ferruh Yigit
On 1/31/2017 2:16 PM, Thomas Monjalon wrote: > 2017-01-31 12:14, Ferruh Yigit: >> Same PMDs provide device specific APIs. Bond and xenvirt are existing >> samples for this. > > s/Same/Some/ > >> And since these are PMD libraries, there are two options on how to link >> them. >> >> 1- They can be

Re: [dpdk-dev] [PATCH v2] mempool: Introduce _populate_mz_range api

2017-01-31 Thread Santosh Shukla
Hi Olivier, Reply inline. On Tue, Jan 31, 2017 at 11:31:51AM +0100, Olivier Matz wrote: > Hi Santosh, > > I guess this patch is targeted for 17.05, right? > Yes. > Please see some other comments below. > > On Fri, 20 Jan 2017 20:43:41 +0530, > wrote: > > From: Santosh Shukla > > > > HW poo

Re: [dpdk-dev] [PATCH 6/6] net/tap: implement link up and down callbacks

2017-01-31 Thread Pascal Mazon
On 01/31/2017 02:21 PM, Ferruh Yigit wrote: On 1/31/2017 9:42 AM, Pascal Mazon wrote: Signed-off-by: Pascal Mazon --- drivers/net/tap/rte_eth_tap.c | 59 +++ 1 file changed, 59 insertions(+) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/r

Re: [dpdk-dev] [PATCH 1/6] net/tap: use correct tap name

2017-01-31 Thread Pascal Mazon
On 01/31/2017 02:06 PM, Ferruh Yigit wrote:> On 1/31/2017 9:42 AM, Pascal Mazon wrote: dev->data->name contains "net_tap", the device driver name. I see what patch does, just as a note to commit log: AFAIK, "dev->data->name" is device name, and for this case it is "net_tap#", like "net_tap0",

Re: [dpdk-dev] [PATCH 2/2] mk: move crypto scheduler library

2017-01-31 Thread Ferruh Yigit
On 1/31/2017 2:10 PM, Thomas Monjalon wrote: > 2017-01-31 11:59, Ferruh Yigit: >> There is already a block for crypto libraries, move the PMD library to >> that block. >> >> This prevents extra ifdef check for cryptodev. > > That's why I thought also when reading this patch: > http://dpdk.or

Re: [dpdk-dev] [PATCH 2/2] mk: move PMD libraries to applications

2017-01-31 Thread Thomas Monjalon
2017-01-31 12:14, Ferruh Yigit: > Same PMDs provide device specific APIs. Bond and xenvirt are existing > samples for this. s/Same/Some/ > And since these are PMD libraries, there are two options on how to link > them. > > 1- They can be fully included to all applications, using common > rte.app

Re: [dpdk-dev] [PATCH 2/2] mk: move crypto scheduler library

2017-01-31 Thread Thomas Monjalon
2017-01-31 11:59, Ferruh Yigit: > There is already a block for crypto libraries, move the PMD library to > that block. > > This prevents extra ifdef check for cryptodev. That's why I thought also when reading this patch: http://dpdk.org/commit/dbb336407 Then I've read its message: "Differ

Re: [dpdk-dev] [PATCH 1/2] mk: move libs that don't dependent PMD libs out of whole archive

2017-01-31 Thread Thomas Monjalon
2017-01-31 11:59, Ferruh Yigit: > During app build with static library, some libraries wrapped with > --whole-archive compiler flag. > > Wrapped libraries are mainly PMD libraries, this is required because PMD > APIs not directly called but run through callbacks registered via > constructor functi

Re: [dpdk-dev] rte_ring features in use (or not)

2017-01-31 Thread Bruce Richardson
On Tue, Jan 31, 2017 at 02:27:18PM +0100, Olivier Matz wrote: > On Tue, 31 Jan 2017 12:10:50 +, Bruce Richardson > wrote: > > On Tue, Jan 31, 2017 at 11:41:42AM +, Bruce Richardson wrote: > > > On Tue, Jan 31, 2017 at 11:53:49AM +0100, Olivier Matz wrote: > > > > On Wed, 25 Jan 2017 17:2

Re: [dpdk-dev] [PATCH v9 1/7] lib: add information metrics library

2017-01-31 Thread Bruce Richardson
On Tue, Jan 31, 2017 at 01:13:11PM +, Mcnamara, John wrote: > > > > -Original Message- > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas Monjalon > > Sent: Monday, January 30, 2017 3:50 PM > > To: Horton, Remy > > Cc: dev@dpdk.org > > Subject: Re: [dpdk-dev] [PATCH v9 1

Re: [dpdk-dev] rte_ring features in use (or not)

2017-01-31 Thread Olivier Matz
On Tue, 31 Jan 2017 12:10:50 +, Bruce Richardson wrote: > On Tue, Jan 31, 2017 at 11:41:42AM +, Bruce Richardson wrote: > > On Tue, Jan 31, 2017 at 11:53:49AM +0100, Olivier Matz wrote: > > > On Wed, 25 Jan 2017 17:29:18 +, "Ananyev, Konstantin" > > > wrote: > > > > > > > Bonus qu

Re: [dpdk-dev] [PATCH 6/6] net/tap: implement link up and down callbacks

2017-01-31 Thread Ferruh Yigit
On 1/31/2017 9:42 AM, Pascal Mazon wrote: > Signed-off-by: Pascal Mazon > --- > drivers/net/tap/rte_eth_tap.c | 59 > +++ > 1 file changed, 59 insertions(+) > > diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c > index 734e3a57921

Re: [dpdk-dev] [PATCH 5/6] net/tap: display tap name after parsing

2017-01-31 Thread Ferruh Yigit
On 1/31/2017 9:42 AM, Pascal Mazon wrote: > The probe parses for user-defined iface name. Let's use that value. > > Signed-off-by: Pascal Mazon looks good to me.

Re: [dpdk-dev] [PATCH 4/6] net/tap: keep kernel-assigned MAC address

2017-01-31 Thread Ferruh Yigit
On 1/31/2017 9:42 AM, Pascal Mazon wrote: > There's no point in having a different internal MAC address than the one > provided by the kernel when creating the netdevice. Agree that this is not required, but also not a defect, worth learning author's intention before deciding. > > Signed-off-by:

Re: [dpdk-dev] [PATCH v9 1/7] lib: add information metrics library

2017-01-31 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Thomas Monjalon > Sent: Monday, January 30, 2017 3:50 PM > To: Horton, Remy > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v9 1/7] lib: add information metrics > library > > Hi Remy, > > > This patch adds

[dpdk-dev] [PATCH v3] net/mlx5: fix link status is always inconsist

2017-01-31 Thread Shahaf Shuler
Query the link status can end up in an inconsist state where the port is down but it is reporting speed. For that another query is scheduled for a later time. A race condition is possible between the scheduled call and other link status interrupt handlers. When the scheduled query by-pass those han

Re: [dpdk-dev] [PATCH 2/6] net/tap: use correct channel for error logs

2017-01-31 Thread Ferruh Yigit
On 1/31/2017 9:42 AM, Pascal Mazon wrote: > Signed-off-by: Pascal Mazon > --- looks good to me.

Re: [dpdk-dev] [PATCH 1/6] net/tap: use correct tap name

2017-01-31 Thread Ferruh Yigit
On 1/31/2017 9:42 AM, Pascal Mazon wrote: > dev->data->name contains "net_tap", the device driver name. I see what patch does, just as a note to commit log: AFAIK, "dev->data->name" is device name, and for this case it is "net_tap#", like "net_tap0", "net_tap1" ... "dev->data_drv_name" is the dr

[dpdk-dev] [PATCH v8] net/kni: add KNI PMD

2017-01-31 Thread Ferruh Yigit
Add KNI PMD which wraps librte_kni for ease of use. KNI PMD can be used as any regular PMD to send / receive packets to the Linux networking stack. Signed-off-by: Ferruh Yigit Reviewed-by: Yong Wang --- v8: * Don't try to link against librte_pmd_kni if librte_kni is disabled v7: * Add depende

[dpdk-dev] [PATCH 1/2] app/testpmd: use LDLIBS in makefile

2017-01-31 Thread Ferruh Yigit
_LDLIBS is for internal usage, convert to LDLIBS usage. Signed-off-by: Ferruh Yigit --- app/test-pmd/Makefile | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/Makefile b/app/test-pmd/Makefile index a1500bb..7e52eb8 100644 --- a/app/test-pmd/Makefile ++

[dpdk-dev] [PATCH 2/2] mk: move PMD libraries to applications

2017-01-31 Thread Ferruh Yigit
Same PMDs provide device specific APIs. Bond and xenvirt are existing samples for this. And since these are PMD libraries, there are two options on how to link them. 1- They can be fully included to all applications, using common rte.app.mk file by default. 2- They can be explicitly linked to ap

Re: [dpdk-dev] rte_ring features in use (or not)

2017-01-31 Thread Bruce Richardson
On Tue, Jan 31, 2017 at 11:41:42AM +, Bruce Richardson wrote: > On Tue, Jan 31, 2017 at 11:53:49AM +0100, Olivier Matz wrote: > > On Wed, 25 Jan 2017 17:29:18 +, "Ananyev, Konstantin" > > wrote: > > > > > > Bonus question: > > > > > > * Do we know how widely used the enq_bulk/deq_bulk func

[dpdk-dev] [PATCH 2/2] mk: move crypto scheduler library

2017-01-31 Thread Ferruh Yigit
There is already a block for crypto libraries, move the PMD library to that block. This prevents extra ifdef check for cryptodev. Signed-off-by: Ferruh Yigit --- mk/rte.app.mk | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mk/rte.app.mk b/mk/rte.app.mk index aeadbc3..a4

[dpdk-dev] [PATCH 1/2] mk: move libs that don't dependent PMD libs out of whole archive

2017-01-31 Thread Ferruh Yigit
During app build with static library, some libraries wrapped with --whole-archive compiler flag. Wrapped libraries are mainly PMD libraries, this is required because PMD APIs not directly called but run through callbacks registered via constructor functions. Also some set of libraries, depends to

[dpdk-dev] [PATCH v2] net/mlx5: fix link status query

2017-01-31 Thread Shahaf Shuler
Trying to query the link status through new kernel ioctl API ETHTOOL_GLINKSETTINGS was always failing due to kernel bug. The bug was fixed on version 4.9 this patch uses the legacy ioctl API for lower kernels. Fixes: 188408719888 ("net/mlx5: fix support for newer link speeds") CC: sta...@dpdk.org

Re: [dpdk-dev] rte_ring features in use (or not)

2017-01-31 Thread Bruce Richardson
On Tue, Jan 31, 2017 at 11:53:49AM +0100, Olivier Matz wrote: > On Wed, 25 Jan 2017 17:29:18 +, "Ananyev, Konstantin" > wrote: > > > > > Bonus question: > > > > > * Do we know how widely used the enq_bulk/deq_bulk functions > > > > > are? They are useful for unit tests, so they do have uses, b

Re: [dpdk-dev] [PATCH] app/testpmd: fix static build link ordering

2017-01-31 Thread Ferruh Yigit
On 1/13/2017 4:12 PM, Ferruh Yigit wrote: > On 1/13/2017 4:01 PM, Jerin Jacob wrote: >> On Fri, Jan 13, 2017 at 03:57:59PM +, Ferruh Yigit wrote: >>> On 1/13/2017 3:53 PM, Thomas Monjalon wrote: 2017-01-13 08:51, Jerin Jacob: > On Thu, Jan 12, 2017 at 03:27:30PM +, Ferruh Yigit wro

Re: [dpdk-dev] rte_ring features in use (or not)

2017-01-31 Thread Olivier Matz
On Wed, 25 Jan 2017 17:29:18 +, "Ananyev, Konstantin" wrote: > > > > Bonus question: > > > > * Do we know how widely used the enq_bulk/deq_bulk functions > > > > are? They are useful for unit tests, so they do have uses, but > > > > I think it would be good if we harmonized the return values >

Re: [dpdk-dev] [PATCH] mbuf: use pktmbuf helper to create the pool

2017-01-31 Thread Olivier Matz
Hi Santosh, On Tue, 17 Jan 2017 19:01:23 +0530, Santosh Shukla wrote: > Hi Hemant, > > On Wed, Jan 18, 2017 at 12:12:56AM +0530, Hemant Agrawal wrote: > > When possible, replace the uses of rte_mempool_create() with > > the helper provided in librte_mbuf: rte_pktmbuf_pool_create(). > > > > This

Re: [dpdk-dev] [RFC 2/7] mbuf: use helper to create the pool

2017-01-31 Thread Olivier Matz
Hi Santosh, On Mon, 16 Jan 2017 21:00:37 +0530, Santosh Shukla wrote: > Hi Olivier, > > > On Mon, Sep 19, 2016 at 03:42:42PM +0200, Olivier Matz wrote: > > When possible, replace the uses of rte_mempool_create() with > > the helper provided in librte_mbuf: rte_pktmbuf_pool_create(). > > > > Th

Re: [dpdk-dev] [PATCH v2] mempool: Introduce _populate_mz_range api

2017-01-31 Thread Olivier Matz
Hi Santosh, I guess this patch is targeted for 17.05, right? Please see some other comments below. On Fri, 20 Jan 2017 20:43:41 +0530, wrote: > From: Santosh Shukla > > HW pool manager e.g. Cavium SoC need s/w to program start and > end address of pool. Currently there is no such api in ext-m

Re: [dpdk-dev] [PATCH v2] mbuf: use pktmbuf helper to create the pool

2017-01-31 Thread Olivier Matz
Hi Hemant, Sorry for the delay. On Fri, 20 Jan 2017 12:41:20 +0530, Hemant Agrawal wrote: > When possible, replace the uses of rte_mempool_create() with > the helper provided in librte_mbuf: rte_pktmbuf_pool_create(). > > This is the preferred way to create a mbuf pool. > > This also updates t

[dpdk-dev] [PATCH 5/6] net/tap: display tap name after parsing

2017-01-31 Thread Pascal Mazon
The probe parses for user-defined iface name. Let's use that value. Signed-off-by: Pascal Mazon --- drivers/net/tap/rte_eth_tap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index f8b07b4a8fa1..734e3a5792

[dpdk-dev] [PATCH 6/6] net/tap: implement link up and down callbacks

2017-01-31 Thread Pascal Mazon
Signed-off-by: Pascal Mazon --- drivers/net/tap/rte_eth_tap.c | 59 +++ 1 file changed, 59 insertions(+) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 734e3a579219..9b6bbff5fd81 100644 --- a/drivers/net/tap/rte_eth_tap.c

[dpdk-dev] [PATCH 4/6] net/tap: keep kernel-assigned MAC address

2017-01-31 Thread Pascal Mazon
There's no point in having a different internal MAC address than the one provided by the kernel when creating the netdevice. Signed-off-by: Pascal Mazon --- drivers/net/tap/rte_eth_tap.c | 22 -- 1 file changed, 22 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/dr

[dpdk-dev] [PATCH 3/6] net/tap: don't set fd value overwritten just below

2017-01-31 Thread Pascal Mazon
pmd->fds[0], pmd->rxq[0] and pmd->txq[0] are set a couple of lines after the for loop that initializes them to -1. Signed-off-by: Pascal Mazon --- drivers/net/tap/rte_eth_tap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte

[dpdk-dev] [PATCH 2/6] net/tap: use correct channel for error logs

2017-01-31 Thread Pascal Mazon
Signed-off-by: Pascal Mazon --- drivers/net/tap/rte_eth_tap.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 8faf08551b9e..4cc1767da5e8 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/

[dpdk-dev] [PATCH 1/6] net/tap: use correct tap name

2017-01-31 Thread Pascal Mazon
dev->data->name contains "net_tap", the device driver name. dev->data->dev_private->name contains the actual iface name, e.g. "dtap0". In tun_alloc() especially, we want to use the latter. Otherwise the netdevice would be wrongly named "net_tap". Furthermore, creating several tap vdev would point

Re: [dpdk-dev] [PATCH 25/25] rte_eal_init: add info about rte_errno codes

2017-01-31 Thread Bruce Richardson
On Mon, Jan 30, 2017 at 01:38:00PM -0500, Aaron Conole wrote: > Stephen Hemminger writes: > > > On Fri, 27 Jan 2017 16:47:40 + > > Bruce Richardson wrote: > > > >> On Fri, Jan 27, 2017 at 08:33:46AM -0800, Stephen Hemminger wrote: > >> > On Fri, 27 Jan 2017 09:57:03 -0500 > >> > Aaron Conole