[dpdk-dev] [PATCH v3] app/testpmd:add bond type description

2017-08-25 Thread Rongqiang XIE
In function cmd_show_bonding_config_parsed() used number represent the bond type,in order more detailed,add bond type description otherwise we may confused about the number type. And also,the primary port just use in mode active backup and tlb, so,when the mode is active backup or tlb show the prim

[dpdk-dev] [PATCH v2] app/testpmd:add bond type description

2017-08-25 Thread Rongqiang XIE
In function cmd_show_bonding_config_parsed() used number represent the bond type,in order more detailed,add bond type description otherwise we may confused about the number type. And also,the primary port just use in mode active backup and tlb, so,when the mode is active backup or tlb show the prim

[dpdk-dev] [PATCH 3/3] rte_flow: add new action for traffic metering and policing

2017-08-25 Thread Cristian Dumitrescu
Signed-off-by: Cristian Dumitrescu --- lib/librte_ether/rte_flow.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/lib/librte_ether/rte_flow.h b/lib/librte_ether/rte_flow.h index bba6169..5569a87 100644 --- a/lib/librte_ether/rte_flow.h +++ b/lib/librte_ether/rte_flow.

[dpdk-dev] [PATCH 2/3] ethdev: add new rte_mtr API for traffic metering and policing

2017-08-25 Thread Cristian Dumitrescu
Signed-off-by: Cristian Dumitrescu --- Changes in v1 (from RFC [1]): - Added EXPERIMENTAL tag in rte_mtr.h and MANTAINERS for this new API (input from Thomas) - Added more Doxygen comments to re-inforce relationship between MTR and flow (input from Adrien) - Added Doxygen hook in doxy-api-inde

[dpdk-dev] [PATCH 0/3] rte_mtr: generic ethdev API for metering and policing

2017-08-25 Thread Cristian Dumitrescu
This patch set introduces an ethdev-based generic API for Traffic Metering and Policing (MTR), which is yet another standard RX offload for Ethernet devices. Similar to rte_flow and rte_tm APIs, the configuration of MTR objects is done in their own namespace (rte_mtr) within the librte_ether libra

[dpdk-dev] [PATCH 1/3] ethdev: add new eth_dev_ops function for mtr ops get

2017-08-25 Thread Cristian Dumitrescu
Following similar approach to rte_flow and rte_tm for modularity reasons. Signed-off-by: Cristian Dumitrescu --- Changes in v1 (from RFC [1]): - Removed ethdev API function to get the MTR ops, as it is not needed (input from Thomas) [1] RFC: http://www.dpdk.org/ml/archives/dev/2017-May/066888.

[dpdk-dev] [PATCH v2 3/3] doc: update timer lib docs

2017-08-25 Thread Gabriel Carrillo
This change updates the timer library documentation to reflect a change to the organization of the skiplists in the implementation. Signed-off-by: Gabriel Carrillo --- doc/guides/prog_guide/timer_lib.rst | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/doc

[dpdk-dev] [PATCH v2 2/3] timer: handle timers installed from non-EAL threads

2017-08-25 Thread Gabriel Carrillo
This commit adds support for timers being created from non-EAL threads; it maps timers from all such threads to lcore id RTE_MAX_LCORE, and puts them all in a corresponding skiplist. Signed-off-by: Gabriel Carrillo --- v2: * Address checkpatch warnings lib/librte_timer/rte_timer.c | 48 +++

[dpdk-dev] [PATCH v2 1/3] timer: add per-installer pending lists for each lcore

2017-08-25 Thread Gabriel Carrillo
Instead of each priv_timer struct containing a single skiplist, this commit adds a skiplist for each enabled lcore to priv_timer. In the case that multiple lcores repeatedly install timers on the same target lcore, this change reduces lock contention for the target lcore's skiplists and increases p

[dpdk-dev] [PATCH v2 0/3] *** timer library enhancements ***

2017-08-25 Thread Gabriel Carrillo
In the current implementation of the DPDK timer library, timers can be created and set to be handled by a target lcore by adding it to a skiplist that corresponds to that lcore. However, if an application enables multiple lcores, and each of these lcores repeatedly attempts to install timers on th

[dpdk-dev] [PATCH] ixgbe: eliminate duplicate filterlist symbols

2017-08-25 Thread David Harton
Some compilers generate warnings for duplicate symbols for the set of filter lists current defined in ixgbe_ethdev.h. This commits moves the defintion and declaration to the source file that actually uses them and provides a function to initialize the values akin to its flush function. Signed-off-

[dpdk-dev] [PATCH] vmxnet3: mac address set fixes

2017-08-25 Thread David Harton
Updated vmxnet3_mac_addr_set() to store the newly set MAC address. Modified vmxnet3_write_mac() so the h/w is updated in an endian neutral manner. Signed-off-by: David Harton --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/driver

Re: [dpdk-dev] [PATCH] net/qede:fix the bug about pointer params may NULL

2017-08-25 Thread Patil, Harish
-Original Message- From: dev on behalf of Rongqiang XIE Date: Thursday, August 24, 2017 at 12:12 AM To: "Mody, Rasesh" Cc: "dev@dpdk.org" , Rongqiang XIE Subject: [dpdk-dev] [PATCH] net/qede:fix the bug about pointer params may NULL >In function qede_rss_reta_update(),the pointer p

[dpdk-dev] [RFC PATCH 0/1] net/mlx5: add vectorized Rx/Tx burst for ARM

2017-08-25 Thread Yongseok Koh
The SSE(x86) Rx/Tx burst functions added in v17.08 would be ported for ARM NEON in v17.11. Although this is still ongoing effort (more implementation and further optimization), this intrim patch can be applied on top of v17.08 and forward packts. One of topics to discuss is that I used inilne asse

[dpdk-dev] [RFC PATCH 1/1] net/mlx5: add vectorized Rx/Tx burst for ARM

2017-08-25 Thread Yongseok Koh
New Rx/Tx burst functions are added using NEON vector instructions for ARM CPU. Signed-off-by: Yongseok Koh --- drivers/net/mlx5/Makefile |2 + drivers/net/mlx5/mlx5_ethdev.c|4 +- drivers/net/mlx5/mlx5_prm.h | 15 + drivers/net/mlx5/mlx5_rxq.c |

[dpdk-dev] [PATCH v2 5/6] examples/flow_classify: flow classify sample application

2017-08-25 Thread Bernard Iremonger
The flow_classify sample application exercises the following librte_flow_classify API's: rte_flow_classify_create rte_flow_classify_validate rte_flow_classify_destroy rte_flow_classify_query It sets up the IPv4 ACL field definitions. It creates table_acl using the librte_table API. Signed-off-by

[dpdk-dev] [PATCH v2 6/6] test: flow classify library unit tests

2017-08-25 Thread Bernard Iremonger
Add flow_classify_autotest program. Set up IPv4 ACL field definitions. Create table_acl for use by librte_flow_classify API's. Create an mbuf pool for use by rte_flow_classify_query. For each of the librte_flow_classify API's: add bad parameter tests add bad pattern tests add bad action tests add

[dpdk-dev] [PATCH v2 4/6] librte_flow_classify: add librte_flow_classify library

2017-08-25 Thread Bernard Iremonger
From: Ferruh Yigit The following library APIs's are implemented: rte_flow_classify_create rte_flow_classify_validate rte_flow_classify_destroy rte_flow_classify_query The following librte_table ACL API's are used: f_create to create a table ACL. f_add to add an ACL rule to the table. f_del to de

[dpdk-dev] [PATCH v2 3/6] librte_ether: initialise IPv4 protocol mask for rte_flow

2017-08-25 Thread Bernard Iremonger
Initialise the next_proto_id mask in the default mask for rte_flow_item_type_ipv4. Signed-off-by: Bernard Iremonger --- lib/librte_ether/rte_flow.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_ether/rte_flow.h b/lib/librte_ether/rte_flow.h index bba6169..59c42fa 100644 --- a/li

[dpdk-dev] [PATCH v2 2/6] librte_table: fix acl lookup function

2017-08-25 Thread Bernard Iremonger
The rte_table_acl_lookup() function was returning data from acl_memory instead of acl_rule_memory. Fixes: 166923eb2f78 ("table: ACL") Cc: sta...@dpdk.org Signed-off-by: Bernard Iremonger --- lib/librte_table/rte_table_acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib

[dpdk-dev] [PATCH v2 1/6] librte_table: fix acl entry add and delete functions

2017-08-25 Thread Bernard Iremonger
The rte_table_acl_entry_add() function was returning data from acl_memory instead of acl_rule_memory. It was also returning data from entry instead of entry_ptr. The rte_table_acl_entry_delete() function was returning data from acl_memory instead of acl_rule_memory. Fixes: 166923eb2f78 ("table: A

[dpdk-dev] [PATCH v2 0/6] flow classification library

2017-08-25 Thread Bernard Iremonger
DPDK works with packets, but some network administration tools works based on flow information. This library is suggested to provide a helper API to convert packet based information to the flow records. Basically the library consist of APIs to validate, create and destroy the rule and to query

[dpdk-dev] [PATCH 6/6] devargs: make devargs_list private

2017-08-25 Thread Gaetan Rivet
Initially, rte_devargs was meant to be populated once and sometimes accessed, then never emptied. With the new hotplug functionality having better standing, new usage appeared with repeated addition of devices and their subsequent removal. Exposing devargs_list pushed bus drivers and libraries to

[dpdk-dev] [PATCH 5/6] test: remove rte_devargs unit tests

2017-08-25 Thread Gaetan Rivet
The current test will not be compatible anymore with a private devargs_list. Moreover, the new functions should have new tests, while the existing API will be removed. The current unit tests are thus obsolete and hereby removed. Signed-off-by: Gaetan Rivet --- MAINTAINERS | 1 -

[dpdk-dev] [PATCH 4/6] bus/pci: do not reference devargs_list

2017-08-25 Thread Gaetan Rivet
This list should not be used by drivers. Use the public API instead. Signed-off-by: Gaetan Rivet --- drivers/bus/pci/rte_pci_common.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/bus/pci/rte_pci_common.c b/drivers/bus/pci/rte_pci_common.c index 459ae42..c4a213

[dpdk-dev] [PATCH 2/6] devargs: introduce foreach macro

2017-08-25 Thread Gaetan Rivet
Introduce new rte_devargs accessor allowing to iterate over all rte_devargs pertaining to a bus. Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/include/rte_devargs.h | 9 + 1 file changed, 9 insertions(+) diff --git a/lib/librte_eal/common/include/rte_devargs.h b/lib/librte_eal/

[dpdk-dev] [PATCH 3/6] vdev: do not reference devargs_list

2017-08-25 Thread Gaetan Rivet
This list should not be operated upon by drivers. Use the public API to achieve the same functionalities. Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/eal_common_vdev.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/librte_eal/common/eal_common_vdev.

[dpdk-dev] [PATCH 1/6] devargs: introduce iterator

2017-08-25 Thread Gaetan Rivet
In preparation to making devargs_list private. Bus drivers generally need to access rte_devargs pertaining to their operations. This match is a common operation for bus drivers. Add a new accessor for the rte_devargs list. Signed-off-by: Gaetan Rivet --- lib/librte_eal/bsdapp/eal/rte_eal_versi

[dpdk-dev] [PATCH 0/6] devargs cleanup

2017-08-25 Thread Gaetan Rivet
The use of rte_devargs is inconsistent in the light of new functionalities such as device hotplug. Most of its API is still experimental and needs stabilization. Older functions were deprecated and need to be rewritten or removed. The rte_devtype is meant to disappear. A replacement needs to be dis

[dpdk-dev] [PATCH v1 10/10] net/i40e: set register for no drop

2017-08-25 Thread David Hunt
See the XL710 controller datasheet for more information on this register Signed-off-by: Nemanja Marjanovic Signed-off-by: Rory Sexton Signed-off-by: David Hunt --- drivers/net/i40e/i40e_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev.c

[dpdk-dev] [PATCH v1 09/10] examples/vm_power_mgr: set MAC address of VF

2017-08-25 Thread David Hunt
We need to set vf mac from the host, so that they will be in sync on the guest and the host. Otherwise, we'll have a random mac on the guest, and a 00:00:00:00:00:00 mac on the host. Signed-off-by: David Hunt --- examples/vm_power_manager/main.c | 58 +++- 1 f

[dpdk-dev] [PATCH v1 08/10] examples/guest_cli: add send policy to host

2017-08-25 Thread David Hunt
Here we're adding an example of setting up a policy, and allowing the vm_cli_guest app to send it to the host using the cli command "send_policy now" Signed-off-by: Nemanja Marjanovic Signed-off-by: Rory Sexton Signed-off-by: David Hunt --- .../guest_cli/vm_power_cli_guest.c |

[dpdk-dev] [PATCH v1 06/10] examples/vm_power_mgr: add policy to channels

2017-08-25 Thread David Hunt
Signed-off-by: Nemanja Marjanovic Signed-off-by: Rory Sexton Signed-off-by: David Hunt --- examples/vm_power_manager/channel_monitor.c | 302 +++- examples/vm_power_manager/channel_monitor.h | 18 ++ 2 files changed, 312 insertions(+), 8 deletions(-) diff --git a/examp

[dpdk-dev] [PATCH v1 07/10] examples/vm_power_mgr: add port initialisation

2017-08-25 Thread David Hunt
We need to initialise the port's we're monitoring to be able to see the throughput. Signed-off-by: Nemanja Marjanovic Signed-off-by: David Hunt --- examples/vm_power_manager/main.c | 220 +++ 1 file changed, 220 insertions(+) diff --git a/examples/vm_power_m

[dpdk-dev] [PATCH v1 05/10] examples/vm_power_mgr: add scale to medium freq fn

2017-08-25 Thread David Hunt
Signed-off-by: Nemanja Marjanovic Signed-off-by: Rory Sexton Signed-off-by: David Hunt --- examples/vm_power_manager/power_manager.c | 15 +++ examples/vm_power_manager/power_manager.h | 13 + 2 files changed, 28 insertions(+) diff --git a/examples/vm_power_manager/powe

[dpdk-dev] [PATCH v1 02/10] net/i40e: add API to get received packet count

2017-08-25 Thread David Hunt
Signed-off-by: Nemanja Marjanovic Signed-off-by: Rory Sexton Signed-off-by: David Hunt --- drivers/net/i40e/i40e_ethdev.c | 1 + drivers/net/i40e/i40e_rxtx.c | 10 ++ drivers/net/i40e/i40e_rxtx.h | 1 + lib/librte_ether/rte_ethdev.h | 19 +++ 4 files changed, 31 i

[dpdk-dev] [PATCH v1 01/10] net/i40e: add API to convert VF Id to PF Id

2017-08-25 Thread David Hunt
Need a way to convert a vf id to a pf id on the host so as to query the pf for relevant statistics which are used for the frequency changes in the vm_power_manager app. Used when profiles are passed down from the guest to the host, allowing the host to map the vfs to pfs. Signed-off-by: Nemanja Ma

[dpdk-dev] [PATCH v1 03/10] lib/librte_power: add extra msg type for policies

2017-08-25 Thread David Hunt
Signed-off-by: Nemanja Marjanovic Signed-off-by: Rory Sexton Signed-off-by: David Hunt --- lib/librte_power/channel_commands.h | 33 + 1 file changed, 33 insertions(+) diff --git a/lib/librte_power/channel_commands.h b/lib/librte_power/channel_commands.h index

[dpdk-dev] [PATCH v1 04/10] examples/vm_power_mgr: add vcpu to pcpu mapping

2017-08-25 Thread David Hunt
Signed-off-by: Nemanja Marjanovic Signed-off-by: Rory Sexton Signed-off-by: David Hunt --- examples/vm_power_manager/channel_manager.c | 55 + examples/vm_power_manager/channel_manager.h | 16 - 2 files changed, 70 insertions(+), 1 deletion(-) diff --git a/e

[dpdk-dev] [PATCH v1 0/10] Policy Based Power Control for Guest

2017-08-25 Thread David Hunt
This patchset adds the facility for a guest VM to send a policy down to the host that will allow the host to scale up/down cpu frequencies depending on the policy criteria independently of the DPDK app running in the guest. This differs from the previous vm_power implementation where individual sc

Re: [dpdk-dev] [PATCH] vmxnet3: replenish ring buffers in rx processing

2017-08-25 Thread Wiles, Keith
> On Aug 25, 2017, at 10:51 AM, David Harton (dharton) > wrote: > > > >> -Original Message- >> From: Wiles, Keith [mailto:keith.wi...@intel.com] >> Sent: Friday, August 25, 2017 11:41 AM >> To: David Harton (dharton) >> Cc: skh...@vmware.com; dev@dpdk.org >> Subject: Re: [dpdk-dev] [

Re: [dpdk-dev] [PATCH] vmxnet3: replenish ring buffers in rx processing

2017-08-25 Thread David Harton (dharton)
> -Original Message- > From: Wiles, Keith [mailto:keith.wi...@intel.com] > Sent: Friday, August 25, 2017 11:41 AM > To: David Harton (dharton) > Cc: skh...@vmware.com; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] vmxnet3: replenish ring buffers in rx > processing > > > > On Aug 25, 2

Re: [dpdk-dev] [PATCH] vmxnet3: replenish ring buffers in rx processing

2017-08-25 Thread Wiles, Keith
> On Aug 25, 2017, at 10:22 AM, David Harton wrote: > > vmxnet3 rx processing should replenish ring buffers after new buffers > are available to prevent the interface from getting stuck in a state > that no new work is processed. > > Signed-off-by: David Harton > --- > drivers/net/vmxnet3/vmxn

[dpdk-dev] [PATCH] vmxnet3: replenish ring buffers in rx processing

2017-08-25 Thread David Harton
vmxnet3 rx processing should replenish ring buffers after new buffers are available to prevent the interface from getting stuck in a state that no new work is processed. Signed-off-by: David Harton --- drivers/net/vmxnet3/vmxnet3_rxtx.c | 17 + 1 file changed, 17 insertions(+) d

[dpdk-dev] [RFC PATCH 5/5] examples/ipsec-secgw: enabled inline ipsec

2017-08-25 Thread Radu Nicolau
Signed-off-by: Radu Nicolau --- examples/ipsec-secgw/esp.c | 26 -- examples/ipsec-secgw/ipsec.c | 61 +++-- examples/ipsec-secgw/ipsec.h | 2 ++ examples/ipsec-secgw/sa.c| 65 +++- 4 files changed,

[dpdk-dev] [RFC PATCH 4/5] ixgbe: enable inline ipsec

2017-08-25 Thread Radu Nicolau
Signed-off-by: Radu Nicolau --- config/common_base | 1 + drivers/net/ixgbe/Makefile | 4 +- drivers/net/ixgbe/ixgbe_ethdev.c | 3 + drivers/net/ixgbe/ixgbe_ethdev.h | 10 +- drivers/net/ixgbe/ixgbe_ipsec.c| 617 ++

[dpdk-dev] [RFC PATCH 3/5] rte_security: updates and enabled security operations for ethdev

2017-08-25 Thread Radu Nicolau
Signed-off-by: Radu Nicolau --- lib/Makefile | 1 + lib/librte_cryptodev/rte_cryptodev_pmd.h | 4 +-- lib/librte_cryptodev/rte_cryptodev_version.map | 10 lib/librte_cryptodev/rte_security.c| 34 +- lib/librte_

[dpdk-dev] [RFC PATCH 2/5] ethdev: added security ops struct pointer

2017-08-25 Thread Radu Nicolau
Signed-off-by: Radu Nicolau --- lib/librte_ether/rte_ethdev.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 0adf327..b4a02d7 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -1649,6 +1649,7

[dpdk-dev] [RFC PATCH 1/5] mbuff: added security offload flags

2017-08-25 Thread Radu Nicolau
Signed-off-by: Radu Nicolau --- lib/librte_mbuf/rte_mbuf.h | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index eaed7ee..6a77270 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.

[dpdk-dev] [RFC PATCH 0/5] Enable IPSec Inline for IXGBE PMD

2017-08-25 Thread Radu Nicolau
This RFC is an update for the existing RFC IPSec Inline and look aside crypto offload http://dpdk.org/ml/archives/dev/2017-August/072900.html It provides a few updates on the general rte_security APIs, adds security ops struct pointer to the net devices, implements the support on the IXGBE PMD

[dpdk-dev] [PATCH v3] ethdev: modifiy vlan_offload_set_t to return int

2017-08-25 Thread David Harton
Some devices may not support or fail setting VLAN offload configuration based on dynamic circurmstances so the vlan_offload_set_t vector is modified to return an int so the caller can determine success or not. rte_eth_dev_set_vlan_offload is updated to return the value provided by the vector when

[dpdk-dev] [RFC] Wireless Base Band Device (bbdev)

2017-08-25 Thread Amr Mokhtar
Signed-off-by: Amr Mokhtar --- lib/librte_bbdev/rte_bbdev.h | 636 +++ lib/librte_bbdev/rte_bbdev_op.h | 333 lib/librte_bbdev/rte_bbdev_pmd.h | 407 + 3 files changed, 1376 insertions(+) create mode 100644 lib

[dpdk-dev] [RFC] Wireless Base Band Device (bbdev)

2017-08-25 Thread Amr Mokhtar
This RFC describes a proposal for the Wireless Base Band Device (bbdev) in DPDK that abstracts HW accelerators based on FPGA and/or Fixed Function Accelerators that assist with LTE Physical Layer processing. Furthermore, it decouples the application from the compute-intensive wireless functions

[dpdk-dev] [PATCH v2] ethdev: modifiy vlan_offload_set_t to return int

2017-08-25 Thread David Harton
Some devices may not support or fail setting VLAN offload configuration based on dynamic circurmstances so the vlan_offload_set_t vector is modified to return an int so the caller can determine success or not. rte_eth_dev_set_vlan_offload is updated to return the value provided by the vector when

Re: [dpdk-dev] [RFC PATCH 4/4] ethdev: add helpers to move to the new offloads API

2017-08-25 Thread Thomas Monjalon
24/08/2017 09:12, Shahaf Shuler: > Thursday, August 24, 2017 1:06 AM, Thomas Monjalon: > > 23/08/2017 15:13, Shahaf Shuler: > > > Wednesday, August 23, 2017 3:29 PM, Ananyev, Konstantin: > > > > From: Shahaf Shuler > > > > > In order to enable PMDs to support only one of the APIs, and > > > > > app

[dpdk-dev] [PATCH 25/27] net/dpaa2: fix the Tx handling of non HW pool bufs

2017-08-25 Thread Hemant Agrawal
The current code is sending 8 packet in each internal loop. In some of the conditions, mbuf is being allocated or freed. In case of error, the code is returning without taking care of such buffer. It is better to send already prepared buffer and err for the current failure only. Fixes: 9e5f3e6d365

[dpdk-dev] [PATCH 24/27] net/dpaa2: add support for extra stats

2017-08-25 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 178 - 2 files changed, 177 insertions(+), 2 deletions(-) diff --git a/doc/guides/nics/features/dpaa2.ini b/doc/guides/nics/features/dpaa2.ini i

[dpdk-dev] [PATCH 27/27] net/dpaa2: log that VLAN extend offload not supported

2017-08-25 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 51498c8..5e1d74c 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethde

[dpdk-dev] [PATCH 26/27] net/dpaa2: improve debug messaging

2017-08-25 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index b71c51d..51498c8 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/ne

[dpdk-dev] [PATCH 23/27] net/dpaa2: add support for RSS hash update and get

2017-08-25 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 42 1 file changed, 42 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index dcf783b..4eeddb8 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c

[dpdk-dev] [PATCH 22/27] net/dpaa2: remove RSS restriction with num of queues

2017-08-25 Thread Hemant Agrawal
DPAA2 HW does not have such restrictions. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 5e5a71f..dcf783b 100644 --- a/drivers/net/dpaa2/d

[dpdk-dev] [PATCH 20/27] net/dpaa2: improve error and logs for flow distribution

2017-08-25 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 39 +- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c index 1269dd2..7e5ce64 100644 --- a/dr

[dpdk-dev] [PATCH 21/27] net/dpaa2: increase the dist param to 64 bit

2017-08-25 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 6 +++--- drivers/net/dpaa2/dpaa2_ethdev.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c index 7e5ce64..e3ab90

[dpdk-dev] [PATCH 19/27] net/dpaa2: check physical link state on up cmd

2017-08-25 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 49dc42b..5e5a71f 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/dr

[dpdk-dev] [PATCH 18/27] bus/fslmc: enable link status interrupt

2017-08-25 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index ab1df36..81f0779 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -464,

[dpdk-dev] [PATCH 17/27] net/dpaa2: add support for link status event

2017-08-25 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c| 123 +++ drivers/net/dpaa2/mc/dpni.c | 233 drivers/net/dpaa2/mc/fsl_dpni.h | 49 drivers/net/dpaa2/mc/fs

[dpdk-dev] [PATCH 16/27] bus/fslmc: cleanup the dpaa2 interrupt support

2017-08-25 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/Makefile | 1 + drivers/bus/fslmc/fslmc_vfio.c | 108 +++- drivers/bus/fslmc/fslmc_vfio.h | 8 ++- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c| 18 +++-- drivers/bus/fslmc/

[dpdk-dev] [PATCH 13/27] bus/fslmc: add support for LX2160 platform

2017-08-25 Thread Hemant Agrawal
From: Ashish Jain Signed-off-by: Ashish Jain --- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 22 ++ drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 1 + 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c b/drivers/bus/fslmc/p

[dpdk-dev] [PATCH 15/27] bus/fslmc: add support to check dpbp presence

2017-08-25 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c| 7 +++ drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 1 + drivers/bus/fslmc/rte_bus_fslmc_version.map | 1 + 3 files changed, 9 insertions(+) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c b/drivers/bus/f

[dpdk-dev] [PATCH 14/27] net/dpaa2: add support for congestion overhead

2017-08-25 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 1 + drivers/net/dpaa2/dpaa2_ethdev.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 945dcc7..d7950a5 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c

[dpdk-dev] [PATCH 12/27] config/dpaa2: change max lores to 16

2017-08-25 Thread Hemant Agrawal
From: Ashish Jain To support new LX2 series Signed-off-by: Ashish Jain --- config/defconfig_arm64-dpaa2-linuxapp-gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/defconfig_arm64-dpaa2-linuxapp-gcc b/config/defconfig_arm64-dpaa2-linuxapp-gcc index 8a42944..91f4993

[dpdk-dev] [PATCH 11/27] crypto/dpaa2_sec: update MC to 10.3.x

2017-08-25 Thread Hemant Agrawal
From: Shreyansh Jain Signed-off-by: Shreyansh Jain --- drivers/crypto/dpaa2_sec/mc/dpseci.c | 676 +-- drivers/crypto/dpaa2_sec/mc/fsl_dpseci.h | 782 --- drivers/crypto/dpaa2_sec/mc/fsl_dpseci_cmd.h | 387 ++--- 3 files changed, 8

[dpdk-dev] [PATCH 09/27] bus/fslmc: update MC to 10.3.x

2017-08-25 Thread Hemant Agrawal
From: Shreyansh Jain Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 19 +++ drivers/bus/fslmc/mc/dpbp.c | 182 + drivers/bus/fslmc/mc/dpci.c | 202 --- drivers/bus/fslmc/mc/dpcon.

[dpdk-dev] [PATCH 08/27] bus/fslmc: clean the qbman support code

2017-08-25 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/compat.h | 88 ++ drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 5 +- drivers/bus/fslmc/qbman/qbman_portal.c | 26 +-- drivers/bus/fslmc/qbman/qbman_portal.h | 133 ++

[dpdk-dev] [PATCH 07/27] bus/fslmc: cleanup compat file

2017-08-25 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/compat.h | 187 +-- drivers/bus/fslmc/qbman/qbman_private.h | 2 +- 2 files changed, 3 insertions(+), 186 deletions(-) diff --git a/drivers/bus/fslmc/qbman/include/compat.h b/drivers/bus/fslmc/qbman

[dpdk-dev] [PATCH 05/27] bus/fslmc: enhance the QBMAN CENA mode

2017-08-25 Thread Hemant Agrawal
From: Haiying Wang Signed-off-by: Haiying Wang Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/qbman_sys.h | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/bus/fslmc/qbman/qbman_sys.h b/drivers/bus/fslmc/qbman/qbman_sys.h index 9ea55de..47da595 10064

[dpdk-dev] [PATCH 06/27] bus/fslmc: qbman remove unused funcs and align names

2017-08-25 Thread Hemant Agrawal
name alignment for check command and result functions putting them as separate functions instead of changing the original functions. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 146 ++-- drivers/bus/fslmc/qbman/qbman_portal.c | 731 +

[dpdk-dev] [PATCH 04/27] bus/fslmc: support up to 32 frames in one volatile dequeue

2017-08-25 Thread Hemant Agrawal
From: Haiying Wang QMan5.0 supports up to 32 frames in one volatile dequeue command. For the older Qman versions which only support up to 16 frames, the highest bit in NUMF will be ignored. Signed-off-by: Haiying Wang Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/qbman_portal.c |

[dpdk-dev] [PATCH 03/27] bus/fslmc: add qbman API to do enqueue with multiple frames

2017-08-25 Thread Hemant Agrawal
From: Haiying Wang Clean it up and update the prototype. Signed-off-by: Haiying Wang Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 32 ++-- drivers/bus/fslmc/qbman/qbman_portal.c | 200 +++-- drivers/bus/fslmc/rte_bus_fslmc

[dpdk-dev] [PATCH 02/27] bus/fslmc: remove the export for qbman version function

2017-08-25 Thread Hemant Agrawal
This func is not required to be used outside of the qbman driver. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/fsl_qbman_base.h | 4 drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 2 -- drivers/bus/fslmc/qbman/qbman_portal.c | 7 --- drivers/bus/

[dpdk-dev] [PATCH 00/27] NXP DPAA2 PMD updates

2017-08-25 Thread Hemant Agrawal
This patchset includes the hw driver upgrades and additional nic feature implementations. patches 1..8 - upgrades the qbman hw driver patches 9..11 - upgrades the MC version to 10.3.1 patches 12..13 - adds the support for LX2160 platform patches 14..27 - adds various features and cleanups in

[dpdk-dev] [PATCH 01/27] bus/fslmc: qbman replace word copy with memcpy

2017-08-25 Thread Hemant Agrawal
From: Haiying Wang The word_copy is not as efficient as expected, so remove it from this driver. Signed-off-by: Haiying Wang Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/compat.h | 42 drivers/bus/fslmc/qbman/qbman_portal.c | 12

Re: [dpdk-dev] [RFC PATCH 0/4] ethdev new offloads API

2017-08-25 Thread Jerin Jacob
-Original Message- > Date: Mon, 7 Aug 2017 13:54:27 +0300 > From: Shahaf Shuler > To: dev@dpdk.org > Subject: [dpdk-dev] [RFC PATCH 0/4] ethdev new offloads API > X-Mailer: git-send-email 2.12.0 > > Tx offloads configuration is per queue. Tx offloads are enabled by default, > and can be

Re: [dpdk-dev] [RFC PATCH 0/1] eventtimer: introduce event timer wheel

2017-08-25 Thread Jerin Jacob
-Original Message- > Date: Wed, 23 Aug 2017 22:57:08 + > From: "Carrillo, Erik G" > To: Jerin Jacob , "dev@dpdk.org" > > CC: "tho...@monjalon.net" , "Richardson, Bruce" > , "Van Haaren, Harry" > , "hemant.agra...@nxp.com" > , "Eads, Gage" , > "nipun.gu...@nxp.com" , "Vangati, Nar

[dpdk-dev] [PATCH v2 6/6] bus/fslmc: refactor scan and probe functions

2017-08-25 Thread Shreyansh Jain
Scan now searches for devices through sysfs interface and adds them to a list for later initialization. During probe, each device is initialized accroding to its property. Signed-off-by: Shreyansh Jain --- drivers/bus/fslmc/fslmc_bus.c| 180 +++- drivers/bus/fslmc/fslmc_vfio.

[dpdk-dev] [PATCH v2 4/6] net/dpaa2: update driver type field

2017-08-25 Thread Shreyansh Jain
Shifting from existing device identifier to driver type field. Signed-off-by: Shreyansh Jain --- drivers/net/dpaa2/dpaa2_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 429b3a0..360109e 100644

[dpdk-dev] [PATCH v2 5/6] drivers: refactor DPAA2 object definition

2017-08-25 Thread Shreyansh Jain
Initially, DPAA2 objects (except ETH and CRYPTO) were defined from VFIO layer. This patch moves that into Bus definition. This patch also realigns the object types with the new device types. Signed-off-by: Shreyansh Jain --- drivers/bus/fslmc/fslmc_vfio.c | 11 +- drivers/bus/f

[dpdk-dev] [PATCH v2 1/6] bus/fslmc: support only single group and container

2017-08-25 Thread Shreyansh Jain
Currently DPAA2 code doesn't support multiple groups and containers. Remove such provision in code to simplify code. Signed-off-by: Shreyansh Jain --- drivers/bus/fslmc/fslmc_vfio.c | 70 +++--- drivers/bus/fslmc/fslmc_vfio.h | 3 +- 2 files changed, 26 inser

[dpdk-dev] [PATCH v2 0/6] NXP DPAA2: Refactor bus scan/probe code

2017-08-25 Thread Shreyansh Jain
Change Log: ~~~ v2: - Minor updates for logging (removed some logs and changed others to make it cleaner when application starts) Brief: ~~ -- v1 is at [3] -- In [1], during the IOVA Mapping patch set [2] discussion, it was observed that DPAA2 scan was actually doing work m

[dpdk-dev] [PATCH v2 3/6] crypto/dpaa2_sec: update driver type field

2017-08-25 Thread Shreyansh Jain
Signed-off-by: Shreyansh Jain --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index e0f6cfc..95c3951 100644 --- a/drivers/crypto/dpaa2_sec

[dpdk-dev] [PATCH v2 2/6] bus/fslmc: introduce new device type enumerator

2017-08-25 Thread Shreyansh Jain
Existing devices and drivers depended on device ID rather than type. A new enumerator for all DPAA2 devices is introduced in this patch. At this point, the probe would not be able to link DPAA2 devices with the driver and I/O would not work. Subsequent patches will fix this. Signed-off-by: Shreya

[dpdk-dev] [PATCH 12/12] examples/helloworld: do not exit automatically

2017-08-25 Thread Jianfeng Tan
Signed-off-by: Jianfeng Tan --- examples/helloworld/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/helloworld/main.c b/examples/helloworld/main.c index 8b7a2de..35b70da 100644 --- a/examples/helloworld/main.c +++ b/examples/helloworld/main.c @@ -36,6 +36,7 @@ #include #

[dpdk-dev] [PATCH 11/12] net/vhost: support to run in the secondary process

2017-08-25 Thread Jianfeng Tan
Support to run vhost-pmd vdev in the secondary process. We obtain information, like memory regions, kickfd, callfd, through primary/secondary communication channel. And by invoking rte_vhost_set_vring_effective_fd, we can set the kickfd which can be recognized by the secondary process. Signed-off

[dpdk-dev] [PATCH 07/12] bus/vdev: scan and probe vdev in secondary processes

2017-08-25 Thread Jianfeng Tan
Base on primary/secondary communication channel, we add vdev action to scan virtual devices in secondary processes. Signed-off-by: Jianfeng Tan --- drivers/bus/vdev/vdev.c | 96 + 1 file changed, 96 insertions(+) diff --git a/drivers/bus/vdev/vdev

[dpdk-dev] [PATCH 10/12] vhost: support to kick in secondary process

2017-08-25 Thread Jianfeng Tan
To support kick in secondary process, we propose callfd_pri and kickfd_pri to store the value in primary process; and by a new API, rte_vhost_set_vring_effective_fd(), we can set effective callfd and kickfd which can be used by secondary process. Note in this case, either primary process or the se

[dpdk-dev] [PATCH 09/12] vhost: allocate virtio_net in memzone

2017-08-25 Thread Jianfeng Tan
Instead of allocate on the stack, change to allocate in memzone so that we can retrieve them in secondary processes. TODO: numa awareness. Signed-off-by: Jianfeng Tan --- lib/librte_vhost/socket.c | 2 ++ lib/librte_vhost/vhost.c | 34 -- lib/librte_vhost/vhost

[dpdk-dev] [PATCH 08/12] ethdev: support attach vdev in secondary process

2017-08-25 Thread Jianfeng Tan
When vdev driver requests an ethdev entry in secondary process, we will identify the correct entry in rte_eth_dev_data array and return the correct entry in the rte_eth_devices arrays. Signed-off-by: Jianfeng Tan --- lib/librte_ether/rte_ethdev_vdev.h | 26 +++--- 1 file chan

[dpdk-dev] [PATCH 04/12] vdev: move to drivers/bus

2017-08-25 Thread Jianfeng Tan
Move the vdev bus from lib/librte_eal to drivers/bus. As the crypto vdev helper function refers to data structure in rte_vdev.h, so we move those helper function into drivers/bus too. Signed-off-by: Jianfeng Tan --- config/common_base| 5 + drivers/bus/Makefile

[dpdk-dev] [PATCH 06/12] eal: add channel for primary/secondary communication

2017-08-25 Thread Jianfeng Tan
Previouly, there is only one way for primary/secondary to exchange messages, that is, primary process writes info into some predefind file, and secondary process reads info out. That cannot address the requirements: a. Secondary wants to send info to primary. b. Sending info at any time, instea

[dpdk-dev] [PATCH 05/12] bus/vdev: change log type from EAL to PMD

2017-08-25 Thread Jianfeng Tan
Signed-off-by: Jianfeng Tan --- drivers/bus/vdev/vdev.c | 10 ++ drivers/bus/vdev/vdev_logs.h | 40 2 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 drivers/bus/vdev/vdev_logs.h diff --git a/drivers/bus/vdev/vdev.c b/driv

  1   2   >