[dpdk-dev] [PATCH v5 02/10] net/softnic: add meter profile

2018-09-26 Thread Jasvinder Singh
Implement meter profile add function. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic.c | 3 + .../net/softnic/rte_eth_softnic_internals.h | 31 + drivers/net/softnic/rte_eth_softnic_meter.c | 122 +- 3 files changed, 155 insertions(+), 1

[dpdk-dev] [PATCH v5 01/10] net/softnic: add metering and policing support

2018-09-26 Thread Jasvinder Singh
Enable metering and policing support for softnic. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/Makefile | 1 + drivers/net/softnic/meson.build | 1 + drivers/net/softnic/rte_eth_softnic.c | 10 ++ .../net/softnic/rte_eth_softnic_internals.h

[dpdk-dev] [PATCH v5 00/10] net/softnic: implement metering and policing API

2018-09-26 Thread Jasvinder Singh
This series is prepared on top of following patchset; https://mails.dpdk.org/archives/dev/2018-September/111379.html v5 changes - fix wrong parameter in memcpy for table meter profile update v4 changes - introduce the table meter profile check in softnic pipeline table meter profile add funct

[dpdk-dev] [PATCH v5 03/10] net/softnic: delete meter profile

2018-09-26 Thread Jasvinder Singh
Implement meter profile delete function. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic_meter.c | 35 - 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/drivers/net/softnic/rte_eth_softnic_meter.c b/drivers/net/softnic/rte_eth_softnic_met

[dpdk-dev] [PATCH v5 04/10] net/softnic: create meter object

2018-09-26 Thread Jasvinder Singh
implement meter object create function. Signed-off-by: Jasvinder Singh --- .../net/softnic/rte_eth_softnic_internals.h | 15 +++ drivers/net/softnic/rte_eth_softnic_meter.c | 123 +- 2 files changed, 137 insertions(+), 1 deletion(-) diff --git a/drivers/net/softnic/rte_eth_

[dpdk-dev] [PATCH v5 06/10] net/softnic: update meter profile

2018-09-26 Thread Jasvinder Singh
Implement meter profile update function Signed-off-by: Jasvinder Singh --- .../net/softnic/rte_eth_softnic_internals.h | 14 +++ drivers/net/softnic/rte_eth_softnic_meter.c | 103 +- .../net/softnic/rte_eth_softnic_pipeline.c| 25 + drivers/net/softnic/rte_eth_softn

[dpdk-dev] [PATCH v5 07/10] net/softnic: update dscp table

2018-09-26 Thread Jasvinder Singh
Implement meter object dscp table update. Signed-off-by: Jasvinder Singh --- .../net/softnic/rte_eth_softnic_internals.h | 1 + drivers/net/softnic/rte_eth_softnic_meter.c | 54 ++- .../net/softnic/rte_eth_softnic_pipeline.c| 1 + drivers/net/softnic/rte_eth_softnic_thr

[dpdk-dev] [PATCH v5 08/10] net/softnic: update policer actions

2018-09-26 Thread Jasvinder Singh
Implement meter object policer actions function. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic_meter.c | 91 - 1 file changed, 90 insertions(+), 1 deletion(-) diff --git a/drivers/net/softnic/rte_eth_softnic_meter.c b/drivers/net/softnic/rte_eth_sof

[dpdk-dev] [PATCH v5 05/10] net/softnic: destroy meter object

2018-09-26 Thread Jasvinder Singh
Implement meter object destroy function. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic_meter.c | 49 - 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/drivers/net/softnic/rte_eth_softnic_meter.c b/drivers/net/softnic/rte_eth_softnic_met

[dpdk-dev] [PATCH v5 09/10] net/softnic: meter stats read

2018-09-26 Thread Jasvinder Singh
Implement meter object stats read function. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic_meter.c | 136 +++- 1 file changed, 135 insertions(+), 1 deletion(-) diff --git a/drivers/net/softnic/rte_eth_softnic_meter.c b/drivers/net/softnic/rte_eth_softnic

[dpdk-dev] [PATCH v5 10/10] net/softnic: enable flow rule with meter action

2018-09-26 Thread Jasvinder Singh
Implement flow rules with meter action. Signed-off-by: Jasvinder Singh --- drivers/net/softnic/rte_eth_softnic_flow.c | 155 - 1 file changed, 154 insertions(+), 1 deletion(-) diff --git a/drivers/net/softnic/rte_eth_softnic_flow.c b/drivers/net/softnic/rte_eth_softnic_flow

[dpdk-dev] [PATCH v2] test: restructure and cleanup ring PMD test

2018-09-26 Thread Jananee Parthasarathy
From: Chaitanya Babu Talluri Divided main test to smaller logical tests. Registered with UT framework. Added cleanup of the resources else ring creation fails during consecutive test runs. Freed the allocated mempool, rings and uninitalized the drivers. Signed-off-by: Chaitanya Babu Talluri Rev

Re: [dpdk-dev] secondary processes and private data

2018-09-26 Thread Thomas Monjalon
Hi Alejandro, 25/09/2018 16:10, Alejandro Lucero: > I've a problem when part of device private data needs to be private per > process. It appears we are facing the same issue to support multi-process in tap. > Current multiprocess support shares device private data between primary and > secondar

Re: [dpdk-dev] [PATCH v2] kni: dynamically allocate memory for each KNI

2018-09-26 Thread Igor Ryzhov
Hi Ferruh, Will fix it today. Igor On Wed, Sep 26, 2018 at 1:41 PM Ferruh Yigit wrote: > On 9/23/2018 8:12 PM, Igor Ryzhov wrote: > > Long time ago preallocation of memory for KNI was introduced in commit > > 0c6bc8e. It was done because of lack of ability to free previously > > allocated memz

[dpdk-dev] [PATCH v4 0/11] add json power policy interface for containers

2018-09-26 Thread David Hunt
The current vm_power_manager example app has the capability to accept power policies from virtual machines via virtio-serial channels. These power policies allow a virtual machine to give information to the power manager to allow the power manager take care of the power management of the virtual m

[dpdk-dev] [PATCH v4 02/11] examples/power: allow for number of vms to be zero

2018-09-26 Thread David Hunt
Previously the vm_power_manager app required to have some vms defined, so the call to get_all_vm() always set the noVms variable. Now we're accepting policies from the host OS (without any VMs defined), so it is now valid to have zero VMs. This patch initialises the relevant variables to zero just

[dpdk-dev] [PATCH v4 01/11] examples/power: add checks around hypervisor

2018-09-26 Thread David Hunt
Allow vm_power_manager to run without requiring qemu to be present on the machine. This will be required for instances where the JSON interface is used for commands and polices, without any VMs present. A use case for this is a container enviromnent. Signed-off-by: David Hunt --- examples/vm_pow

[dpdk-dev] [PATCH v4 03/11] lib/power: add changes for host commands/policies

2018-09-26 Thread David Hunt
This patch does a couple of things: * Adds a new message type for removing policies (PKT_POLICY_REMOVE) Used when we want to remove a previously created policy. * Adds a core_type bool to the channel packet struct to specify whether the type of core we want to control is cirtual or phys

[dpdk-dev] [PATCH v4 04/11] examples/power: add necessary changes to guest app

2018-09-26 Thread David Hunt
The changes here are minimal, as the guest app functionality is not changing at all, but there is a new element in the channel_packet struct that needs to have a default set (channel_packet->core_type). Signed-off-by: David Hunt Acked-by: Anatoly Burakov --- examples/vm_power_manager/guest_cli/

[dpdk-dev] [PATCH v4 08/11] examples/power: clean up verbose messages

2018-09-26 Thread David Hunt
Some messages appearing several times a second, removing as they are unnecessary. Other less severe messages change from INFO to DEBUG Signed-off-by: David Hunt --- examples/vm_power_manager/channel_monitor.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git

[dpdk-dev] [PATCH v4 05/11] examples/power: add host channel to power manager

2018-09-26 Thread David Hunt
This patch adds a fifo channel to the vm_power_manager app through which we can send commands and polices. Intended for sending JSON strings. The fifo is at /tmp/powermonitor/fifo Signed-off-by: David Hunt --- examples/vm_power_manager/channel_manager.c | 109 +++ examples/vm_power_m

[dpdk-dev] [PATCH v4 06/11] examples/power: increase allowed number of clients

2018-09-26 Thread David Hunt
Now that we're handling host policies, containers and virtual machines, we'll rename MAX_VMS to MAX_CLIENTS, and increase from 4 to 64 Signed-off-by: David Hunt --- examples/vm_power_manager/channel_manager.h | 4 ++-- examples/vm_power_manager/channel_monitor.c | 10 +- 2 files changed

[dpdk-dev] [PATCH v4 07/11] examples/power: add json string handling

2018-09-26 Thread David Hunt
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 documentation updates. This patch introduces a new dependency on Jansson, a C library for encoding, decoding and m

[dpdk-dev] [PATCH v4 09/11] examples/power: add meson/ninja build support

2018-09-26 Thread David Hunt
Add meson.build in vm_power_manager and the guest_cli subdirectory. Building can be achieved by going to the build directory, and using meson configure -Dexamples=vm_power_manager,vm_power_manager/guest_cli Then, when ninja is invoked, it will build dpdk-vm_power_manger and dpdk-guest_cli Work s

[dpdk-dev] [PATCH v4 11/11] examples/power: add json example files

2018-09-26 Thread David Hunt
This patch provides some example files in the json_examples sub-directory for sending to the fifo. Signed-off-by: David Hunt --- examples/vm_power_manager/json_examples/README| 6 ++ examples/vm_power_manager/json_examples/create.json | 8 examples/vm_power_manager

[dpdk-dev] [PATCH v4 10/11] doc/vm_power_manager: add JSON interface API info

2018-09-26 Thread David Hunt
Also added meson/ninja build info Signed-off-by: David Hunt --- .../sample_app_ug/vm_power_management.rst | 272 +- 1 file changed, 270 insertions(+), 2 deletions(-) diff --git a/doc/guides/sample_app_ug/vm_power_management.rst b/doc/guides/sample_app_ug/vm_power_management

[dpdk-dev] [PATCH] net/nfp: fix RSS

2018-09-26 Thread Alejandro Lucero
Three problems are fixed in this patch: - RSS capabilities not advertised properly - RSS configuration just done for some RSS types - RSS hash match reported for just some RSS types Fixes: 934e4c60fbff ("nfp: add RSS") Cc: sta...@dpdk.org Signed-off-by: Alejandro Lucero --- drivers/net/nfp/

Re: [dpdk-dev] secondary processes and private data

2018-09-26 Thread Alejandro Lucero
Yes, I agree. On Wed, Sep 26, 2018 at 2:21 PM Thomas Monjalon wrote: > Hi Alejandro, > > 25/09/2018 16:10, Alejandro Lucero: > > I've a problem when part of device private data needs to be private per > > process. > > It appears we are facing the same issue to support multi-process in tap. > > >

Re: [dpdk-dev] [PATCH] bus/pci: fix unexpected resource mapping override

2018-09-26 Thread Thomas Monjalon
Hi, 03/09/2018 10:40, Qi Zhang: > When scanning an already plugged device, the virtual address > of mapped PCI resource in rte_pci_device will be overridden > with 0, that may cause driver does not work correctly. Why is it overridden with 0? Can we try to fix the root cause? > The fix is not to

Re: [dpdk-dev] [PATCH v6 0/5] vhost: vhost_user.c code cleanup

2018-09-26 Thread Maxime Coquelin
Hi Nikolay, On 09/24/2018 10:16 PM, Nikolay Nikolaev wrote: vhost: vhost_user.c code cleanup This patchesries introduce a set of code redesigns in vhost_user.c. The goal is to unify and simplify vhost-user message handling. The patches do not intend to introduce any functional changes. v6 cha

Re: [dpdk-dev] [PATCH v4 01/11] examples/power: add checks around hypervisor

2018-09-26 Thread Burakov, Anatoly
On 26-Sep-18 2:40 PM, David Hunt wrote: Allow vm_power_manager to run without requiring qemu to be present on the machine. This will be required for instances where the JSON interface is used for commands and polices, without any VMs present. A use case for this is a container enviromnent. Signe

Re: [dpdk-dev] [PATCH v4 02/11] examples/power: allow for number of vms to be zero

2018-09-26 Thread Burakov, Anatoly
On 26-Sep-18 2:40 PM, David Hunt wrote: Previously the vm_power_manager app required to have some vms defined, so the call to get_all_vm() always set the noVms variable. Now we're accepting policies from the host OS (without any VMs defined), so it is now valid to have zero VMs. This patch initia

Re: [dpdk-dev] [PATCH v4 03/11] lib/power: add changes for host commands/policies

2018-09-26 Thread Burakov, Anatoly
On 26-Sep-18 2:40 PM, David Hunt wrote: This patch does a couple of things: * Adds a new message type for removing policies (PKT_POLICY_REMOVE) Used when we want to remove a previously created policy. * Adds a core_type bool to the channel packet struct to specify whether the type

Re: [dpdk-dev] [PATCH v2 1/5] kni: add API to set link status on kernel interface

2018-09-26 Thread Ferruh Yigit
On 9/19/2018 8:55 PM, Dan Gora wrote: > Add a new API function to KNI, rte_kni_update_link() to allow DPDK > applications to update the link status for KNI network interfaces in > the linux kernel. > > Signed-off-by: Dan Gora <...> > +int __rte_experimental > +rte_kni_update_link(struct rte_kni

Re: [dpdk-dev] [PATCH v2 2/5] kni: set default carrier state to 'off'

2018-09-26 Thread Ferruh Yigit
On 9/19/2018 8:55 PM, Dan Gora wrote: > Set the carrier state to 'off' when the interface is instantiated > or when it is marked 'up' or 'down'. This is necessary to set the > interface to a known operational state until the carrier state is > changed with rte_kni_update_link(). > > Signed-off-by

Re: [dpdk-dev] [PATCH v2 3/5] examples/kni: monitor and update link status continually

2018-09-26 Thread Ferruh Yigit
On 9/19/2018 8:55 PM, Dan Gora wrote: > Update KNI example to continuously monitor the Ethernet link status of > the physical link and update the carrier status of the corresponding > interfaces with rte_kni_update_link(). > > Signed-off-by: Dan Gora Also this patch sets kni interfaces "up", ple

Re: [dpdk-dev] [PATCH v2 4/5] examples/kni: add log msgs to show and clear stats

2018-09-26 Thread Ferruh Yigit
On 9/19/2018 8:55 PM, Dan Gora wrote: > Add logging messages showing the commands necessary for the user to > have the application display and zero the statistics. > > Signed-off-by: Dan Gora Acked-by: Ferruh Yigit

Re: [dpdk-dev] [PATCH v2 5/5] examples/kni: improve zeroing statistics

2018-09-26 Thread Ferruh Yigit
On 9/19/2018 8:55 PM, Dan Gora wrote: > The worker threads incrementing the rx/tx_packets race with the signal > handler from the main thread zeroing the entire statistics structure. > This can cause the statistics to fail to be zeroed, even when there > is no traffic on those interfaces. > > Impr

[dpdk-dev] [PATCH] test: reduce test duration for efd autotest

2018-09-26 Thread Jananee Parthasarathy
Reduced test time for efd_autotest. Key length is updated, invoke times of random function is reduced. Signed-off-by: Jananee Parthasarathy --- test/test/test_efd.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/test/test/test_efd.c b/test/test/test_efd.c i

Re: [dpdk-dev] [PATCH v4 05/11] examples/power: add host channel to power manager

2018-09-26 Thread Burakov, Anatoly
On 26-Sep-18 2:40 PM, David Hunt wrote: This patch adds a fifo channel to the vm_power_manager app through which we can send commands and polices. Intended for sending JSON strings. The fifo is at /tmp/powermonitor/fifo Signed-off-by: David Hunt --- Acked-by: Anatoly Burakov -- Thanks, Anat

Re: [dpdk-dev] [PATCH v4 06/11] examples/power: increase allowed number of clients

2018-09-26 Thread Burakov, Anatoly
On 26-Sep-18 2:40 PM, David Hunt wrote: Now that we're handling host policies, containers and virtual machines, we'll rename MAX_VMS to MAX_CLIENTS, and increase from 4 to 64 Signed-off-by: David Hunt --- Acked-by: Anatoly Burakov -- Thanks, Anatoly

Re: [dpdk-dev] [PATCH v4 07/11] examples/power: add json string handling

2018-09-26 Thread Burakov, Anatoly
On 26-Sep-18 2:40 PM, 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 documentation updates. This patch introduces a new dependency on Jansson

Re: [dpdk-dev] [PATCH v4 08/11] examples/power: clean up verbose messages

2018-09-26 Thread Burakov, Anatoly
On 26-Sep-18 2:40 PM, David Hunt wrote: Some messages appearing several times a second, removing as they are unnecessary. Other less severe messages change from INFO to DEBUG Signed-off-by: David Hunt --- Acked-by: Anatoly Burakov -- Thanks, Anatoly

Re: [dpdk-dev] [PATCH v4 10/11] doc/vm_power_manager: add JSON interface API info

2018-09-26 Thread Kovacevic, Marko
> Also added meson/ninja build info > > Signed-off-by: David Hunt > --- > .../sample_app_ug/vm_power_management.rst | 272 > +- Acked-by: Marko Kovacevic

Re: [dpdk-dev] secondary processes and private data

2018-09-26 Thread Stephen Hemminger
On Wed, 26 Sep 2018 15:21:52 +0200 Thomas Monjalon wrote: > Hi Alejandro, > > 25/09/2018 16:10, Alejandro Lucero: > > I've a problem when part of device private data needs to be private per > > process. > > It appears we are facing the same issue to support multi-process in tap. > > > Curren

[dpdk-dev] [PATCH] doc: fix typos in the flow API guide

2018-09-26 Thread Ilya Maximets
Fixes: 3e0ceb9f17ff ("doc: add basic howto for flow API") Cc: sta...@dpdk.org Signed-off-by: Ilya Maximets --- doc/guides/howto/rte_flow.rst | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/guides/howto/rte_flow.rst b/doc/guides/howto/rte_flow.rst index c71152

Re: [dpdk-dev] [PATCH 0/4] Address reader-writer concurrency in rte_hash

2018-09-26 Thread Honnappa Nagarahalli
Hi Bruce/Pablo, I need to get this into 18.11, appreciate any review/feedback soon. Thank you, Honnappa > -Original Message- > From: Honnappa Nagarahalli > Sent: Friday, September 14, 2018 4:19 PM > To: Honnappa Nagarahalli ; > bruce.richard...@intel.com; pablo.de.lara.gua...@intel.co

Re: [dpdk-dev] [PATCH v2 5/5] examples/kni: improve zeroing statistics

2018-09-26 Thread Dan Gora
On Wed, Sep 26, 2018 at 11:01 AM, Ferruh Yigit wrote: > On 9/19/2018 8:55 PM, Dan Gora wrote: >> The worker threads incrementing the rx/tx_packets race with the signal >> handler from the main thread zeroing the entire statistics structure. >> This can cause the statistics to fail to be zeroed, ev

Re: [dpdk-dev] [PATCH v2 1/5] kni: add API to set link status on kernel interface

2018-09-26 Thread Dan Gora
On Wed, Sep 26, 2018 at 10:59 AM, Ferruh Yigit wrote: > On 9/19/2018 8:55 PM, Dan Gora wrote: >> Add a new API function to KNI, rte_kni_update_link() to allow DPDK >> applications to update the link status for KNI network interfaces in >> the linux kernel. >> >> Signed-off-by: Dan Gora > > <...>

Re: [dpdk-dev] [PATCH v5 21/21] doc: add external memory feature to programmer's guide

2018-09-26 Thread Kovacevic, Marko
> Add a short chapter on usage of external memory in DPDK to the > Programmer's Guide. > > Signed-off-by: Anatoly Burakov > --- > .../prog_guide/env_abstraction_layer.rst | 37 +++ > 1 file changed, 37 insertions(+) > +The expected workflow is as follows: > + > +* Get a poi

Re: [dpdk-dev] secondary processes and private data

2018-09-26 Thread Alejandro Lucero
On Wed, Sep 26, 2018 at 3:33 PM Stephen Hemminger < step...@networkplumber.org> wrote: > On Wed, 26 Sep 2018 15:21:52 +0200 > Thomas Monjalon wrote: > > > Hi Alejandro, > > > > 25/09/2018 16:10, Alejandro Lucero: > > > I've a problem when part of device private data needs to be private per > > >

Re: [dpdk-dev] [PATCH 04/12] vhost: introduce postcopy's advise message

2018-09-26 Thread Alejandro Lucero
On Wed, Sep 26, 2018 at 8:27 AM Maxime Coquelin wrote: > This patch opens a userfaultfd and sends it back to Qemu's > VHOST_USER_POSTCOPY_ADVISE request. > > Signed-off-by: Dr. David Alan Gilbert > Signed-off-by: Maxime Coquelin > --- > lib/librte_vhost/vhost.h | 2 ++ > lib/librte_vhost

Re: [dpdk-dev] [PATCH 06/12] vhost: register new regions with userfaultfd

2018-09-26 Thread Alejandro Lucero
On Wed, Sep 26, 2018 at 8:28 AM Maxime Coquelin wrote: > Signed-off-by: Dr. David Alan Gilbert > Signed-off-by: Maxime Coquelin > --- > lib/librte_vhost/vhost_user.c | 22 ++ > 1 file changed, 22 insertions(+) > > diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhos

Re: [dpdk-dev] [PATCH] doc: change tools guide to SPDX license

2018-09-26 Thread Hemant Agrawal
Colin/Christian, Can you or someone from canonical ack this patch. This is one of the last remaining roadblock in making DPDK SPDX complaint. Regards, Hemant On 7/4/2018 12:51 PM, Hemant Agrawal wrote: Colin/Christian, Can someone from canonical ack this patch. Regards, Hemant -Origin

Re: [dpdk-dev] [PATCH v4 11/11] examples/power: add json example files

2018-09-26 Thread Kovacevic, Marko
Hi Dave, Feel like this part is not needed in the patch as you have this already in the documentation, People can just copy and paste the examples from the docs, so we don't need to maintain two things. Thanks, Marko K.

Re: [dpdk-dev] [PATCH v5 21/21] doc: add external memory feature to programmer's guide

2018-09-26 Thread Burakov, Anatoly
On 26-Sep-18 4:19 PM, Kovacevic, Marko wrote: Add a short chapter on usage of external memory in DPDK to the Programmer's Guide. Signed-off-by: Anatoly Burakov --- .../prog_guide/env_abstraction_layer.rst | 37 +++ 1 file changed, 37 insertions(+) +The expected workfl

Re: [dpdk-dev] [PATCH v4 11/11] examples/power: add json example files

2018-09-26 Thread Hunt, David
Good point. There's also a couple of tiny niggles I'd like to resolve in patch 10 of the set, so I'll re-spin in v5. -Original Message- From: Kovacevic, Marko Sent: Wednesday, 26 September, 2018 4:58 PM To: Hunt, David ; dev@dpdk.org Cc: Mcnamara, John ; step...@networkplumber.org; Yao,

Re: [dpdk-dev] [PATCH v5 21/21] doc: add external memory feature to programmer's guide

2018-09-26 Thread Kovacevic, Marko
> > Hi Anatoly, > > > > Im getting an error when doing > > > > make-doc-guides-html > > > > /dpdk/doc/guides/prog_guide/env_abstraction_layer.rst:241: WARNING: > Unexpected indentation. > > /dpdk/doc/guides/prog_guide/env_abstraction_layer.rst:242: WARNING: > Block quote ends without a blank line;

[dpdk-dev] [PATCH v3] kni: dynamically allocate memory for each KNI

2018-09-26 Thread Igor Ryzhov
Long time ago preallocation of memory for KNI was introduced in commit 0c6bc8e. It was done because of lack of ability to free previously allocated memzones, which led to memzone exhaustion. Currently memzones can be freed and this patch uses this ability for dynamic KNI memory allocation. Signed-

[dpdk-dev] [PATCH v5 02/10] examples/power: allow for number of vms to be zero

2018-09-26 Thread David Hunt
Previously the vm_power_manager app required to have some vms defined, so the call to get_all_vm() always set the noVms variable. Now we're accepting policies from the host OS (without any VMs defined), so it is now valid to have zero VMs. This patch initialises the relevant variables to zero just

[dpdk-dev] [PATCH v5 04/10] examples/power: add necessary changes to guest app

2018-09-26 Thread David Hunt
The changes here are minimal, as the guest app functionality is not changing at all, but there is a new element in the channel_packet struct that needs to have a default set (channel_packet->core_type). Signed-off-by: David Hunt Acked-by: Anatoly Burakov --- examples/vm_power_manager/guest_cli/

[dpdk-dev] [PATCH v5 0/10] add json power policy interface for containers

2018-09-26 Thread David Hunt
The current vm_power_manager example app has the capability to accept power policies from virtual machines via virtio-serial channels. These power policies allow a virtual machine to give information to the power manager to allow the power manager take care of the power management of the virtual m

[dpdk-dev] [PATCH v5 03/10] lib/power: add changes for host commands/policies

2018-09-26 Thread David Hunt
This patch does a couple of things: * Adds a new message type for removing policies (PKT_POLICY_REMOVE) Used when we want to remove a previously created policy. * Adds a core_type bool to the channel packet struct to specify whether the type of core we want to control is cirtual or phys

[dpdk-dev] [PATCH v5 05/10] examples/power: add host channel to power manager

2018-09-26 Thread David Hunt
This patch adds a fifo channel to the vm_power_manager app through which we can send commands and polices. Intended for sending JSON strings. The fifo is at /tmp/powermonitor/fifo Signed-off-by: David Hunt Acked-by: Anatoly Burakov --- examples/vm_power_manager/channel_manager.c | 109 +

Re: [dpdk-dev] [PATCH v2 1/5] kni: add API to set link status on kernel interface

2018-09-26 Thread Ferruh Yigit
On 9/26/2018 3:55 PM, Dan Gora wrote: > On Wed, Sep 26, 2018 at 10:59 AM, Ferruh Yigit wrote: >> On 9/19/2018 8:55 PM, Dan Gora wrote: >>> Add a new API function to KNI, rte_kni_update_link() to allow DPDK >>> applications to update the link status for KNI network interfaces in >>> the linux kerne

[dpdk-dev] [PATCH v5 08/10] examples/power: clean up verbose messages

2018-09-26 Thread David Hunt
Some messages appearing several times a second, removing as they are unnecessary. Other less severe messages change from INFO to DEBUG Signed-off-by: David Hunt Acked-by: Anatoly Burakov --- examples/vm_power_manager/channel_monitor.c | 19 +-- 1 file changed, 5 insertions(+), 1

[dpdk-dev] [PATCH v5 07/10] examples/power: add json string handling

2018-09-26 Thread David Hunt
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 documentation updates. This patch introduces a new dependency on Jansson, a C library for encoding, decoding and m

[dpdk-dev] [PATCH v5 09/10] examples/power: add meson/ninja build support

2018-09-26 Thread David Hunt
Add meson.build in vm_power_manager and the guest_cli subdirectory. Building can be achieved by going to the build directory, and using meson configure -Dexamples=vm_power_manager,vm_power_manager/guest_cli Then, when ninja is invoked, it will build dpdk-vm_power_manger and dpdk-guest_cli Work s

[dpdk-dev] [PATCH v5 06/10] examples/power: increase allowed number of clients

2018-09-26 Thread David Hunt
Now that we're handling host policies, containers and virtual machines, we'll rename MAX_VMS to MAX_CLIENTS, and increase from 4 to 64 Signed-off-by: David Hunt Acked-by: Anatoly Burakov --- examples/vm_power_manager/channel_manager.h | 4 ++-- examples/vm_power_manager/channel_monitor.c | 10

[dpdk-dev] [PATCH v5 01/10] examples/power: add checks around hypervisor

2018-09-26 Thread David Hunt
Allow vm_power_manager to run without requiring qemu to be present on the machine. This will be required for instances where the JSON interface is used for commands and polices, without any VMs present. A use case for this is a container enviromnent. Signed-off-by: David Hunt Acked-by: Anatoly Bu

[dpdk-dev] [PATCH v5 10/10] doc/vm_power_manager: add JSON interface API info

2018-09-26 Thread David Hunt
Also added meson/ninja build info Signed-off-by: David Hunt Acked-by: Marko Kovacevic --- .../sample_app_ug/vm_power_management.rst | 272 +- 1 file changed, 270 insertions(+), 2 deletions(-) diff --git a/doc/guides/sample_app_ug/vm_power_management.rst b/doc/guides/sample

Re: [dpdk-dev] [PATCH] igb_uio: fix refcount if open returns error

2018-09-26 Thread Ferruh Yigit
On 9/14/2018 4:30 PM, Stephen Hemminger wrote: > This fixes the problem of reference count leak if > igbuio_pci_enable_interrupts fails. > > Also, replace mutex and integer with a kernel atomic counter. > This is standard pattern for kernel devices. > > Fixes: 19685d5aa79c ("igb_uio: allow multi-

Re: [dpdk-dev] [RFC] ipsec: new library for IPsec data-path processing

2018-09-26 Thread Jerin Jacob
-Original Message- > Date: Mon, 24 Sep 2018 08:45:48 + > From: "Ananyev, Konstantin" > To: Jerin Jacob > CC: "Joseph, Anoob" , "dev@dpdk.org" > , "Awal, Mohammad Abdul" , > "Doherty, Declan" , Narayana Prasad > , "akhil.go...@nxp.com" > , "hemant.agra...@nxp.com" , > "shreyansh.j

[dpdk-dev] [PATCH v2 00/15] Upgrade DPAA2 FW and other feature/bug fixes

2018-09-26 Thread Shreyansh Jain
About the series: This series of patches upgrades the DPAA2 driver firmware to v10.10.10 (MC Firmware). As the bus/fslmc is modified, it is a dependent object for other drivers like net/crypto/qdma. Also, the changes are mostly tightly linked - thus, the patches include upgrade as well as sequenti

[dpdk-dev] [PATCH v2 01/15] net/dpaa2: fix IOVA conversion for congestion memory

2018-09-26 Thread Shreyansh Jain
From: Nipun Gupta The code was incorrectly using the Virtual mode, whent the IOVA mode was set as Physical. Fixes: 5ae1edff6895 ("dpaa2: prepare for 32-bit build") Cc: sta...@dpdk.org Signed-off-by: Nipun Gupta --- drivers/net/dpaa2/dpaa2_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 d

[dpdk-dev] [PATCH v2 02/15] net/dpaa2: fix VLAN filter enablement

2018-09-26 Thread Shreyansh Jain
From: Hemant Agrawal Enable the VLAN filters only when requested in rx offload. Fixes: 0ebce6129bc6 ("net/dpaa2: support new ethdev offload APIs") Cc: sta...@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) di

[dpdk-dev] [PATCH v2 03/15] bus/fslmc: upgrade mc FW APIs to 10.10.0

2018-09-26 Thread Shreyansh Jain
From: Hemant Agrawal This patch add the support for new Management Complex Firmware version to 10.1x.x. One of the main changes in the APIs ordered queue. The fslmc bus lib ABI will need to be bumped to reflect the MC FW API and structure changes. This will also result in bumping of ABI verion

[dpdk-dev] [PATCH v2 04/15] net/dpaa2: upgrade dpni to mc FW APIs to 10.10.0

2018-09-26 Thread Shreyansh Jain
From: Hemant Agrawal New feature includes ordering support and link related enhancements Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/mc/dpni.c | 134 +- drivers/net/dpaa2/mc/fsl_dpkg.h | 71 ++ drivers/net/dpaa2/mc/fsl_dpni.h | 378 -

[dpdk-dev] [PATCH v2 05/15] crypto/dpaa2_sec: upgarde mc FW APIs to 10.10.0

2018-09-26 Thread Shreyansh Jain
From: Hemant Agrawal This also brings in support to configure the queues for order restoration. Signed-off-by: Hemant Agrawal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 1 + drivers/crypto/dpaa2_sec/mc/dpseci.c | 128 ++- drivers/crypto/dpaa2_sec/mc/fsl_dpseci

[dpdk-dev] [PATCH v2 06/15] bus/fslmc: support memory backed portals with QBMAN 5.0

2018-09-26 Thread Shreyansh Jain
From: Nipun Gupta This new mode is available in LX2160 platform. The code dynamically detect the underlying qbman version and choose the mode at runtime. Signed-off-by: Youri Querry Signed-off-by: Roy Pledge Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 180 +

[dpdk-dev] [PATCH v2 07/15] bus/fslmc: support 32 enq and deq for LX2 platform

2018-09-26 Thread Shreyansh Jain
From: Nipun Gupta LX2 can support upto 32 frames in one hw pull request. Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c| 17 ++-- drivers/bus/fslmc/portal/dpaa2_hw_dpio.h| 4 drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 22 ---

[dpdk-dev] [PATCH v2 08/15] bus/fslmc: disable annotation prefetch for LX2

2018-09-26 Thread Shreyansh Jain
From: Nipun Gupta In case of LX2 we get parse result summary in FD. We do not need to prefetch and read the annotation to fetch the parse results. Signed-off-by: Nipun Gupta DPDK-1404 --- drivers/net/dpaa2/dpaa2_rxtx.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --gi

[dpdk-dev] [PATCH v2 11/15] net/dpaa2: update RSS value in mbuf for lx2 platform

2018-09-26 Thread Shreyansh Jain
From: Hemant Agrawal This patch copies the flc based hw provided hash results to the mbuf rss field for lx2 platform only. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_rxtx.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_rx

[dpdk-dev] [PATCH v2 10/15] net/dpaa2: add per queue stats get and reset support

2018-09-26 Thread Shreyansh Jain
For now, only the packet count stats per queue is available. This is part of xstats output (though, per queue stats are actually part of rte_eth_stats basic stats). Signed-off-by: Shreyansh Jain --- drivers/net/dpaa2/dpaa2_ethdev.c | 32 1 file changed, 32 insert

[dpdk-dev] [PATCH v2 12/15] net/dpaa2: optimize the fd reset in Tx path

2018-09-26 Thread Shreyansh Jain
From: Hemant Agrawal various field of FD structure was getting reset in scattered fashion. This patch align them in single macro. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 6 ++ drivers/net/dpaa2/dpaa2_rxtx.c | 8 +++- 2 files changed, 9 inser

[dpdk-dev] [PATCH v2 09/15] net/dpaa2: read hardware provided MAC for DPNI devices

2018-09-26 Thread Shreyansh Jain
Firmware would contain pre-configured devices for each DPMAC backing a DPNI. This patch reads those MAC address when the device is initialized and sets it. THereafter, it can be changed through API or commands from testpmd. Signed-off-by: Shreyansh Jain --- drivers/net/dpaa2/dpaa2_ethdev.c | 79

[dpdk-dev] [PATCH v2 14/15] net/dpaa2: support MBUF VLAN tci population from HW parser

2018-09-26 Thread Shreyansh Jain
From: Hemant Agrawal This patch adds the support to update the mbuf vlan tci field from the HW parse results in annotation area. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/base/dpaa2_hw_dpni_annot.h | 40 ++ drivers/net/dpaa2/dpaa2_rxtx.c | 55 +--

[dpdk-dev] [PATCH v2 13/15] net/dpaa2: enhance the queue memory cleanup routines

2018-09-26 Thread Shreyansh Jain
From: Hemant Agrawal Earlier the tx queue data was getting cleaned up in close while rest of the functionality was in un-init. Now a new func is created to free queue memory. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 56 ++-- 1 file change

[dpdk-dev] [PATCH v2 15/15] net/dpaa2: support Rx checksum offload in slow parsing

2018-09-26 Thread Shreyansh Jain
From: Hemant Agrawal This is required for new mode for LX2 platform specifically Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_rxtx.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index bc8b9ff89..eab943dcf

Re: [dpdk-dev] [PATCH] eal: fix '--huge-unlink' option

2018-09-26 Thread Wodkowski, PawelX
Hi Anatoly, Can you take a look at this small fix. Thank you Paweł > -Original Message- > From: Wodkowski, PawelX > Sent: Friday, September 21, 2018 1:57 PM > To: dev@dpdk.org > Cc: Wodkowski, PawelX > Subject: [PATCH] eal: fix '--huge-unlink' option > > The final_va field is set durin

Re: [dpdk-dev] [PATCH v2 1/5] kni: add API to set link status on kernel interface

2018-09-26 Thread Dan Gora
On Wed, Sep 26, 2018 at 1:42 PM, Ferruh Yigit wrote: >> There is nothing to "reflect" to the kernel interface, nor to apply to >> the kernel interface. This is exactly how every other kernel driver >> works on link status changes. There is no "netif_set_speed()' >> function. When a link status

Re: [dpdk-dev] [PATCH v2 3/5] examples/kni: monitor and update link status continually

2018-09-26 Thread Dan Gora
On Wed, Sep 26, 2018 at 11:00 AM, Ferruh Yigit wrote: > On 9/19/2018 8:55 PM, Dan Gora wrote: >> Update KNI example to continuously monitor the Ethernet link status of >> the physical link and update the carrier status of the corresponding >> interfaces with rte_kni_update_link(). >> >> Signed-off

[dpdk-dev] [PATCH v3 1/5] test/hash: fix bucket size in hash perf test

2018-09-26 Thread Yipeng Wang
The bucket size was changed from 4 to 8 but the corresponding perf test was not changed accordingly. In the test, the bucket size and number of buckets are used to map to the underneath rte_hash structure. They are used to test performance of two conditions: keys in primary buckets only and keys i

[dpdk-dev] [PATCH v3 3/5] test/hash: fix rw test with non-consecutive cores

2018-09-26 Thread Yipeng Wang
the multi-reader and multi-writer rte_hash unit test does not work correctly with non-consicutive core ids. This commit fixes the issue. Fixes: 0eb3726ebcf1 ("test/hash: add test for read/write concurrency") Cc: sta...@dpdk.org Signed-off-by: Yipeng Wang Tested-by: Bruce Richardson Acked-by: Br

[dpdk-dev] [PATCH v3 0/5] hash: fix multiple issues

2018-09-26 Thread Yipeng Wang
This patch set was part of extendable hash table patch set V2. According to Bruce's comment, this patch set is now separated from the original patch set for easier review and merge. https://mails.dpdk.org/archives/dev/2018-September/112555.html This patch set fixes multiple issues/bugs from rte_ha

[dpdk-dev] [PATCH v3 2/5] test/hash: more accurate hash perf test output

2018-09-26 Thread Yipeng Wang
Edit the printf information when error happens to be more accurate and informative. Signed-off-by: Yipeng Wang Acked-by: Bruce Richardson --- test/test/test_hash_perf.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test/test_hash_perf.c b/test/test/test_has

[dpdk-dev] [PATCH v3 4/5] test/hash: fix missing file in meson build file

2018-09-26 Thread Yipeng Wang
The test_hash_readwrite.c was not in the meson.build file. This commit adds the missing test into the file. Fixes: 0eb3726ebcf1 ("test/hash: add test for read/write concurrency") Cc: sta...@dpdk.org Signed-off-by: Yipeng Wang --- test/test/meson.build | 1 + 1 file changed, 1 insertion(+) diff

[dpdk-dev] [PATCH v3 5/5] hash: fix unused define

2018-09-26 Thread Yipeng Wang
Since the depth-first search of cuckoo path is removed, we do not need the macro anymore which specifies the depth of the cuckoo search. Fixes: f2e3001b53ec ("hash: support read/write concurrency") Cc: sta...@dpdk.org Signed-off-by: Yipeng Wang Acked-by: Bruce Richardson --- lib/librte_hash/rt

[dpdk-dev] [PATCH v2 1/3] ethdev: add generic L2/L3 tunnel encapsulation actions

2018-09-26 Thread Ori Kam
Currenlty the encap/decap actions only support encapsulation of VXLAN and NVGRE L2 packets (L2 encapsulation is where the inner packet has a valid Ethernet header, while L3 encapsulation is where the inner packet doesn't have the Ethernet header). In addtion the parameter to to the encap action is

[dpdk-dev] [PATCH v2 2/3] app/testpmd: convert testpmd encap commands to new API

2018-09-26 Thread Ori Kam
Currently there are 2 encapsulation commands in testpmd one for VXLAN and one for NVGRE, both of those commands are using the old rte encap command. This commit update the commands to work with the new tunnel encap actions. The reason that we have different encapsulation commands, one for VXLAN a

<    1   2   3   >