[dpdk-dev] [PATCH 7/7] net/bnxt: add support for trusted VF

2018-08-31 Thread Ajit Khaparde
In the current model, VFs are not trusted. So it is not allowed to send many HWRM commands. Newer firmware has added support to allow VF to be trusted. Now the VF queries if it is a trusted entity and based on that it can send HWRM commands to the firmware. Signed-off-by: Ajit Khaparde --- drive

[dpdk-dev] [PATCH 6/7] net/bnxt: add support to enable new mailbox channel

2018-08-31 Thread Ajit Khaparde
For hardware having multiple embedded management processors the firmware has added support to indicate if the comm channel to the processor has been enabled. If the channel is enabled, switch the CFA NTUPLE and EM filtering commands to use the kong channel. Signed-off-by: Ajit Khaparde --- drive

[dpdk-dev] [PATCH 5/7] net/bnxt: add support for extended port counters

2018-08-31 Thread Ajit Khaparde
This patch adds support extended port statistics like COS bytes, packets, XON -> XOFF and XOFF -> XON transitions in Tx and Rx path. Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt.h| 8 ++ drivers/net/bnxt/bnxt_ethdev.c | 30 +- drivers/net/bnxt/bnxt_hwrm.c | 44 +++

[dpdk-dev] [PATCH 0/7] bnxt patchset

2018-08-31 Thread Ajit Khaparde
Patchset against dpdk-next-net. Please apply. Ajit Khaparde (5): net/bnxt: fix MTU setting net/bnxt: update HWRM version net/bnxt: add support for extended port counters net/bnxt: add support to enable new mailbox channel net/bnxt: add support for trusted VF Somnath Kotur (2): net/bnx

[dpdk-dev] [PATCH 1/7] net/bnxt: get rid of ff pools array and use the vnic info array

2018-08-31 Thread Ajit Khaparde
From: Somnath Kotur There was no direct association between the rxq's vnic and the vnic_info[]. Explicitly associate the two in bnxt_mq_rx_configure(). Fixes: f7c3d72afff7 ("net/bnxt: fix Rx ring count limitation") Cc: sta...@dpdk.org Signed-off-by: Somnath Kotur Signed-off-by: Ajit Khaparde

[dpdk-dev] [PATCH 3/7] net/bnxt: fix MTU setting

2018-08-31 Thread Ajit Khaparde
The HW can support maximum frame length of 9600 bytes. And we are currently capping the max frame size to 9500 bytes. Fixes: daef48efe5e5 ("net/bnxt: support set MTU") Cc: sta...@dpdk.org Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt.h| 2 +- drivers/net/bnxt/bnxt_ethdev.c | 2

[dpdk-dev] [PATCH 2/7] net/bnxt: fix uninitialized ptr access in transmit handler

2018-08-31 Thread Ajit Khaparde
From: Somnath Kotur bnxt_start_xmit() was attempting to access an uninitialized ptr - txbd1 which would lead to segmentation fault. Fix to initialize ptr to NULL and check for the same before access. Fixes: f10258e39ec2 ("net/bnxt: fix HW Tx checksum offload check") Cc: sta...@broadcom.com Sign

[dpdk-dev] use Netlink to add/remove MAC addr at mlx5 PMD for DPDK 17.11.2 release

2018-08-31 Thread Zhongliang Shu
Hi, Guys: Is there have DPDK stable patch for the issue to use Netlink to add/remove mlx5 PMD MAC addrfor DPDK release 17.11.2 release?Online search shows that there have several patches going on with some at superseded status.but I am not sure which patch is finalized and which patch can applie

Re: [dpdk-dev] [PATCH v3] hash table: add an iterator over conflicting entries

2018-08-31 Thread Gaëtan Rivet
Hi Qiaobin, This work seems interesting, but is difficult to follow because the previous discussion is not referenced. You can find a how-to there: http://doc.dpdk.org/guides/contributing/patches.html#sending-patches --in-reply-to is useful to check which comments were already made and understa

Re: [dpdk-dev] [PATCH] net/mlx5: handle expected errno properly

2018-08-31 Thread Yongseok Koh
> On Aug 28, 2018, at 8:52 PM, Jack Min wrote: > > On Tue, Aug 28, 2018 at 01:42:18PM -0700, Yongseok Koh wrote: >> On Fri, Aug 24, 2018 at 02:45:00PM +0800, Jack MIN wrote: >>> On Thu, Aug 23, 2018 at 02:08:09PM -0700, Yongseok Koh wrote: On Thu, Aug 23, 2018 at 02:38:51PM +0800, Xiaoyu M

Re: [dpdk-dev] [PATCH] eal: fix whitelists for hot plug devices

2018-08-31 Thread Gaëtan Rivet
Hi Tomasz, On Fri, Aug 31, 2018 at 08:42:59PM +0200, Tomasz Kulasek wrote: > Currently white/blacklists doesn't work for hotplugged devices. > Current behavior is the intended behavior. A blacklisted device, then hotplugged, should be probed. The current devargs management was designed to allow

[dpdk-dev] [PATCH] eal: fix whitelists for hot plug devices

2018-08-31 Thread Tomasz Kulasek
Currently white/blacklists doesn't work for hotplugged devices. This patch checks if device is on the blacklist before attempting to attach it. Fixes: a3ee360f4440 ("eal: add hotplug add/remove device") Cc: jblu...@infradead.org Signed-off-by: Tomasz Kulasek --- lib/librte_eal/common/eal_commo

[dpdk-dev] [PATCH 3/4] build: use same version as make showversion in Meson

2018-08-31 Thread Luca Boccassi
make showversion will print 18.11.0-rc0 but Meson sets 18.11-rc0, causing among other things a difference in the generated documentation. Fixes: 76b9d9de5c7d ("version: 18.11-rc0") Signed-off-by: Luca Boccassi --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m

[dpdk-dev] [PATCH 4/4] build: generate API documentation with Meson

2018-08-31 Thread Luca Boccassi
Both a configuration-time "enable_docs" boolean option and an optional 'ninja doc' target are available. Note that due to a Meson bug for now the latter will only build, but not install the files. Signed-off-by: Luca Boccassi --- doc/api/generate_doxygen.sh | 10 doc/api/meson.build

[dpdk-dev] [PATCH 2/4] mk: use templated doxygen config, modified on the fly

2018-08-31 Thread Luca Boccassi
This will allow the same config file to be used from Meson. The result has been verified to be identical via diffoscope. Signed-off-by: Luca Boccassi --- doc/api/doxy-api.conf| 87 doc/api/doxy-api.conf.in | 96 mk

[dpdk-dev] [PATCH 1/4] mk: use script to generate examples.dox

2018-08-31 Thread Luca Boccassi
This will make it possible to generate the file in the same way from Meson as well. Signed-off-by: Luca Boccassi --- doc/api/generate_examples.sh | 14 ++ mk/rte.sdkdoc.mk | 5 + 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100755 doc/api/generate_e

[dpdk-dev] [PATCH 0/4] Meson: build Doxygen documentation

2018-08-31 Thread Luca Boccassi
I have tested this by using diffoscope between the docs built by the makefiles and by this Meson patchset, and verified they are all identical. There are both a new "doc" target (ninja doc) and a configuration option. This is due to the following bug in Meson: https://github.com/mesonbuild/meson/i

Re: [dpdk-dev] [Bug 87] build dpdk and example with different gcc version issue

2018-08-31 Thread Jerin Jacob
-Original Message- > Date: Fri, 31 Aug 2018 11:04:06 +0100 > From: Ferruh Yigit > To: bugzi...@dpdk.org, dev@dpdk.org, Jerin Jacob > , Santosh Shukla > > CC: Ajit Khaparde , Thomas Monjalon > > Subject: Re: [dpdk-dev] [Bug 87] build dpdk and example with different gcc > version issue

Re: [dpdk-dev] [PATCH 0/5] netvsc changes for 18.11

2018-08-31 Thread Thomas Monjalon
31/08/2018 17:15, Stephen Hemminger: > On Fri, 31 Aug 2018 13:04:18 +0100 > Ferruh Yigit wrote: > > > On 8/30/2018 11:35 PM, Stephen Hemminger wrote: > > > These patches are against dpdk-net-next/master because > > > that is where previous patches have already been merged. > > > > > > Stephen He

[dpdk-dev] [PATCH v3] hash table: add an iterator over conflicting entries

2018-08-31 Thread Qiaobin Fu
Function rte_hash_iterate_conflict_entries() iterates over the entries that conflict with an incoming entry. Iterating over conflicting entries enables one to decide if the incoming entry is more valuable than the entries already in the hash table. This is particularly useful after an insertion fa

Re: [dpdk-dev] [PATCH v5] app/testpmd: add new command for show port info

2018-08-31 Thread Iremonger, Bernard
Hi Emma, > -Original Message- > From: Finn, Emma > Sent: Thursday, August 30, 2018 2:12 PM > To: dev@dpdk.org > Cc: Mcnamara, John ; Yigit, Ferruh > ; Iremonger, Bernard > ; step...@networkplumber.org; Finn, > Emma > Subject: [PATCH v5] app/testpmd: add new command for show port info > >

Re: [dpdk-dev] [PATCH] build: get version number from header file

2018-08-31 Thread Thomas Monjalon
31/08/2018 16:24, Bruce Richardson: > On Fri, Aug 31, 2018 at 03:10:42PM +0100, Luca Boccassi wrote: > > On Fri, 2018-08-31 at 15:51 +0200, Thomas Monjalon wrote: > > > The header file rte_version.h should be the unique place > > > to define the version number. > > > The makefile command "showversi

Re: [dpdk-dev] [PATCH v2] net/mlx: add meson build support

2018-08-31 Thread Luca Boccassi
On Wed, 2018-08-29 at 13:59 +0200, Nélio Laranjeiro wrote: > On Wed, Aug 29, 2018 at 11:00:54AM +0100, Luca Boccassi wrote: > > On Tue, 2018-08-28 at 16:45 +0100, Bruce Richardson wrote: > > > Thanks for this, comments inline below. > > > > > > /Bruce > > > > > > On Mon, Aug 27, 2018 at 02:42:25P

[dpdk-dev] [PATCH] net/failsafe: fix crash on slave queue release

2018-08-31 Thread Andrew Rybchenko
From: Igor Romanov Releasing a queue that is already released by slave may cause a segmentation fault. For example, after a successfull device configuration a queue is set up. Afterwards the device is reconfigured with an invalid argument, forcing slaves to release the queues (e.g. rte_eth_dev.da

[dpdk-dev] [PATCH 2/2] net/failsafe: support runtime Tx queues setup

2018-08-31 Thread Andrew Rybchenko
From: Ian Dolzhansky Signed-off-by: Ian Dolzhansky Signed-off-by: Andrew Rybchenko --- doc/guides/nics/features/failsafe.ini | 1 + doc/guides/rel_notes/release_18_11.rst | 2 +- drivers/net/failsafe/failsafe_ops.c| 9 ++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git

[dpdk-dev] [PATCH 1/2] net/failsafe: support runtime Rx queues setup

2018-08-31 Thread Andrew Rybchenko
From: Ian Dolzhansky Signed-off-by: Ian Dolzhansky Signed-off-by: Andrew Rybchenko --- doc/guides/nics/features/failsafe.ini | 1 + doc/guides/rel_notes/release_18_11.rst | 1 + drivers/net/failsafe/failsafe_intr.c | 2 +- drivers/net/failsafe/failsafe_ops.c| 8 ++-- 4 files changed

[dpdk-dev] [PATCH 0/2] net/failsafe: support runtime queue setup

2018-08-31 Thread Andrew Rybchenko
The patch series should be applied on top of [1] and [2]. [1] https://patches.dpdk.org/project/dpdk/list/?series=1082 [2] https://patches.dpdk.org/patch/43946/ Ian Dolzhansky (2): net/failsafe: support runtime Rx queues setup net/failsafe: support runtime Tx queues setup doc/guides/nics/fea

Re: [dpdk-dev] [dpdk-stable] [PATCH v4] net/bonding: per-slave intermediate rx ring

2018-08-31 Thread Luca Boccassi
On Wed, 2018-08-29 at 15:20 +, Matan Azrad wrote: > > From: Chas Williams > > On Tue, Aug 28, 2018 at 5:51 AM Matan Azrad > com> wrote: > > > > > > From: Chas Williams > > > On Mon, Aug 27, 2018 at 11:30 AM Matan Azrad > > @mellanox.com> wrote

[dpdk-dev] [PATCH 2/2] net/failsafe: support multicast address list set

2018-08-31 Thread Andrew Rybchenko
From: Evgeny Im Signed-off-by: Evgeny Im Signed-off-by: Andrew Rybchenko --- doc/guides/nics/features/failsafe.ini | 1 + doc/guides/rel_notes/release_18_11.rst | 6 drivers/net/failsafe/failsafe.c | 1 + drivers/net/failsafe/failsafe_ether.c | 17 + drivers/net/fa

[dpdk-dev] [PATCH 1/2] net/failsafe: remove not supported multicast MAC filter

2018-08-31 Thread Andrew Rybchenko
From: Evgeny Im set_mc_addr_list method is not implemented by the driver yet. Fixes: a46f8d584eb8 ("net/failsafe: add fail-safe PMD") Cc: sta...@dpdk.org Signed-off-by: Evgeny Im Signed-off-by: Andrew Rybchenko --- doc/guides/nics/features/failsafe.ini | 1 - 1 file changed, 1 deletion(-) d

[dpdk-dev] [PATCH 0/2] net/failsafe: support multicast MAC address set

2018-08-31 Thread Andrew Rybchenko
Evgeny Im (2): net/failsafe: remove not supported multicast MAC filter net/failsafe: support multicast address list set doc/guides/rel_notes/release_18_11.rst | 6 drivers/net/failsafe/failsafe.c | 1 + drivers/net/failsafe/failsafe_ether.c | 17 + drivers/net/failsa

Re: [dpdk-dev] [PATCH 0/5] netvsc changes for 18.11

2018-08-31 Thread Stephen Hemminger
On Fri, 31 Aug 2018 13:04:18 +0100 Ferruh Yigit wrote: > On 8/30/2018 11:35 PM, Stephen Hemminger wrote: > > These patches are against dpdk-net-next/master because > > that is where previous patches have already been merged. > > > > Stephen Hemminger (5): > > bus/vmbus: add devargs support > >

Re: [dpdk-dev] [PATCH 4/5] net/netvsc: implement link state change callback

2018-08-31 Thread Stephen Hemminger
On Fri, 31 Aug 2018 10:25:47 +0200 Gaëtan Rivet wrote: > Hi Stephen, > > On Thu, Aug 30, 2018 at 03:35:11PM -0700, Stephen Hemminger wrote: > > From: Stephen Hemminger > > > > Implement callback functionality on link state changes. > > This is not really driven off of interrupt file descriptor

Re: [dpdk-dev] to wait or not to wait.. DPDK & OVS ixgbe with fibre disconnected

2018-08-31 Thread Stephen Hemminger
On Wed, 29 Aug 2018 16:57:55 -0500 David Evans wrote: > Hi! > > We have a thread running on ovs discuss. - Can you contribute? > > regarding ixgbe_ethdev.c > > ixgbe_dev_link_update() doesn't honour wait_to_complete flag always. > > Basically, where you have 'wait_to_complete' set to 0, we

[dpdk-dev] [PATCH v6 2/4] examples/l3fwd-power: simple app update for new API

2018-08-31 Thread Liang Ma
Add the support for new traffic pattern aware power control power management API. Example: ./l3fwd-power -l xxx -n 4 -w :xx:00.0 -w :xx:00.1 -- -p 0x3 -P --config="(0,0,xx),(1,0,xx)" --empty-poll -l 14 -m 9 -h 1 Please Reference l3fwd-power document for all parameter except empty-poll

[dpdk-dev] [PATCH v6 4/4] doc/guides/sample_app_ug/l3_forward_power_man.rst: empty poll update

2018-08-31 Thread Liang Ma
add empty poll mode command line example Signed-off-by: Liang Ma --- doc/guides/sample_app_ug/l3_forward_power_man.rst | 21 + 1 file changed, 21 insertions(+) diff --git a/doc/guides/sample_app_ug/l3_forward_power_man.rst b/doc/guides/sample_app_ug/l3_forward_power_man.rst

[dpdk-dev] [PATCH v6 3/4] doc/guides/proguides/power-man: update the power API

2018-08-31 Thread Liang Ma
update the document for empty poll API. Signed-off-by: Liang Ma --- doc/guides/prog_guide/power_man.rst | 87 + 1 file changed, 87 insertions(+) diff --git a/doc/guides/prog_guide/power_man.rst b/doc/guides/prog_guide/power_man.rst index eba1cc6..d8a4ef7 100

[dpdk-dev] [PATCH v6 1/4] lib/librte_power: traffic pattern aware power control

2018-08-31 Thread Liang Ma
1. Abstract For packet processing workloads such as DPDK polling is continuous. This means CPU cores always show 100% busy independent of how much work those cores are doing. It is critical to accurately determine how busy a core is hugely important for the following reasons: * No indication o

[dpdk-dev] [PATCH 17.11] mem: fix max DMA maskbit size

2018-08-31 Thread Alejandro Lucero
The sanity check inside rte_eal_check_dma_mask is using 47 bits as the maximum size. It turns out there are some IOMMU hardware reporting 48 bits precluding the IOVA VA mode to be enabled. It is harmless to raise the maximum mask size to 63 bits. This patch also removes any reference to unused X8

Re: [dpdk-dev] [PATCH] build: get version number from header file

2018-08-31 Thread Bruce Richardson
On Fri, Aug 31, 2018 at 03:10:42PM +0100, Luca Boccassi wrote: > On Fri, 2018-08-31 at 15:51 +0200, Thomas Monjalon wrote: > > The header file rte_version.h should be the unique place > > to define the version number. > > The makefile command "showversion" makes it accessible, > > and it is used to

Re: [dpdk-dev] [PATCH] build: get version number from header file

2018-08-31 Thread Luca Boccassi
On Fri, 2018-08-31 at 15:51 +0200, Thomas Monjalon wrote: > The header file rte_version.h should be the unique place > to define the version number. > The makefile command "showversion" makes it accessible, > and it is used to set the meson project version with an external > command. > > Signed-of

Re: [dpdk-dev] 18.08 build error on ppc64el - bool as vector type

2018-08-31 Thread Alfredo Mendoza
I think Pradeep would be the correct person to answer about support for ppc64le Thanks, Freddie Mendoza IBM Systems and Technology Group STG ISV Enablement - Telco/Mobile (720) 395-4767 From: Thomas Monjalon To: Christian Ehrhardt , Gowrishankar Muthukrishnan , Chao Zhu , prad..

[dpdk-dev] to wait or not to wait.. DPDK & OVS ixgbe with fibre disconnected

2018-08-31 Thread David Evans
Hi! We have a thread running on ovs discuss. - Can you contribute? regarding ixgbe_ethdev.c ixgbe_dev_link_update() doesn't honour wait_to_complete flag always. Basically, where you have 'wait_to_complete' set to 0, we are still having to wait sometimes Dpdk is always attempting setup if intr

Re: [dpdk-dev] [PATCH] net/*/base: allow use of experimental APIs in base code

2018-08-31 Thread Andrew Rybchenko
On 08/31/2018 04:35 PM, Bruce Richardson wrote: The driver setting of "allow_experimental_apis" was not being used when building the base code. To allow this we can manually put in a check in the base code files for the setting and set the appropriate cflag if it's needed. Signed-off-by: Bruce R

Re: [dpdk-dev] [PATCH v1 5/7] examples/power: add json string handling

2018-08-31 Thread Hunt, David
On 30/8/2018 6:00 PM, Stephen Hemminger wrote: On Thu, 30 Aug 2018 11:54:20 +0100 David Hunt wrote: Add JSON string handling to vm_power_manager for JSON strings received through the fifo. The format of the JSON strings are detailed in the next patch, the vm_power_manager user guide documen

[dpdk-dev] [PATCH] build: get version number from header file

2018-08-31 Thread Thomas Monjalon
The header file rte_version.h should be the unique place to define the version number. The makefile command "showversion" makes it accessible, and it is used to set the meson project version with an external command. Signed-off-by: Thomas Monjalon --- I don't know how to check easily the meson v

Re: [dpdk-dev] [RFC 0/2] CPU non-blocking delay

2018-08-31 Thread Bruce Richardson
On Fri, Aug 31, 2018 at 03:45:15PM +0300, Ilya Maximets wrote: > Sending as RFC because I failed to force meson to > build without deprecation warnings. I tried a lot > of different combinations of 'allow_experimental_apis' > and '-DALLOW_EXPERIMENTAL_APIS' without success. > Any help appreciated.

[dpdk-dev] [PATCH] net/*/base: allow use of experimental APIs in base code

2018-08-31 Thread Bruce Richardson
The driver setting of "allow_experimental_apis" was not being used when building the base code. To allow this we can manually put in a check in the base code files for the setting and set the appropriate cflag if it's needed. Signed-off-by: Bruce Richardson --- drivers/net/e1000/base/meson.build

Re: [dpdk-dev] [RFC 0/2] CPU non-blocking delay

2018-08-31 Thread Bruce Richardson
On Fri, Aug 31, 2018 at 03:45:15PM +0300, Ilya Maximets wrote: > Sending as RFC because I failed to force meson to > build without deprecation warnings. I tried a lot > of different combinations of 'allow_experimental_apis' > and '-DALLOW_EXPERIMENTAL_APIS' without success. > Any help appreciated.

[dpdk-dev] [PATCH v3 8/8] net/mvneta: add reset statistics callback

2018-08-31 Thread Andrzej Ostruszka
From: Natalie Samsonov Add support for resetting of driver statistics. Signed-off-by: Natalie Samsonov --- drivers/net/mvneta/mvneta_ethdev.c | 40 +++--- drivers/net/mvneta/mvneta_ethdev.h | 1 + 2 files changed, 34 insertions(+), 7 deletions(-) diff --git a/

[dpdk-dev] [PATCH v3 7/8] net/mvneta: add support for basic stats

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add support for getting of basic statistics for the driver. Signed-off-by: Yelena Krivosheev Signed-off-by: Natalie Samsonov Signed-off-by: Zyta Szpak --- drivers/net/mvneta/mvneta_ethdev.c | 47 ++ 1 file changed, 47 insertions(+) diff -

[dpdk-dev] [PATCH v3 5/8] net/mvneta: support for promiscuous

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add callbacks for enabling/disabling of promiscuous mode. Signed-off-by: Yelena Krivosheev Signed-off-by: Zyta Szpak --- drivers/net/mvneta/mvneta_ethdev.c | 54 ++ 1 file changed, 54 insertions(+) diff --git a/drivers/net/mvneta/mvneta_et

[dpdk-dev] [PATCH v3 6/8] net/mvneta: add MAC filtering

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add callbacks for adding/removing MAC addresses. Signed-off-by: Yelena Krivosheev Signed-off-by: Natalie Samsonov Signed-off-by: Zyta Szpak --- drivers/net/mvneta/mvneta_ethdev.c | 69 ++ 1 file changed, 69 insertions(+) diff --git a/driv

[dpdk-dev] [PATCH v3 4/8] net/mvneta: add link update

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add callback for updating information about link status/info. Signed-off-by: Natalie Samsonov Signed-off-by: Zyta Szpak --- drivers/net/mvneta/mvneta_ethdev.c | 71 ++ 1 file changed, 71 insertions(+) diff --git a/drivers/net/mvneta/mvneta

[dpdk-dev] [PATCH v3 3/8] net/mvneta: support for setting of MTU

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add callback for setting of MTU. Signed-off-by: Natalie Samsonov Signed-off-by: Zyta Szpak --- drivers/net/mvneta/mvneta_ethdev.c | 78 ++ 1 file changed, 78 insertions(+) diff --git a/drivers/net/mvneta/mvneta_ethdev.c b/drivers/net/mvne

[dpdk-dev] [PATCH v3 2/8] net/mvneta: add Rx/Tx support

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add part of PMD for actual reception/transmission. Signed-off-by: Yelena Krivosheev Signed-off-by: Dmitri Epshtein Signed-off-by: Zyta Szpak --- drivers/net/mvneta/mvneta_ethdev.c | 791 + drivers/net/mvneta/mvneta_ethdev.h | 11 + 2 file

[dpdk-dev] [PATCH v3 1/8] net/mvneta: add neta PMD skeleton

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add neta pmd driver skeleton providing base for the further development. Signed-off-by: Natalie Samsonov Signed-off-by: Yelena Krivosheev Signed-off-by: Dmitri Epshtein Signed-off-by: Zyta Szpak Signed-off-by: Andrzej Ostruszka --- MAINTAINERS

[dpdk-dev] [PATCH v3 0/8] Add Marvell NETA PMD

2018-08-31 Thread Andrzej Ostruszka
This patch series introduces new PMD for Marvell NETA adapters (MVNETA). See the documentation for more info. It is split for easier reviewing. v3: No changes against v2, just resubmitting again to have clean patch set after my faulty format-patch. My apologies for the noise. v2: * fi

[dpdk-dev] [PATCH v2 5/5] net/nfp: support IOVA VA mode

2018-08-31 Thread Alejandro Lucero
NFP can handle IOVA as VA. It requires to check those IOVAs being in the supported range what is done during initialization. Signed-off-by: Alejandro Lucero --- drivers/net/nfp/nfp_net.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/nfp/nfp_net.c b/drivers

[dpdk-dev] [PATCH v2 4/5] net/nfp: check hugepages IOVAs based on DMA mask

2018-08-31 Thread Alejandro Lucero
NFP devices can not handle DMA addresses requiring more than 40 bits. This patch uses rte_dev_check_dma_mask with 40 bits and avoids device initialization if memory out of NFP range. Signed-off-by: Alejandro Lucero --- drivers/net/nfp/nfp_net.c | 8 1 file changed, 8 insertions(+) diff

[dpdk-dev] [PATCH v2 3/5] bus/pci: use IOVAs check when setting IOVA mode

2018-08-31 Thread Alejandro Lucero
Although VT-d emulation currently only supports 39 bits, it could be iovas being within that supported range. This patch allows IOVA mode in such a case. Indeed, memory initialization code can be modified for using lower virtual addresses than those used by the kernel for 64 bits processes by defa

[dpdk-dev] [PATCH v2 1/5] mem: add function for checking memsegs IOVAs addresses

2018-08-31 Thread Alejandro Lucero
A device can suffer addressing limitations. This functions checks memsegs have iovas within the supported range based on dma mask. PMD should use this during initialization if supported devices suffer addressing limitations, returning an error if this function returns memsegs out of range. Anothe

[dpdk-dev] [PATCH v2 2/5] mem: use address hint for mapping hugepages

2018-08-31 Thread Alejandro Lucero
Linux kernel uses a really high address as starting address for serving mmaps calls. If there exist addressing limitations and IOVA mode is VA, this starting address is likely too high for those devices. However, it is possible to use a lower address in the process virtual address space as with 64

[dpdk-dev] [PATCH v2 0/5] use IOVAs check based on DMA mask

2018-08-31 Thread Alejandro Lucero
I sent a patchset about this to be applied on 17.11 stable. The memory code has had main changes since that version, so here it is the patchset adjusted to current master repo. This patchset adds, mainly, a check for ensuring IOVAs are within a restricted range due to addressing limitations with s

[dpdk-dev] [RFC 2/2] drivers/net: use sleep delay by default for intel NICs

2018-08-31 Thread Ilya Maximets
NICs uses different delays up to a second during their configuration. It makes no sense to busy-wait so long wasting CPU cycles and preventing any other threads to execute on the same CPU core. These busy polling are the rudiments that came from the kernel drivers where you can not sleep in interru

[dpdk-dev] [RFC 1/2] eal: add nanosleep based delay function

2018-08-31 Thread Ilya Maximets
Add a new rte_delay_us_sleep() function that uses nanosleep(). This function can be used by applications to not implement their own nanosleep() based callback and by internal DPDK code if CPU non-blocking delay needed. Signed-off-by: Ilya Maximets --- lib/librte_eal/common/eal_common_timer.c

[dpdk-dev] [RFC 0/2] CPU non-blocking delay

2018-08-31 Thread Ilya Maximets
Sending as RFC because I failed to force meson to build without deprecation warnings. I tried a lot of different combinations of 'allow_experimental_apis' and '-DALLOW_EXPERIMENTAL_APIS' without success. Any help appreciated. Ilya Maximets (2): eal: add nanosleep based delay function drivers/n

[dpdk-dev] [PATCH] net/ixgbe: fix busy polling while fiber link update

2018-08-31 Thread Ilya Maximets
If the multispeed fiber link is in DOWN state, ixgbe_setup_link could take around a second of busy polling. This is highly inconvenient for the case where single thread periodically checks the link statuses. For example, OVS main thread periodically updates the link statuses and hangs for a really

Re: [dpdk-dev] [PATCH v2 1/8] net/bonding: fix buf corruption in packets

2018-08-31 Thread Andrzej Ostruszka
Please forgive me this particular patch - that was my mistake when sending. That was leftover from wrong format-patch that was picked by shell wildcard. Apologies for the noise. Best regards Andrzej

[dpdk-dev] [PATCH v2 7/8] net/mvneta: add support for basic stats

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add support for getting of basic statistics for the driver. Signed-off-by: Yelena Krivosheev Signed-off-by: Natalie Samsonov Signed-off-by: Zyta Szpak --- drivers/net/mvneta/mvneta_ethdev.c | 47 ++ 1 file changed, 47 insertions(+) diff -

[dpdk-dev] [PATCH v2 8/8] net/mvneta: add reset statistics callback

2018-08-31 Thread Andrzej Ostruszka
From: Natalie Samsonov Add support for resetting of driver statistics. Signed-off-by: Natalie Samsonov --- drivers/net/mvneta/mvneta_ethdev.c | 40 +++--- drivers/net/mvneta/mvneta_ethdev.h | 1 + 2 files changed, 34 insertions(+), 7 deletions(-) diff --git a/

[dpdk-dev] [PATCH v2 6/8] net/mvneta: add MAC filtering

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add callbacks for adding/removing MAC addresses. Signed-off-by: Yelena Krivosheev Signed-off-by: Natalie Samsonov Signed-off-by: Zyta Szpak --- drivers/net/mvneta/mvneta_ethdev.c | 69 ++ 1 file changed, 69 insertions(+) diff --git a/driv

[dpdk-dev] [PATCH v2 3/8] net/mvneta: add Rx/Tx support

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add part of PMD for actual reception/transmission. Signed-off-by: Yelena Krivosheev Signed-off-by: Dmitri Epshtein Signed-off-by: Zyta Szpak --- drivers/net/mvneta/mvneta_ethdev.c | 791 + drivers/net/mvneta/mvneta_ethdev.h | 11 + 2 file

[dpdk-dev] [PATCH v2 4/8] net/mvneta: support for setting of MTU

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add callback for setting of MTU. Signed-off-by: Natalie Samsonov Signed-off-by: Zyta Szpak --- drivers/net/mvneta/mvneta_ethdev.c | 149 + 1 file changed, 149 insertions(+) diff --git a/drivers/net/mvneta/mvneta_ethdev.c b/drivers/net/mvn

[dpdk-dev] [PATCH v2 5/8] net/mvneta: support for promiscuous

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add callbacks for enabling/disabling of promiscuous mode. Signed-off-by: Yelena Krivosheev Signed-off-by: Zyta Szpak --- drivers/net/mvneta/mvneta_ethdev.c | 54 ++ 1 file changed, 54 insertions(+) diff --git a/drivers/net/mvneta/mvneta_et

[dpdk-dev] [PATCH v2 3/8] net/mvneta: support for setting of MTU

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add callback for setting of MTU. Signed-off-by: Natalie Samsonov Signed-off-by: Zyta Szpak --- drivers/net/mvneta/mvneta_ethdev.c | 78 ++ 1 file changed, 78 insertions(+) diff --git a/drivers/net/mvneta/mvneta_ethdev.c b/drivers/net/mvne

[dpdk-dev] [PATCH v2 4/8] net/mvneta: add link update

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add callback for updating information about link status/info. Signed-off-by: Natalie Samsonov Signed-off-by: Zyta Szpak --- drivers/net/mvneta/mvneta_ethdev.c | 71 ++ 1 file changed, 71 insertions(+) diff --git a/drivers/net/mvneta/mvneta

[dpdk-dev] [PATCH v2 2/8] net/mvneta: add Rx/Tx support

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add part of PMD for actual reception/transmission. Signed-off-by: Yelena Krivosheev Signed-off-by: Dmitri Epshtein Signed-off-by: Zyta Szpak --- drivers/net/mvneta/mvneta_ethdev.c | 791 + drivers/net/mvneta/mvneta_ethdev.h | 11 + 2 file

[dpdk-dev] [PATCH v2 2/8] net/mvneta: add neta PMD skeleton

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add neta pmd driver skeleton providing base for the further development. Signed-off-by: Natalie Samsonov Signed-off-by: Yelena Krivosheev Signed-off-by: Dmitri Epshtein Signed-off-by: Zyta Szpak Signed-off-by: Andrzej Ostruszka --- MAINTAINERS

[dpdk-dev] [PATCH v2 1/8] net/mvneta: add neta PMD skeleton

2018-08-31 Thread Andrzej Ostruszka
From: Zyta Szpak Add neta pmd driver skeleton providing base for the further development. Signed-off-by: Natalie Samsonov Signed-off-by: Yelena Krivosheev Signed-off-by: Dmitri Epshtein Signed-off-by: Zyta Szpak Signed-off-by: Andrzej Ostruszka --- MAINTAINERS

[dpdk-dev] [PATCH v2 1/8] net/bonding: fix buf corruption in packets

2018-08-31 Thread Andrzej Ostruszka
From: Jia Yu When bond slave devices cannot transmit all packets in bufs array, tx_burst callback shall merge the un-transmitted packets back to bufs array. Recent merge logic introduced a bug which causes invalid mbuf addresses being written to bufs array. When caller frees the un-transmitted pa

[dpdk-dev] [PATCH v2 0/8] Add Marvell NETA PMD

2018-08-31 Thread Andrzej Ostruszka
This patch series introduces new PMD for Marvell NETA adapters (MVNETA). See the documentation for more info. It is split for easier reviewing. v2: * fixed couple of checkpatch warnings * removed '\n' from MVNETA_LOG invocations (appended by the macro) * removed unused MVNETA_MUSDK_DMA_MEMS

Re: [dpdk-dev] [PATCH v1 12/13] ethdev: process declarative eth devargs

2018-08-31 Thread Gaëtan Rivet
On Fri, Aug 31, 2018 at 01:10:48PM +0300, Andrew Rybchenko wrote: > On 08/30/2018 04:42 PM, Gaetan Rivet wrote: > > Process the class-specific arguments in a devargs. > > This processing takes the form of setting the proper eth_dev fields when > > relevant. > > > > Signed-off-by: Gaetan Rivet > >

Re: [dpdk-dev] [PATCH 0/5] netvsc changes for 18.11

2018-08-31 Thread Ferruh Yigit
On 8/30/2018 11:35 PM, Stephen Hemminger wrote: > These patches are against dpdk-net-next/master because > that is where previous patches have already been merged. > > Stephen Hemminger (5): > bus/vmbus: add devargs support > net/netvsc: allow tuning latency with devargs > net/netvsc: exhaus

Re: [dpdk-dev] [PATH 0/5] use IOVAs check based on DMA mask

2018-08-31 Thread Alejandro Lucero
There is a problem with the patch due to a last-hour change regarding MAX_DMA_MASK_BITS. It turns out initial X86_VA_WIDTH definition was to 47 bits, but it is not enough in some systems leading to IOVA VA not available. Because MAX_DMA_MASK_BITS was just used for a sanity check about the mask leng

Re: [dpdk-dev] [PATCH v3 0/7] ethdev: add flow API object converter

2018-08-31 Thread Nélio Laranjeiro
On Fri, Aug 31, 2018 at 11:00:57AM +0200, Adrien Mazarguil wrote: > This is a follow up to the "Flow API helpers enhancements" series submitted > almost a year ago [1]. The new title is due to the reduced scope of this > version. > > rte_flow_conv() is a flexible replacement to rte_flow_copy(), it

[dpdk-dev] [PATCH v2] net/i40e: add interface to choose latest vector path

2018-08-31 Thread Xiaoyun Li
Right now, vector path is limited to only use on later platform due to the frequency penalty. This patch adds a devarg enable-latest-vec to allow the users to use the latest vector path that the platform supported. Namely, using AVX2 vector path on broadwell is possible. Signed-off-by: Xiaoyun Li

Re: [dpdk-dev] [PATCH v2 4/4] build: install igb_uio kernel module when building with Meson

2018-08-31 Thread Bruce Richardson
On Fri, Aug 31, 2018 at 11:41:54AM +0100, Luca Boccassi wrote: > Install in $kerneldir/../extra/dpdk. Usually $kerneldir should something > like: /lib/modules/$kver/build, so this directory will match the default > one used by legacy makefiles. > > Fixes: a52f4574f798 ("igb_uio: build with meson")

Re: [dpdk-dev] [PATCH v2 3/4] build: use -Wno-error=format-security for Meson i40e build

2018-08-31 Thread Bruce Richardson
On Fri, Aug 31, 2018 at 11:41:53AM +0100, Luca Boccassi wrote: > This PMD is built with -Wno-format, which means GCC errors out if > -Wformat-security is used. > > Fixes: e940646b20fa ("drivers/net: build Intel NIC PMDs with meson") > > Signed-off-by: Luca Boccassi Acked-by: Bruce Richardson

Re: [dpdk-dev] [PATCH v2 2/4] build: use -Wno-error=format-security for Meson ifpga_rawdev build

2018-08-31 Thread Bruce Richardson
On Fri, Aug 31, 2018 at 11:41:52AM +0100, Luca Boccassi wrote: > This PMD is built with -Wno-format, which means GCC errors out if > -Wformat-security is used. > > Fixes: 56bb54ea1bdf ("raw/ifpga/base: add Intel FPGA OPAE share code") > > Signed-off-by: Luca Boccassi Acked-by: Bruce Richardson

Re: [dpdk-dev] [PATCH v2 1/4] build: include missing hypervisor files in Meson build

2018-08-31 Thread Bruce Richardson
On Fri, Aug 31, 2018 at 11:41:51AM +0100, Luca Boccassi wrote: > They are built by the legacy makefiles but not by Meson. > > Fixes: 8f40ee0734c8 ("eal/x86: get hypervisor name") > > Signed-off-by: Luca Boccassi Acked-by: Bruce Richardson

[dpdk-dev] [PATCH 1/2] app/test-eventdev: fix minor typos

2018-08-31 Thread Pavan Nikhilesh
Fix minor typos. Fixes: 314bcf58ca8f("app/eventdev: add pipeline queue worker functions") Signed-off-by: Pavan Nikhilesh --- This patchset depends on the Tx adapter series http://patches.dpdk.org/project/dpdk/list/?series=1121 app/test-eventdev/test_pipeline_atq.c| 16 a

[dpdk-dev] [PATCH 2/2] app/test-eventdev: add Tx adapter support

2018-08-31 Thread Pavan Nikhilesh
Convert existing Tx service based pipeline to Tx adapter based APIs and simplify worker functions. Signed-off-by: Pavan Nikhilesh --- app/test-eventdev/test_pipeline_atq.c| 216 +++- app/test-eventdev/test_pipeline_common.c | 193 ++ app/test-eventdev/test_pip

[dpdk-dev] [PATCH v2 3/4] build: use -Wno-error=format-security for Meson i40e build

2018-08-31 Thread Luca Boccassi
This PMD is built with -Wno-format, which means GCC errors out if -Wformat-security is used. Fixes: e940646b20fa ("drivers/net: build Intel NIC PMDs with meson") Signed-off-by: Luca Boccassi --- v2: re-arranged flags drivers/net/i40e/base/meson.build | 4 ++-- 1 file changed, 2 insertions(+),

[dpdk-dev] [PATCH v2 1/4] build: include missing hypervisor files in Meson build

2018-08-31 Thread Luca Boccassi
They are built by the legacy makefiles but not by Meson. Fixes: 8f40ee0734c8 ("eal/x86: get hypervisor name") Signed-off-by: Luca Boccassi --- lib/librte_eal/common/arch/arm/meson.build | 2 +- lib/librte_eal/common/arch/x86/meson.build | 2 +- lib/librte_eal/common/meson.build | 2 ++

[dpdk-dev] [PATCH v2 4/4] build: install igb_uio kernel module when building with Meson

2018-08-31 Thread Luca Boccassi
Install in $kerneldir/../extra/dpdk. Usually $kerneldir should something like: /lib/modules/$kver/build, so this directory will match the default one used by legacy makefiles. Fixes: a52f4574f798 ("igb_uio: build with meson") Signed-off-by: Luca Boccassi --- v2: fixed DEST_DIR in option help tex

[dpdk-dev] [PATCH v2 2/4] build: use -Wno-error=format-security for Meson ifpga_rawdev build

2018-08-31 Thread Luca Boccassi
This PMD is built with -Wno-format, which means GCC errors out if -Wformat-security is used. Fixes: 56bb54ea1bdf ("raw/ifpga/base: add Intel FPGA OPAE share code") Signed-off-by: Luca Boccassi --- v2: re-arranged flags drivers/raw/ifpga_rawdev/base/meson.build | 4 ++-- 1 file changed, 2 inser

Re: [dpdk-dev] [PATCH 2/4] build: use -Wno-error=format-security for Meson ifpga_rawdev build

2018-08-31 Thread Luca Boccassi
On Fri, 2018-08-31 at 11:17 +0100, Bruce Richardson wrote: > On Fri, Aug 31, 2018 at 10:20:27AM +0100, Luca Boccassi wrote: > > This PMD is built with -Wno-format, which means GCC errors out if > > -Wformat-security is used. > > > > Fixes: 56bb54ea1bdf ("raw/ifpga/base: add Intel FPGA OPAE share >

[dpdk-dev] [PATCH] event/octeontx: add Tx adapter support

2018-08-31 Thread Pavan Nikhilesh
Add Tx adapter support and move few routines around to avoid code duplication. Signed-off-by: Pavan Nikhilesh --- This patch depends on the Tx adapter series http://patches.dpdk.org/project/dpdk/list/?series=1121 drivers/event/octeontx/ssovf_evdev.c | 80 +++ drivers/

Re: [dpdk-dev] [PATCH v1 05/13] ethdev: add private generic device iterator

2018-08-31 Thread Gaëtan Rivet
On Fri, Aug 31, 2018 at 01:09:34PM +0300, Andrew Rybchenko wrote: > On 08/30/2018 04:41 PM, Gaetan Rivet wrote: > > This iterator can be customized with a comparison function that will > > trigger a stopping condition. > > > > It can be leveraged to write several different iterators that have > >

  1   2   >