Re: [dpdk-dev] [PATCH v12 0/6] add Tx preparation

2016-12-06 Thread Andrew Rybchenko
On 12/06/2016 06:53 PM, Ferruh Yigit wrote: On 11/28/2016 11:03 AM, Thomas Monjalon wrote: We need attention of every PMD developers on this thread. Reminder of what Konstantin suggested: " - if the PMD supports TX offloads AND - if to be able use any of these offloads the upper layer SW would

Re: [dpdk-dev] [PATCH] vhost: allow for many vhost user ports

2016-12-06 Thread Yuanhan Liu
On Tue, Dec 06, 2016 at 11:42:36AM +, Jan Wickbom wrote: > > > @@ -189,7 +206,7 @@ > > > pfdset->fd[i].fd = -1; > > > pfdset->fd[i].rcb = pfdset- > > >fd[i].wcb = NULL; > > > pfdset->fd[i].dat = NULL; > > > - pfdset->num--; >

Re: [dpdk-dev] [PATCH 11/32] net/dpaa2: add dpaa2 vfio support

2016-12-06 Thread Hemant Agrawal
On 12/7/2016 2:34 AM, Thomas Monjalon wrote: 2016-12-04 23:47, Hemant Agrawal: Add support for using VFIO for dpaa2 based fsl-mc bus. Why do we need so much special code for interfacing VFIO on fsl-mc? Can you reuse some code from EAL VFIO? fsl-mc VFIO scans the objects. So, it is slightly

Re: [dpdk-dev] [PATCH 10/32] net/dpaa2: introducing dpaa2 bus driver for fsl-mc bus

2016-12-06 Thread Hemant Agrawal
On 12/7/2016 1:19 AM, Ferruh Yigit wrote: On 12/4/2016 6:17 PM, Hemant Agrawal wrote: The DPAA2 bus driver is a rte_bus driver which scans the fsl-mc bus. Signed-off-by: Hemant Agrawal --- drivers/net/Makefile| 2 +- drivers/net/dpaa2/Makefile | 60

Re: [dpdk-dev] [PATCH 09/32] lib/ether: add rte_device in rte_eth_dev

2016-12-06 Thread Hemant Agrawal
On 12/7/2016 1:18 AM, Ferruh Yigit wrote: On 12/4/2016 6:17 PM, Hemant Agrawal wrote: Signed-off-by: Hemant Agrawal --- 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 3c45a1f..6f5673f 100644

Re: [dpdk-dev] [PATCH 1/8] drivers/common/dpaa2: Run time assembler for Descriptor formation

2016-12-06 Thread Akhil Goyal
-Original Message- From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] Sent: Wednesday, December 07, 2016 1:53 AM To: Akhil Goyal ; Horia Geantă Cc: dev@dpdk.org; declan.dohe...@intel.com; pablo.de.lara.gua...@intel.com; Hemant Agrawal Subject: Re: [PATCH 1/8] drivers/common/dpaa2

Re: [dpdk-dev] [PATCH] vhost: optimize vhost memcpy

2016-12-06 Thread Wang, Zhihong
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Monday, December 5, 2016 6:37 PM > To: Wang, Zhihong > Cc: dev@dpdk.org; Thomas Monjalon > Subject: Re: [PATCH] vhost: optimize vhost memcpy > > On Mon, Dec 05, 2016 at 10:27:00AM +, Wang, Zhihong

[dpdk-dev] [PATCH v2 29/32] net/i40e: parse more VF parameter and configure

2016-12-06 Thread Wenzhuo Lu
When VF requested to configure TX queue, a few parameters are missed to be configured in PF host. This change have more fields parsed and configured for TX context. Signed-off-by: Chen Jing D(Mark) --- drivers/net/i40e/i40e_pf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --gi

[dpdk-dev] [PATCH v2 31/32] net/i40e: enhance in sanity check of MAC

2016-12-06 Thread Wenzhuo Lu
When VF sends request to add a new MAC address, PF host will check if it's a non-zero or unicast address, or it will return with error. In fact, VF still can set multicast address. This change remove to check if it's a unicast address. Signed-off-by: Chen Jing D(Mark) --- drivers/net/i40e/i40e_p

[dpdk-dev] [PATCH v2 32/32] app/testpmd: fix invalid port ID

2016-12-06 Thread Wenzhuo Lu
Some CLIs don't check the input port ID, it may cause segmentation fault (core dumped). Fixes: 425781ff5afe ("app/testpmd: add ixgbe VF management") Signed-off-by: Wenzhuo Lu Signed-off-by: Chen Jing D(Mark) --- app/test-pmd/cmdline.c | 24 1 file changed, 24 insertion

[dpdk-dev] [PATCH v2 30/32] net/i40e: support Linux VF to configure IRQ link list

2016-12-06 Thread Wenzhuo Lu
i40e PF host only support to work with DPDK VF driver, Linux VF driver is not supported. This change will enhance in configuring IRQ link list. This Change will identify VF client by number of vector requested. DPDK VF will ask only single one while Linux VF will request at least 2. It will have d

[dpdk-dev] [PATCH v2 28/32] net/i40e: return correct vsi_id

2016-12-06 Thread Wenzhuo Lu
PF host didn't return correct VSI id to VF. This change fix it. Signed-off-by: Chen Jing D(Mark) --- drivers/net/i40e/i40e_pf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c index 0f582ed..8319c2c 100644 --- a/driver

[dpdk-dev] [PATCH v2 25/32] app/testpmd: handle i40e in VF VLAN filter command

2016-12-06 Thread Wenzhuo Lu
modify set_vf_rx_vlan function to handle the i40e PMD. Signed-off-by: Bernard Iremonger --- app/test-pmd/config.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 36c47ab..0368dc6 100644 --- a/app/test-pmd/c

[dpdk-dev] [PATCH v2 27/32] net/i40e: change version number to support Linux VF

2016-12-06 Thread Wenzhuo Lu
i40e PF host only support to work with DPDK VF driver, Linux VF driver is not supported. This change will enhance in version number returned. Current version info returned won't be able to be recognized by Linux VF driver, change to values that both DPDK VF and Linux driver can recognize. The exp

[dpdk-dev] [PATCH v2 26/32] app/testpmd: initialize receive mode for VMDq

2016-12-06 Thread Wenzhuo Lu
Initialise VMDq in the init_port_config function in a similar way to how it is done in the VMDq sample application. Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c

[dpdk-dev] [PATCH v2 24/32] app/testpmd: add command to test VF VLAN tag on i40e

2016-12-06 Thread Wenzhuo Lu
command is: set vf vlan tag port_id vf_id on|off Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 93 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 100 insertions(+) diff --git a/app/test-pmd/cmdline.c b/ap

[dpdk-dev] [PATCH v2 23/32] app/testpmd: add command to test VF broadcast mode on i40e

2016-12-06 Thread Wenzhuo Lu
Add command to call rte_pmd_i40e_set_vf_broadcast. Add set vf broadcast in testpmd_funcs.rst file. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 87 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7 +++ 2 files changed, 94 insert

[dpdk-dev] [PATCH v2 22/32] app/testpmd: use multicast promiscuous mode on i40e

2016-12-06 Thread Wenzhuo Lu
Add testpmd CLI to set VF multicast promiscuous mode on i40e. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 86 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 8 +++ 2 files changed, 94 insertions(+) diff --git a/app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v2 21/32] app/testpmd: use unicast promiscuous mode on i40e

2016-12-06 Thread Wenzhuo Lu
Add testpmd CLI to set VF unicast promiscuous mode on i40e. Signed-off-by: Wenzhuo Lu --- app/test-pmd/cmdline.c | 92 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 8 +++ 2 files changed, 100 insertions(+) diff --git a/app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v2 20/32] app/testpmd: use VFD APIs on i40e

2016-12-06 Thread Wenzhuo Lu
The new VF Daemon (VFD) APIs is implemented on i40e. Change testpmd code to use them, including VF MAC anti-spoofing, VF VLAN anti-spoofing, TX loopback, VF VLAN strip, VF VLAN insert. Signed-off-by: Wenzhuo Lu Signed-off-by: Chen Jing D(Mark) Signed-off-by: Bernard Iremonger --- app/test-pmd/

[dpdk-dev] [PATCH v2 19/32] net/i40e: set VF VLAN filter from PF

2016-12-06 Thread Wenzhuo Lu
add rte_pmd_i40e_set_vf_vlan_filter API. User can call the API on PF to enable/disable a set of VF's VLAN filters. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 50 +++ drivers/net/i40e/rte_pmd_i40e.h | 22 ++ d

[dpdk-dev] [PATCH v2 17/32] net/i40e: set VF broadcast mode from PF

2016-12-06 Thread Wenzhuo Lu
Support enabling/disabling VF broadcast mode from PF. User can call the API on PF to enable/disable a specific VF's broadcast mode. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 43 +++ drivers/net/i40e/rte_pmd_i40e.h | 18

[dpdk-dev] [PATCH v2 18/32] net/i40e: set VF VLAN tag from PF

2016-12-06 Thread Wenzhuo Lu
Add rte_pmd_i40e_set_vf_vlan_tag API. User can call the API on PF to enable/disable a specific VF's VLAN tag. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 59 +++ drivers/net/i40e/rte_pmd_i40e.h | 18 ++ drivers/ne

[dpdk-dev] [PATCH v2 15/32] net/i40e: add VF vlan strip func

2016-12-06 Thread Wenzhuo Lu
Add a function to configure vlan strip enable/disable for specific SRIOV VF device. Signed-off-by: Chen Jing D(Mark) --- drivers/net/i40e/i40e_ethdev.c| 26 ++ drivers/net/i40e/rte_pmd_i40e.h | 20 drivers/net/i40e/rte_pmd_i40e_v

[dpdk-dev] [PATCH v2 16/32] net/i40e: add set VF VLAN insert function

2016-12-06 Thread Wenzhuo Lu
Support inserting VF VLAN id from PF. User can call the API on PF to insert a VLAN id to a specific VF. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c| 53 +++ drivers/net/i40e/rte_pmd_i40e.h | 19 +++ drivers/net/i40

[dpdk-dev] [PATCH v2 14/32] net/i40e: fix VF MAC address assignment

2016-12-06 Thread Wenzhuo Lu
If PF sets vf->mac_addr, in VF initialization hw->mac.addr will be set to that same value. It is possible to check if PF set a MAC address or not through the hw->mac.addr variable. hw->mac.addr set by i40e_vf_parse_hw_config(), call stack is: In PF side i40e_pf_host_process_cmd_get_vf_resources()

[dpdk-dev] [PATCH v2 13/32] net/i40e: set VF MAC from VF support

2016-12-06 Thread Wenzhuo Lu
Support changing VF default MAC address. This function is not supported if PF set the MAC address for the PF. Signed-off-by: Ferruh Yigit --- drivers/net/i40e/i40e_ethdev.h| 4 +++- drivers/net/i40e/i40e_ethdev_vf.c | 48 +-- 2 files changed, 44 insertion

[dpdk-dev] [PATCH v2 11/32] net/i40e: fix VF reset flow

2016-12-06 Thread Wenzhuo Lu
Add missing step during VF reset: PF should set I40E_VFGEN_RSTAT to ACTIVE at end of the VF reset operation or VF driver may not able to detect that reset is already completed. This patch also remove the unnecessary enum for vfr state. Fixes: 4861cde46116 ("i40e: new poll mode driver") CC: sta...

[dpdk-dev] [PATCH v2 10/32] net/i40e: implement ops for VF stats get/reset

2016-12-06 Thread Wenzhuo Lu
This patch implement vf_stats_get and vf_stats_reset ops for i40e. Signed-off-by: Qi Zhang --- drivers/net/i40e/i40e_ethdev.c | 64 ++ 1 file changed, 64 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 88ff

[dpdk-dev] [PATCH v2 12/32] net/i40e: set VF MAC from PF support

2016-12-06 Thread Wenzhuo Lu
Support setting VF MAC address from PF. User can call the API on PF to set a specific VF's MAC address. This will reset the VF. Signed-off-by: Ferruh Yigit --- app/test/Makefile | 8 +++ app/test/test_pmd_i40e.c | 96 +++ dri

[dpdk-dev] [PATCH v2 09/32] rte: add APIs for VF stats get/reset

2016-12-06 Thread Wenzhuo Lu
This patch add below two APIs so that VF statistics can be get/clear from PF side. rte_eth_vf_stats_get. rte_eth_vf_stats_reset. Signed-off-by: Qi Zhang --- lib/librte_ether/rte_ethdev.c | 47 +++ lib/librte_ether/rte_ethdev.h | 47

[dpdk-dev] [PATCH v2 06/32] net/i40e: set VF unicast promisc mode from PF

2016-12-06 Thread Wenzhuo Lu
Support enabling/disabling VF unicast promiscuous mode from PF. User can call the API on PF to enable/disable a specific VF's unicast promiscuous mode. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 36 +++ drivers/net/i40e/rte_pmd_i40e.h

[dpdk-dev] [PATCH v2 08/32] net/i40e: enable VF MTU change

2016-12-06 Thread Wenzhuo Lu
This patch implement mtu_set ops for i40e VF. Signed-off-by: Qi Zhang --- drivers/net/i40e/i40e_ethdev_vf.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index aa306d6..262c4c1 100644

[dpdk-dev] [PATCH v2 05/32] net/i40e: set TX loopback from PF

2016-12-06 Thread Wenzhuo Lu
Support enabling/disabling TX loopback from PF. User can call the API on PF to enable/disable TX loopback for all the PF and VFs. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 219 ++ drivers/net/i40e/rte_pmd_i40e.h | 16 +++ dri

[dpdk-dev] [PATCH v2 07/32] net/i40e: set VF multicast promisc mode from PF

2016-12-06 Thread Wenzhuo Lu
Support enabling/disabling VF multicast promiscuous mode from PF. User can call the API on PF to enable/disable a specific VF's multicast promiscuous mode. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 36 +++ drivers/net/i40e/rte_pmd_i40e.

[dpdk-dev] [PATCH v2 03/32] net/i40e: set VF MAC anti-spoofing from PF

2016-12-06 Thread Wenzhuo Lu
Support enabling/disabling VF MAC anti-spoofing from PF. User can call the API on PF to enable/disable a specific VF's MAC anti-spoofing. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 63 +++ drivers/net/i40e/rte_pmd_i40e.h | 19 +

[dpdk-dev] [PATCH v2 01/32] net/i40e: support link status notification

2016-12-06 Thread Wenzhuo Lu
Add an API to expose the ability, that PF can notify VF when link status changes, to APP. So if PF APP doesn't want to enable interruption but check link status by itself, PF APP can let VF know link status changed. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/Makefile | 4 ++-

[dpdk-dev] [PATCH v2 04/32] net/i40e: set VF VLAN anti-spoofing from PF

2016-12-06 Thread Wenzhuo Lu
Support enabling/disabling VF VLAN anti-spoofing from PF. User can call the API on PF to enable/disable a specific VF's VLAN anti-spoofing. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_ethdev.c| 116 +- drivers/net/i40e/i40e_ethdev.h|

[dpdk-dev] [PATCH v2 02/32] net/i40e: add callback to user on VF to PF mbox msg

2016-12-06 Thread Wenzhuo Lu
The callback asks the user application if it is allowed to perform the mailbox messages. If the return value from user is RTE_PMD_I40E_MB_EVENT_PROCEED then continue. If ACK or NACK, do nothing and send not_supported to VF. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_pf.c | 230 +++

[dpdk-dev] [PATCH v2 00/32] Support VFD and DPDK PF + kernel VF on i40e

2016-12-06 Thread Wenzhuo Lu
1, VF Daemon (VFD) VFD is an idea to control all the VFs from PF. As we need to support the scenario kernel PF + DPDK VF, DPDK follows the interface between kernel PF + kernel VF. We don't want to introduce too many new messages between PF and VF. So this patch set adds some new APIs to control VFs

Re: [dpdk-dev] [PATCH v2 2/5] net/e1000: add firmware version get

2016-12-06 Thread Lu, Wenzhuo
Hi Qiming, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Qiming Yang > Sent: Tuesday, December 6, 2016 3:16 PM > To: dev@dpdk.org > Cc: Yang, Qiming > Subject: [dpdk-dev] [PATCH v2 2/5] net/e1000: add firmware version get Seems commit log is missing.

Re: [dpdk-dev] [PATCH v2 03/12] crypto/armv8: Add core crypto operations for ARMv8

2016-12-06 Thread Jerin Jacob
On Tue, Dec 06, 2016 at 02:41:01PM -0800, Thomas Monjalon wrote: > 2016-12-07 03:35, Jerin Jacob: > > On Tue, Dec 06, 2016 at 10:42:51PM +0100, Thomas Monjalon wrote: > > > 2016-12-07 02:48, Jerin Jacob: > > > > On Tue, Dec 06, 2016 at 09:29:25PM +0100, Thomas Monjalon wrote: > > > > > 2016-12-06 1

Re: [dpdk-dev] [PATCH 1/3] net/e1000: optimize Rx/Tx log message level

2016-12-06 Thread Stephen Hemminger
On Sat, 3 Dec 2016 18:43:01 +0800 Qiming Yang wrote: > > +#ifdef RTE_LIBRTE_E1000_DEBUG_RX_FREE > +#define PMD_RX_FREE_LOG(level, fmt, args...) \ > + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) > +#else > +#define PMD_RX_FREE_LOG(level, fmt, args...) do { } while (0) > +#endi

Re: [dpdk-dev] [PATCH v2 03/12] crypto/armv8: Add core crypto operations for ARMv8

2016-12-06 Thread Thomas Monjalon
2016-12-07 03:35, Jerin Jacob: > On Tue, Dec 06, 2016 at 10:42:51PM +0100, Thomas Monjalon wrote: > > 2016-12-07 02:48, Jerin Jacob: > > > On Tue, Dec 06, 2016 at 09:29:25PM +0100, Thomas Monjalon wrote: > > > > 2016-12-06 18:32, zbigniew.bo...@caviumnetworks.com: > > > > > From: Zbigniew Bodek >

Re: [dpdk-dev] [RFC] ethdev: abstraction layer for QoS hierarchical scheduler

2016-12-06 Thread Thomas Monjalon
2016-12-06 11:51, Stephen Hemminger: > Rather than reinventing wheel which seems to be DPDK Standard > Procedure, could an existing abstraction be used? Stephen, you know that the DPDK standard procedure is to consider reviews and good comments ;)

Re: [dpdk-dev] [PATCH v2 03/12] crypto/armv8: Add core crypto operations for ARMv8

2016-12-06 Thread Jerin Jacob
On Tue, Dec 06, 2016 at 10:42:51PM +0100, Thomas Monjalon wrote: > 2016-12-07 02:48, Jerin Jacob: > > On Tue, Dec 06, 2016 at 09:29:25PM +0100, Thomas Monjalon wrote: > > > 2016-12-06 18:32, zbigniew.bo...@caviumnetworks.com: > > > > From: Zbigniew Bodek > > > > > > > > This patch adds core low-l

Re: [dpdk-dev] proposal deadline

2016-12-06 Thread Thomas Monjalon
2016-12-06 13:25, Stephen Hemminger: > On Sun, 04 Dec 2016 23:44:51 +0100 > Thomas Monjalon wrote: > > > Hi all, > > > > There were a lot of patches v1 submitted these last days, just before the > > proposal deadline (December 4). > > It's good to have a lot of features for 17.02, but it means w

Re: [dpdk-dev] [PATCH v2 03/12] crypto/armv8: Add core crypto operations for ARMv8

2016-12-06 Thread Thomas Monjalon
2016-12-07 02:48, Jerin Jacob: > On Tue, Dec 06, 2016 at 09:29:25PM +0100, Thomas Monjalon wrote: > > 2016-12-06 18:32, zbigniew.bo...@caviumnetworks.com: > > > From: Zbigniew Bodek > > > > > > This patch adds core low-level crypto operations > > > for ARMv8 processors. The assembly code is a bas

Re: [dpdk-dev] Hyper-v support

2016-12-06 Thread Stephen Hemminger
On Tue, 06 Dec 2016 22:25:29 +0100 Thomas Monjalon wrote: > 2016-12-06 12:25, Stephen Hemminger: > > 2016-12-01 12:21, Thomas Monjalon: > > > 2016-11-30 14:34, Varun: > > > > Hi, > > > > > > > > I would like to know if the latest DPDK (16.11) supports hyper-v? > > > > > > > > I couldn't f

Re: [dpdk-dev] proposal deadline

2016-12-06 Thread Stephen Hemminger
On Sun, 04 Dec 2016 23:44:51 +0100 Thomas Monjalon wrote: > Hi all, > > There were a lot of patches v1 submitted these last days, just before the > proposal deadline (December 4). > It's good to have a lot of features for 17.02, but it means we are going > to have a hard time to review, rework a

Re: [dpdk-dev] Hyper-v support

2016-12-06 Thread Thomas Monjalon
2016-12-06 12:25, Stephen Hemminger: > 2016-12-01 12:21, Thomas Monjalon: > > 2016-11-30 14:34, Varun: > > > Hi, > > > > > > I would like to know if the latest DPDK (16.11) supports hyper-v? > > > > > > I couldn't find any conclusive evidence online or in dpdk roadmap. Is it > > > likely that w

Re: [dpdk-dev] [PATCH] config: remove insecure warnings

2016-12-06 Thread Stephen Hemminger
On Sun, 4 Dec 2016 23:17:06 +0100 Thomas Monjalon wrote: > There was an option CONFIG_RTE_INSECURE_FUNCTION_WARNING (disabled by > default), which prevents from using some libc functions: > sprintf, snprintf, vsnprintf, strcpy, strncpy, strcat, strncat, sscanf, > strtok, strsep and strlen. > >

Re: [dpdk-dev] [PATCH v2 03/12] crypto/armv8: Add core crypto operations for ARMv8

2016-12-06 Thread Jerin Jacob
On Tue, Dec 06, 2016 at 09:29:25PM +0100, Thomas Monjalon wrote: > 2016-12-06 18:32, zbigniew.bo...@caviumnetworks.com: > > From: Zbigniew Bodek > > > > This patch adds core low-level crypto operations > > for ARMv8 processors. The assembly code is a base > > for an optimized PMD and is currently

Re: [dpdk-dev] [PATCH 18/32] net/dpaa2: introducing dpaa2 pmd driver

2016-12-06 Thread Thomas Monjalon
2016-12-06 19:49, Ferruh Yigit: > On 12/4/2016 6:17 PM, Hemant Agrawal wrote: > > + if (rte_eal_process_type() == RTE_PROC_PRIMARY) { > > + eth_dev->data->dev_private = rte_zmalloc( > > + "ethdev private structure", > > +

Re: [dpdk-dev] [PATCH 11/32] net/dpaa2: add dpaa2 vfio support

2016-12-06 Thread Thomas Monjalon
2016-12-04 23:47, Hemant Agrawal: > Add support for using VFIO for dpaa2 based fsl-mc bus. Why do we need so much special code for interfacing VFIO on fsl-mc? Can you reuse some code from EAL VFIO?

Re: [dpdk-dev] [PATCH 00/13] Introducing EAL Bus-Device-Driver Model

2016-12-06 Thread David Marchand
"Big patchset and a lot of things to look at. Here is a first look at it. On Sun, Dec 4, 2016 at 11:11 AM, Shreyansh Jain wrote: > In continuation to the RFC posted on 17/Nov [9], > A series of patches is being posted which attempts to create: > 1. A basic bus model > `- define rte_bus and

Re: [dpdk-dev] [PATCH v12 0/6] add Tx preparation

2016-12-06 Thread Ananyev, Konstantin
> Hi Konstantin, > > On Tue, Dec 06, 2016 at 10:56:26AM +, Ananyev, Konstantin wrote: > > > > Hi Adrien, > > > > > > > > On Mon, Dec 05, 2016 at 04:43:52PM +, Ananyev, Konstantin wrote: > > > [...] > > > > > On Fri, Dec 02, 2016 at 01:00:55AM +, Ananyev, Konstantin wrote: > > > > > [

Re: [dpdk-dev] [PATCH v2 03/12] crypto/armv8: Add core crypto operations for ARMv8

2016-12-06 Thread Thomas Monjalon
2016-12-06 18:32, zbigniew.bo...@caviumnetworks.com: > From: Zbigniew Bodek > > This patch adds core low-level crypto operations > for ARMv8 processors. The assembly code is a base > for an optimized PMD and is currently excluded > from the build. It's a bit sad that you cannot achieve the same

Re: [dpdk-dev] [PATCH v2 02/12] lib: add cryptodev type for the upcoming ARMv8 PMD

2016-12-06 Thread Thomas Monjalon
2016-12-06 18:32, zbigniew.bo...@caviumnetworks.com: > From: Zbigniew Bodek > > Add type and name for ARMv8 crypto PMD > > Signed-off-by: Zbigniew Bodek [...] > --- a/lib/librte_cryptodev/rte_cryptodev.h > +++ b/lib/librte_cryptodev/rte_cryptodev.h > @@ -66,6 +66,8 @@ > /**< KASUMI PMD device

Re: [dpdk-dev] Hyper-v support

2016-12-06 Thread Stephen Hemminger
On Thu, 01 Dec 2016 12:25:10 +0100 Thomas Monjalon wrote: > (fixed the email, sorry) > > 2016-12-01 12:21, Thomas Monjalon: > > 2016-11-30 14:34, Varun: > > > Hi, > > > > > > I would like to know if the latest DPDK (16.11) supports hyper-v? > > > > > > I couldn't find any conclusive evidence

Re: [dpdk-dev] [PATCH 1/8] drivers/common/dpaa2: Run time assembler for Descriptor formation

2016-12-06 Thread Thomas Monjalon
2016-12-05 18:25, Akhil Goyal: > FLib is a library which helps in making the descriptors which > is understood by NXP's SEC hardware. > This patch provides header files for command words which can be used > for descritptor formation. It seems this code is old. Does it exist as a standalone library

[dpdk-dev] [PATCH v3] net/i40evf: fix reporting of imissed packets

2016-12-06 Thread Tom Crugnale
Missed packets on RX were erroneously being assigned to the ierrors struct member. Change it to be assigned to imissed. Fixes: 4861cde4 ("i40e: new poll mode driver") Signed-off-by: Tom Crugnale --- v3: * Fixed coding style issues v2: * Fixed line breaks in original patch submission --- driver

Re: [dpdk-dev] [RFC] ethdev: abstraction layer for QoS hierarchical scheduler

2016-12-06 Thread Stephen Hemminger
On Wed, 30 Nov 2016 18:16:50 + Cristian Dumitrescu wrote: > This RFC proposes an ethdev-based abstraction layer for Quality of Service > (QoS) > hierarchical scheduler. The goal of the abstraction layer is to provide a > simple > generic API that is agnostic of the underlying HW, SW or mixe

Re: [dpdk-dev] [PATCH 28/32] net/dpaa2: add support for physical address usages

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:17 PM, Hemant Agrawal wrote: > DPAA2 HW accelerators with ARM SMMU can be configured > to use virtual or physical address from users space. > Adding support for Physical address (default). > > Signed-off-by: Hemant Agrawal > --- > config/defconfig_arm64-dpaa2-linuxapp-gcc | 1 + >

Re: [dpdk-dev] [PATCH 32/32] net/dpaa2: enable stashing for LS2088A devices

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:17 PM, Hemant Agrawal wrote: > Signed-off-by: Hemant Agrawal Not just specific to this patch, but overall, can you please try to provide more information in the comment logs. > --- > drivers/net/dpaa2/dpaa2_ethdev.c | 11 +++ > 1 file changed, 11 insertions(+) > > diff -

Re: [dpdk-dev] [PATCH 21/32] net/dpaa2: add rss flow distribution

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:17 PM, Hemant Agrawal wrote: > Signed-off-by: Hemant Agrawal > --- > doc/guides/nics/features/dpaa2.ini | 1 + > drivers/net/dpaa2/Makefile | 3 +- > drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 287 > + > drivers/net/dpaa2/base/dpaa

Re: [dpdk-dev] [PATCH 22/32] net/dpaa2: configure mac address at init

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:17 PM, Hemant Agrawal wrote: > Signed-off-by: Hemant Agrawal > --- > drivers/net/dpaa2/base/dpaa2_hw_dpni.h | 3 +++ > drivers/net/dpaa2/dpaa2_ethdev.c | 26 ++ > 2 files changed, 29 insertions(+) > > diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni

Re: [dpdk-dev] [PATCH 18/32] net/dpaa2: introducing dpaa2 pmd driver

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:17 PM, Hemant Agrawal wrote: > add support for dpaa2 architucture fsl-mc bus based dpaa2 pmd driver. > > Signed-off-by: Hemant Agrawal > --- > drivers/net/dpaa2/Makefile | 1 + > drivers/net/dpaa2/dpaa2_bus.c| 64 > ++-- > drivers/ne

Re: [dpdk-dev] [PATCH 20/32] net/dpaa2: add queue configuration support

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:17 PM, Hemant Agrawal wrote: > Signed-off-by: Hemant Agrawal > --- > doc/guides/nics/features/dpaa2.ini | 1 + > drivers/net/dpaa2/base/dpaa2_hw_dpni.h | 14 +- > drivers/net/dpaa2/base/dpaa2_hw_pvt.h | 21 +++ > drivers/net/dpaa2/dpaa2_ethdev.c | 254 >

Re: [dpdk-dev] [PATCH 19/32] net/dpaa2: adding eth ops to dpaa2

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:17 PM, Hemant Agrawal wrote: > Signed-off-by: Hemant Agrawal > --- > drivers/net/dpaa2/base/dpaa2_hw_dpni.h | 50 + > drivers/net/dpaa2/dpaa2_ethdev.c | 130 > - > 2 files changed, 179 insertions(+), 1 deletion(-) > create mode 1

Re: [dpdk-dev] [PATCH 17/32] net/dpaa2: dpbp based mempool hw offload driver

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:17 PM, Hemant Agrawal wrote: > DPBP represent a buffer pool instance in DPAA2-QBMAN > HW accelerator. > > All buffers needs to be programmed in the HW accelerator. > > Signed-off-by: Hemant Agrawal > --- > config/defconfig_arm64-dpaa2-linuxapp-gcc | 5 + > drivers/net/dpaa2/Mak

Re: [dpdk-dev] [PATCH 13/32] net/dpaa2: add debug log macros

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:17 PM, Hemant Agrawal wrote: > Signed-off-by: Hemant Agrawal > --- > config/defconfig_arm64-dpaa2-linuxapp-gcc | 2 + > drivers/net/dpaa2/Makefile| 5 ++ > drivers/net/dpaa2/dpaa2_logs.h| 77 > +++ > 3 files changed, 84 ins

Re: [dpdk-dev] [PATCH 15/32] net/dpaa2: dpio routine to affine to crypto threads

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:17 PM, Hemant Agrawal wrote: > Signed-off-by: Hemant Agrawal > --- > drivers/net/dpaa2/base/dpaa2_hw_dpio.c | 45 > ++ > drivers/net/dpaa2/base/dpaa2_hw_dpio.h | 3 +++ > 2 files changed, 48 insertions(+) > > diff --git a/drivers/net/dpaa2/base/dp

Re: [dpdk-dev] [PATCH 10/32] net/dpaa2: introducing dpaa2 bus driver for fsl-mc bus

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:17 PM, Hemant Agrawal wrote: > The DPAA2 bus driver is a rte_bus driver which scans the fsl-mc bus. > > Signed-off-by: Hemant Agrawal > --- > drivers/net/Makefile| 2 +- > drivers/net/dpaa2/Makefile | 60 ++ > drivers/net/dpa

Re: [dpdk-dev] [PATCH 09/32] lib/ether: add rte_device in rte_eth_dev

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:17 PM, Hemant Agrawal wrote: > Signed-off-by: Hemant Agrawal > --- > 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 3c45a1f..6f5673f 100644 > --- a/lib/librte_ether/rte_et

Re: [dpdk-dev] [PATCH 02/32] drivers/common: introducing dpaa2 mc driver

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:16 PM, Hemant Agrawal wrote: > This patch intoduces the DPAA2 MC(Management complex Driver) > > This driver is common to be used by various DPAA2 net, crypto > and other drivers > > Signed-off-by: Cristian Sovaiala > [Hemant:rebase and conversion to library for DPDK] Is this note

Re: [dpdk-dev] [PATCH 00/32] NXP DPAA2 PMD

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:16 PM, Hemant Agrawal wrote: > The patch series adds NXP’s QorIQ-Layerscape DPAA2 Architecture based > network SoC PMD. This version of the driver supports NXP LS208xA, > LS204xA and LS108x families Network SoCs. > > DPAA2, or Data Path Acceleration Architecture, is a hardware arch

Re: [dpdk-dev] [PATCH 01/32] doc: add dpaa2 nic details

2016-12-06 Thread Ferruh Yigit
On 12/4/2016 6:16 PM, Hemant Agrawal wrote: > Add the dpaa2 architecture and pmd details > > Signed-off-by: Hemant Agrawal > --- > doc/guides/nics/dpaa2.rst | 537 > + > doc/guides/nics/features/dpaa2.ini | 9 + > doc/guides/nics/index.rst

Re: [dpdk-dev] [PATCH v12 0/6] add Tx preparation

2016-12-06 Thread Yong Wang
> -Original Message- > From: Ananyev, Konstantin [mailto:konstantin.anan...@intel.com] > Sent: Sunday, December 4, 2016 4:11 AM > To: Yong Wang ; Thomas Monjalon > > Cc: Harish Patil ; dev@dpdk.org; Rahul Lakkireddy > ; Stephen Hurd > ; Jan Medala ; Jakub > Palider ; John Daley ; Adrien >

Re: [dpdk-dev] [PATCH 01/22] ethdev: introduce generic flow API

2016-12-06 Thread Chandran, Sugesh
Hi Adrien, Thanks for sending out the patches, Please find few comments below, Regards _Sugesh > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Kevin Traynor > Sent: Friday, December 2, 2016 9:07 PM > To: Adrien Mazarguil > Cc: dev@dpdk.org; Thomas Monjalon

[dpdk-dev] [PATCH v2 09/12] doc/armv8: update documentation about crypto PMD

2016-12-06 Thread zbigniew.bodek
From: Zbigniew Bodek Add documentation about the driver and update release notes. Signed-off-by: Zbigniew Bodek --- doc/guides/cryptodevs/armv8.rst| 82 ++ doc/guides/cryptodevs/index.rst| 1 + doc/guides/rel_notes/release_17_02.rst | 5 +++ 3

[dpdk-dev] [PATCH v2 12/12] app/test: add ARMv8 crypto tests and test vectors

2016-12-06 Thread zbigniew.bodek
From: Zbigniew Bodek Introduce unit tests for ARMv8 crypto PMD. Add test vectors for short cases such as 160 bytes. These test cases are ARMv8 specific since the code provides different processing paths for different input data sizes. Add test vectors for cipher + SHA256 MAC generation. User can

[dpdk-dev] [PATCH v2 11/12] crypto/armv8: update MAINTAINERS entry for ARMv8 crypto

2016-12-06 Thread zbigniew.bodek
From: Zbigniew Bodek Signed-off-by: Zbigniew Bodek --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 26d9590..ef1f25b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -445,6 +445,12 @@ M: Declan Doherty F: drivers/crypto/openssl/ F: doc/gu

[dpdk-dev] [PATCH v2 10/12] crypto/armv8: enable ARMv8 PMD in the configuration

2016-12-06 Thread zbigniew.bodek
From: Zbigniew Bodek Add CONFIG_RTE_LIBRTE_PMD_ARMV8_CRYPTO option to the common configuration file and enable it by default for ARM64. Signed-off-by: Zbigniew Bodek --- config/common_base | 6 ++ config/defconfig_arm64-armv8a-linuxapp-gcc | 2 ++ 2 files changed, 8

[dpdk-dev] [PATCH v2 08/12] mk/crypto/armv8: add PMD to the build system

2016-12-06 Thread zbigniew.bodek
From: Zbigniew Bodek Build ARMv8 crypto PMD if compiling for ARM64 and CONFIG_RTE_LIBRTE_PMD_ARMV8_CRYPTO option is enable in the configuration file. Signed-off-by: Zbigniew Bodek --- drivers/crypto/Makefile | 3 +++ mk/rte.app.mk | 3 +++ 2 files changed, 6 insertions(+) diff --git

[dpdk-dev] [PATCH v2 07/12] crypto/armv8: generate ASM symbols automatically

2016-12-06 Thread zbigniew.bodek
From: Zbigniew Bodek In order to acquire crypto_arg structure fields from the assembly code it is necessary to generate macros that will define offsets to those fields during app build. This will allow for free crypto_arg structure modifications in the future without the necessity to make similar

[dpdk-dev] [PATCH v2 06/12] crypto/armv8: add PMD optimized for ARMv8 processors

2016-12-06 Thread zbigniew.bodek
From: Zbigniew Bodek This patch introduces crypto poll mode driver using ARMv8 cryptographic extensions. CPU compatibility with this driver is detected in run-time and virtual crypto device will not be created if CPU doesn't provide: AES, SHA1, SHA2 and NEON. This PMD is optimized to provide per

[dpdk-dev] [PATCH v2 05/12] crypto/armv8: Add AES+SHA1 crypto operations for ARMv8

2016-12-06 Thread zbigniew.bodek
From: Zbigniew Bodek This patch adds AES-128-CBC + SHA1 low-level crypto operations for ARMv8 processors. The assembly code is a base for an optimized PMD and is currently excluded from the build. This code is optimized to provide performance boost for combined operations such as encryption + HM

[dpdk-dev] [PATCH v2 02/12] lib: add cryptodev type for the upcoming ARMv8 PMD

2016-12-06 Thread zbigniew.bodek
From: Zbigniew Bodek Add type and name for ARMv8 crypto PMD Signed-off-by: Zbigniew Bodek --- lib/librte_cryptodev/rte_cryptodev.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 8f63e8f..7bab79d 100644 -

[dpdk-dev] [PATCH v2 03/12] crypto/armv8: Add core crypto operations for ARMv8

2016-12-06 Thread zbigniew.bodek
From: Zbigniew Bodek This patch adds core low-level crypto operations for ARMv8 processors. The assembly code is a base for an optimized PMD and is currently excluded from the build. Standalone SHA1 and SHA256 are provided to support partial hashing of inner/outer key+padding and authentication

[dpdk-dev] [PATCH v2 00/12] Add crypto PMD optimized for ARMv8

2016-12-06 Thread zbigniew.bodek
From: Zbigniew Bodek Introduce crypto poll mode driver using ARMv8 cryptographic extensions. This PMD is optimized to provide performance boost for chained crypto operations processing, such as: * encryption + HMAC generation * decryption + HMAC validation. In particular, cipher only or hash only

[dpdk-dev] [PATCH v2 01/12] mk: fix build of assembly files for ARM64

2016-12-06 Thread zbigniew.bodek
From: Zbigniew Bodek Avoid using incorrect assembler (nasm) and unsupported flags when building for ARM64. Signed-off-by: Zbigniew Bodek --- mk/arch/arm64/rte.vars.mk| 1 - mk/toolchain/gcc/rte.vars.mk | 6 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mk/arch/arm64

Re: [dpdk-dev] [PATCH v1] doc: add details of sub-trees and maintainers

2016-12-06 Thread Thomas Monjalon
Thanks for documenting the process, John. 2016-12-02 16:44, John McNamara: > +The role of the component maintainers is to: > + I would add: * Coordinate how improvements and fixes are done. > +* Review patches for the component or delegate the review. > + This should be done, ideally, within 1-

Re: [dpdk-dev] [PATCH] net: introduce big and little endian types

2016-12-06 Thread Neil Horman
On Tue, Dec 06, 2016 at 05:00:05PM +, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: Nélio Laranjeiro [mailto:nelio.laranje...@6wind.com] > > Sent: Tuesday, December 6, 2016 4:28 PM > > To: Morten Brørup > > Cc: Wiles, Keith ; Ananyev, Konstantin > > ; Richardson, B

Re: [dpdk-dev] [PATCH v2 3/6] eventdev: implement the northbound APIs

2016-12-06 Thread Bruce Richardson
On Tue, Dec 06, 2016 at 09:22:17AM +0530, Jerin Jacob wrote: > This patch implements northbound eventdev API interface using > southbond driver interface > > Signed-off-by: Jerin Jacob > --- > config/common_base |6 + > lib/Makefile |

Re: [dpdk-dev] [PATCH v2] doc: correct description of attach to indirect mbuf

2016-12-06 Thread Thomas Monjalon
> > > Thanks, please keep the doc fixes coming. > > > > > > It would be better to quote the function in fixed width text like: > > > ``rte_pktmbuf_attach()``. > > > > None of the function names mentioned in this chapter are quoted. I can > > post a fix for that, but I think it should be a separate

Re: [dpdk-dev] [PATCH] doc: fix wrong verbatim text paragraphs

2016-12-06 Thread Thomas Monjalon
> > Reduce the indentation of these paragraphs since they are not part of the > > verbatim block. > > > > Signed-off-by: Baruch Siach > > Acked-by: John McNamara Applied (merged with 2 others), thanks

Re: [dpdk-dev] [PATCH v2] doc: prog_guide: fix section heading

2016-12-06 Thread Thomas Monjalon
2016-11-30 07:43, Baruch Siach: > This section only deals with Tx queues configuration. > > Acked-by: John McNamara > Signed-off-by: Baruch Siach Applied (merged with 2 others), thanks

Re: [dpdk-dev] [PATCH] doc: remove wrong document description

2016-12-06 Thread Thomas Monjalon
> > The Programmer’s Guide intro is not the Release Notes. > > > > Signed-off-by: Baruch Siach > > > Acked-by: John McNamara Applied (merged with 2 others), thanks

Re: [dpdk-dev] [PATCH] net: introduce big and little endian types

2016-12-06 Thread Ananyev, Konstantin
> -Original Message- > From: Nélio Laranjeiro [mailto:nelio.laranje...@6wind.com] > Sent: Tuesday, December 6, 2016 4:28 PM > To: Morten Brørup > Cc: Wiles, Keith ; Ananyev, Konstantin > ; Richardson, Bruce > ; dev@dpdk.org; Olivier Matz > ; Lu, Wenzhuo ; Adrien > Mazarguil > Subject:

  1   2   >