[dpdk-dev] [PATCH v6 02/17] net/i40e: store tunnel filter

2017-01-05 Thread Beilei Xing
Currently there's no tunnel filter stored in SW. This patch stores tunnel filter in SW with cuckoo hash, also adds protection if a tunnel filter has been added. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 169 - drivers/net/i40e/i40e_et

[dpdk-dev] [PATCH v6 03/17] net/i40e: store flow director filter

2017-01-05 Thread Beilei Xing
Currently there's no flow director filter stored in SW. This patch stores flow director filters in SW with cuckoo hash, also adds protection if a flow director filter has been added. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 48 +++ drivers/net/i40e/i40e_et

[dpdk-dev] [PATCH v6 04/17] net/i40e: restore ethertype filter

2017-01-05 Thread Beilei Xing
Add support of restoring ethertype filter in case filter dropped accidentally, as all filters need to be added and removed by user obviously for generic filter API. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 44 ++ 1 file changed, 44 i

[dpdk-dev] [PATCH v6 06/17] net/i40e: restore flow director filter

2017-01-05 Thread Beilei Xing
Add support of restoring flow director filter. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 1 + drivers/net/i40e/i40e_ethdev.h | 1 + drivers/net/i40e/i40e_fdir.c | 31 +++ 3 files changed, 33 insertions(+) diff --git a/drivers/net/i40e/i40e_e

[dpdk-dev] [PATCH v6 05/17] net/i40e: restore tunnel filter

2017-01-05 Thread Beilei Xing
Add support of restoring tunnel filter. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 6e6fc55..a636dc0 100644 --- a/drivers/net/i40e/i4

[dpdk-dev] [PATCH v6 07/17] net/i40e: add flow validate function

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_validation function to check if a flow is valid according to the flow pattern. i40e_flow_parse_ethertype_filter is added first, it also gets the ethertype info. i40e_flow.c is added to handle all generic filter events. Signed-off-by: Beilei Xing --- drivers/net/i40e/Mak

[dpdk-dev] [PATCH v6 08/17] net/i40e: parse flow director filter

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_parse_fdir_filter to check if a rule is a flow director rule according to the flow pattern, and the function also gets the flow director info. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 56 +--- drivers/net/i40e/i40e_ethdev.h | 55 drivers/ne

[dpdk-dev] [PATCH v6 09/17] net/i40e: parse tunnel filter

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_parse_tunnel_filter to check if a rule is a tunnel rule according to items of the flow pattern, and the function also gets the tunnel info. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 412 +++ 1 file changed, 412

[dpdk-dev] [PATCH v6 10/17] net/i40e: add flow create function

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_create function to create a rule. It will check if a flow matches ethertype filter or flow director filter or tunnel filter, if the flow matches some kind of filter, then set the filter to HW. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 16 ++---

[dpdk-dev] [PATCH v6 11/17] net/i40e: add flow destroy function

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_destroy function to destroy a flow for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index cc1656a..4d

[dpdk-dev] [PATCH v6 12/17] net/i40e: destroy ethertype filter

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_destroy_ethertype_filter function to destroy a ethertype filter for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 41 + 1 file changed, 41 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/n

[dpdk-dev] [PATCH v6 13/17] net/i40e: destroy tunnel filter

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_destroy_tunnel_filter function to destroy a tunnel filter for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 41 + 1 file changed, 41 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40

[dpdk-dev] [PATCH v6 14/17] net/i40e: destroy flow directory filter

2017-01-05 Thread Beilei Xing
This patch supports destroying a flow directory filter for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index 2603e9e..f56c404 100644 --- a/drivers/net/i40e/i

[dpdk-dev] [PATCH v6 16/17] net/i40e: flush ethertype filters

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_flush_ethertype_filter function to flush all ethertype filters, including filters in SW and HW. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/driv

[dpdk-dev] [PATCH v6 15/17] net/i40e: add flow flush function

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_flush function to flush all filters for users. And flow director flush function is involved first. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.h | 1 + drivers/net/i40e/i40e_fdir.c | 4 +--- drivers/net/i40e/i40e_flow.c | 51 +++

[dpdk-dev] [PATCH v6 17/17] net/i40e: flush tunnel filters

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_flush_tunnel_filter function to flush all tunnel filters, including filters in SW and HW. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 37 + 1 file changed, 37 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c

Re: [dpdk-dev] Running DPDK as an unprivileged user

2017-01-05 Thread Tan, Jianfeng
Hi Benjamin, On 1/5/2017 5:34 AM, Walker, Benjamin wrote: On Wed, 2017-01-04 at 19:39 +0800, Tan, Jianfeng wrote: Hi Benjamin, On 12/30/2016 4:41 AM, Walker, Benjamin wrote: DPDK today begins by allocating all of the required hugepages, then finds all of the physical addresses for those hug

[dpdk-dev] [PATCH v6 00/17] net/i40e: consistent filter API

2017-01-05 Thread Beilei Xing
The patch set depends on Adrien's Generic flow API(rte_flow). The patches mainly finish following functions: 1) Store and restore all kinds of filters. 2) Parse all kinds of filters. 3) Add flow validate function. 4) Add flow create function. 5) Add flow destroy function. 6) Add flow flush functio

Re: [dpdk-dev] [PATCH v2 1/5] eal: Set numa node value for system which not support NUMA.

2017-01-05 Thread Stephen Hemminger
On Thu, 5 Jan 2017 04:01:45 -0800 nickcooper-zhangtonghao wrote: > The NUMA node information for PCI devices provided through > sysfs is invalid for AMD Opteron(TM) Processor 62xx and 63xx > on Red Hat Enterprise Linux 6, and VMs on some hypervisors. > > Signed-off-by: nickcooper-zhangtonghao

Re: [dpdk-dev] [PATCH] net/mlx5: fix Tx doorbell

2017-01-05 Thread Nélio Laranjeiro
On Thu, Jan 05, 2017 at 03:19:35PM +, Ferruh Yigit wrote: > On 12/9/2016 1:27 PM, Nelio Laranjeiro wrote: > > Too much data is uselessly written to the Tx doorbell. > > > > Fixes: 1d88ba171942 ("net/mlx5: refactor Tx data path") > > > > Signed-off-by: Nelio Laranjeiro > > Acked-by: Adrien Ma

Re: [dpdk-dev] [PATCH] net/mlx5: fix Tx doorbell

2017-01-05 Thread Adrien Mazarguil
Hi Ferruh, On Thu, Jan 05, 2017 at 03:19:35PM +, Ferruh Yigit wrote: > On 12/9/2016 1:27 PM, Nelio Laranjeiro wrote: > > Too much data is uselessly written to the Tx doorbell. > > > > Fixes: 1d88ba171942 ("net/mlx5: refactor Tx data path") > > > > Signed-off-by: Nelio Laranjeiro > > Acked-b

Re: [dpdk-dev] [PATCH v2 1/5] eal: Set numa node value for system which not support NUMA.

2017-01-05 Thread Stephen Hemminger
On Thu, 5 Jan 2017 04:01:45 -0800 nickcooper-zhangtonghao wrote: > + /* The NUMA node information for PCI devices provided through > + * sysfs is invalid for AMD Opteron(TM) Processor 62xx and 63xx > + * on Red Hat Enterprise Linux 6, and VMs on some hypervi

[dpdk-dev] [PATCH v4] rte_mbuf: add rte_pktmbuf_linearize

2017-01-05 Thread Tomasz Kulasek
This patch adds function rte_pktmbuf_linearize to let crypto PMD coalesce chained mbuf before crypto operation and extend their capabilities to support segmented mbufs when device cannot handle them natively. Included unit tests for rte_pktmbuf_linearize functionality: 1) Creates banch of segmen

[dpdk-dev] [PATCH v4 1/3] crypto: add sgl support in sw PMDs

2017-01-05 Thread Tomasz Kulasek
This patch introduces RTE_CRYPTODEV_FF_MBUF_SCATTER_GATHER feature flag informing that selected crypto device supports segmented mbufs natively and doesn't need to be coalesced before crypto operation. While using segmented buffers in crypto devices may have unpredictable results, for PMDs which d

[dpdk-dev] [PATCH v4 0/3] Chained Mbufs support in SW PMDs

2017-01-05 Thread Tomasz Kulasek
This patch set adds support of scattered-gather list for SW PMDs. As of now, application needs to reserve continuous block of memory for mbufs which is not always the case. Hence needed to support chaining of mbufs which are smaller in size but can be used if chained. Above work involves: --

[dpdk-dev] [PATCH v4 2/3] crypto: add sgl support in openssl PMD

2017-01-05 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- doc/guides/cryptodevs/openssl.rst|3 +- drivers/crypto/openssl/rte_openssl_pmd.c | 329 +++--- 2 files changed, 259 insertions(+), 73 deletions(-) diff --git a/doc/guides/cryptodevs/openssl.rst b/doc/guides/cryptodevs/opens

[dpdk-dev] [PATCH v4 3/3] test: add sgl unit tests for crypto devices

2017-01-05 Thread Tomasz Kulasek
This patch provides unit tests for set of cipher/hash combinations covering currently implemented crypto PMD's and allowing to verify scatter gather support. Signed-off-by: Daniel Mrzyglod Signed-off-by: Tomasz Kulasek --- app/test/test_cryptodev.c | 386 ++- a

Re: [dpdk-dev] [PATCH v3 1/5] rte_mbuf: add rte_pktmbuf_linearize

2017-01-05 Thread Kulasek, TomaszX
Hi Pablo > -Original Message- > From: De Lara Guarch, Pablo > Sent: Thursday, January 5, 2017 16:37 > To: Kulasek, TomaszX ; dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v3 1/5] rte_mbuf: add > rte_pktmbuf_linearize > > Hi Tomasz, > > > -Original Message- > > From: dev [mailto:d

Re: [dpdk-dev] [PATCH] net/mlx5: fix Tx doorbell

2017-01-05 Thread Adrien Mazarguil
On Thu, Jan 05, 2017 at 05:32:26PM +0100, Adrien Mazarguil wrote: > Hi Ferruh, > > On Thu, Jan 05, 2017 at 03:19:35PM +, Ferruh Yigit wrote: > > On 12/9/2016 1:27 PM, Nelio Laranjeiro wrote: > > > Too much data is uselessly written to the Tx doorbell. > > > > > > Fixes: 1d88ba171942 ("net/mlx

Re: [dpdk-dev] [PATCH] net/mlx5: fix Tx doorbell

2017-01-05 Thread Ferruh Yigit
On 1/5/2017 4:52 PM, Adrien Mazarguil wrote: > On Thu, Jan 05, 2017 at 05:32:26PM +0100, Adrien Mazarguil wrote: >> Hi Ferruh, >> >> On Thu, Jan 05, 2017 at 03:19:35PM +, Ferruh Yigit wrote: >>> On 12/9/2016 1:27 PM, Nelio Laranjeiro wrote: Too much data is uselessly written to the Tx door

Re: [dpdk-dev] [PATCH v6 00/17] net/i40e: consistent filter API

2017-01-05 Thread Ferruh Yigit
On 1/5/2017 3:45 PM, Beilei Xing wrote: > The patch set depends on Adrien's Generic flow API(rte_flow). > > The patches mainly finish following functions: > 1) Store and restore all kinds of filters. > 2) Parse all kinds of filters. > 3) Add flow validate function. > 4) Add flow create function. >

Re: [dpdk-dev] [PATCH v6 01/17] net/i40e: store ethertype filter

2017-01-05 Thread Ferruh Yigit
On 1/5/2017 3:45 PM, Beilei Xing wrote: > Currently there's no ethertype filter stored in SW. > This patch stores ethertype filter with cuckoo hash > in SW, also adds protection if an ethertype filter > has been added. > > Signed-off-by: Beilei Xing > --- <...> > @@ -939,9 +946,18 @@ eth_i40e_d

Re: [dpdk-dev] [PATCH v6 10/17] net/i40e: add flow create function

2017-01-05 Thread Ferruh Yigit
On 1/5/2017 3:46 PM, Beilei Xing wrote: > This patch adds i40e_flow_create function to create a > rule. It will check if a flow matches ethertype filter > or flow director filter or tunnel filter, if the flow > matches some kind of filter, then set the filter to HW. > > Signed-off-by: Beilei Xing

Re: [dpdk-dev] [PATCH] net/mlx5: fix Tx doorbell

2017-01-05 Thread Adrien Mazarguil
On Thu, Jan 05, 2017 at 05:01:27PM +, Ferruh Yigit wrote: > On 1/5/2017 4:52 PM, Adrien Mazarguil wrote: > > On Thu, Jan 05, 2017 at 05:32:26PM +0100, Adrien Mazarguil wrote: > >> Hi Ferruh, > >> > >> On Thu, Jan 05, 2017 at 03:19:35PM +, Ferruh Yigit wrote: > >>> On 12/9/2016 1:27 PM, Neli

Re: [dpdk-dev] [PATCH] net/mlx5: fix Tx doorbell

2017-01-05 Thread Ferruh Yigit
On 1/5/2017 6:12 PM, Adrien Mazarguil wrote: > On Thu, Jan 05, 2017 at 05:01:27PM +, Ferruh Yigit wrote: >> On 1/5/2017 4:52 PM, Adrien Mazarguil wrote: >>> On Thu, Jan 05, 2017 at 05:32:26PM +0100, Adrien Mazarguil wrote: Hi Ferruh, On Thu, Jan 05, 2017 at 03:19:35PM +, Ferr

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-05 Thread Adrien Mazarguil
Hi Konstantin, On Thu, Jan 05, 2017 at 11:32:38AM +, Ananyev, Konstantin wrote: > Hi Adrien, > > > > > On Thu, Jan 05, 2017 at 07:56:08AM +0800, Tiwei Bie wrote: > > > On Thu, Jan 05, 2017 at 01:44:18AM +0800, Ananyev, Konstantin wrote: > > > [...] > > > > > > > > > > > > I understand that.

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/mlx5: fix multi segment packet send

2017-01-05 Thread Ferruh Yigit
On 12/27/2016 10:21 AM, Adrien Mazarguil wrote: > Hi Shahaf, > > On Mon, Dec 26, 2016 at 05:28:36PM +0200, Shahaf Shuler wrote: >> Dseg pointer is not initialised when the first segment is inlined >> causing a segmentation fault in such situation. >> >> Fixes: 2a66cf378954 ("net/mlx5: support inli

[dpdk-dev] [PATCH] pmdinfogen: Resolve coverity scan forward null issue

2017-01-05 Thread Neil Horman
From: Neil Horman Coverity issue 139593 reports a forward null dereference from a for loop that works with a variable previously tested for null that had no error handling or condition to prevent it. Pretty obvious fix below. Signed-off-by: Neil Horman CC: john.mcnam...@intel.com CC: thomas.mo

Re: [dpdk-dev] [PATCH v2] net/mlx5: add support for ConnectX-5 NICs

2017-01-05 Thread Adrien Mazarguil
Hi Koh, A few remaining comments, please see below. On Thu, Jan 05, 2017 at 03:52:54AM -0800, Yongseok Koh wrote: > Add PCI device ID for ConnectX-5 and enable multi-packet send for PF and VF > along with changing documentation and release note. > > Signed-off-by: Yongseok Koh > --- > > Connec

Re: [dpdk-dev] [dpdk-stable] [PATCH 1/5] net/qede: fix scatter-gather issue

2017-01-05 Thread Harish Patil
> >On 12/31/2016 8:16 AM, Rasesh Mody wrote: >> From: Harish Patil >> >> - Make qede_process_sg_pkts() inline and add unlikely check >> - Fix mbuf segment chaining logic in qede_process_sg_pkts() >> - Change qede_encode_sg_bd() to return total segments required >> - Fix first TX buffer descri

[dpdk-dev] [PATCH] doc: fix a typo in proc_info guide.

2017-01-05 Thread Rami Rosen
This patch fixes a typo in proc_info guide (tools), doc/guides/tools/proc_info.rst. Signed-off-by: Rami Rosen --- doc/guides/tools/proc_info.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/tools/proc_info.rst b/doc/guides/tools/proc_info.rst index baaf977..fd17

Re: [dpdk-dev] [dpdk-stable] [PATCH 1/5] net/qede: fix scatter-gather issue

2017-01-05 Thread Mody, Rasesh
> From: Harish Patil [mailto:harish.pa...@qlogic.com] > Sent: Thursday, January 05, 2017 1:12 PM > > > > >On 12/31/2016 8:16 AM, Rasesh Mody wrote: > >> From: Harish Patil > >> > >> - Make qede_process_sg_pkts() inline and add unlikely check > >> - Fix mbuf segment chaining logic in qede_proces

Re: [dpdk-dev] [PATCH v2 1/5] eal: Set numa node value for system which not support NUMA.

2017-01-05 Thread Yong Wang
> -Original Message- > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > Sent: Thursday, January 5, 2017 6:24 AM > To: nickcooper-zhangtonghao ; dev@dpdk.org; Yong > Wang > Subject: Re: [dpdk-dev] [PATCH v2 1/5] eal: Set numa node value for system > which not support NUMA. > > On 1/5/2

Re: [dpdk-dev] [PATCH v7 05/27] net/i40e: set Tx loopback from PF

2017-01-05 Thread Wu, Jingjing
Is the Tx lookback meaning as VEB mode ore VEPA mode? If so, how about change the API's name to set_switch_mode? Another comment is: you removed all mac vlan filters before changing The mode, and restore them after changing. How about vlan filters? The Patch for vlan anti-spoof enables it, correct

Re: [dpdk-dev] [PATCH v7 06/27] net/i40e: set VF unicast promisc mode from PF

2017-01-05 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Tuesday, January 3, 2017 2:54 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: [dpdk-dev] [PATCH v7 06/27] net/i40e: set VF unicast promisc mode > from PF > > Support enabling/disabling VF u

Re: [dpdk-dev] [PATCH v7 10/27] net/i40e: set VF MAC from PF support

2017-01-05 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Tuesday, January 3, 2017 2:55 PM > To: dev@dpdk.org > Cc: Yigit, Ferruh > Subject: [dpdk-dev] [PATCH v7 10/27] net/i40e: set VF MAC from PF support > > From: Ferruh Yigit > > Support setting

Re: [dpdk-dev] [PATCH v7 03/27] net/i40e: set VF MAC anti-spoofing from PF

2017-01-05 Thread Wu, Jingjing
> + > + vsi->info.valid_sections = > cpu_to_le16(I40E_AQ_VSI_PROP_SECURITY_VALID); > + if (on) > + vsi->info.sec_flags |= > I40E_AQ_VSI_SEC_FLAG_ENABLE_MAC_CHK; > + else > + vsi->info.sec_flags &= > ~I40E_AQ_VSI_SEC_FLAG_ENABLE_MAC_CHK; > + > + memset(&ctxt,

Re: [dpdk-dev] [PATCH v7 14/27] net/i40e: set VF VLAN insertion from PF

2017-01-05 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Tuesday, January 3, 2017 2:55 PM > To: dev@dpdk.org > Cc: Iremonger, Bernard > Subject: [dpdk-dev] [PATCH v7 14/27] net/i40e: set VF VLAN insertion from PF > > From: Bernard Iremonger > > Su

Re: [dpdk-dev] [PATCH v7 17/27] net/i40e: set VF VLAN filter from PF

2017-01-05 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Tuesday, January 3, 2017 2:55 PM > To: dev@dpdk.org > Cc: Iremonger, Bernard > Subject: [dpdk-dev] [PATCH v7 17/27] net/i40e: set VF VLAN filter from PF > > From: Bernard Iremonger > > add r

[dpdk-dev] [PATCH v3] net/mlx5: add support for ConnectX-5 NICs

2017-01-05 Thread Yongseok Koh
Add PCI device ID for ConnectX-5 and enable multi-packet send for PF and VF along with changing documentation and release note. Signed-off-by: Yongseok Koh --- ConnectX-5 is a newly announced NIC of Mellanox. This patch includes basic enablement of ConnectX-5 as well as documentation. config/c

Re: [dpdk-dev] [PATCH v7 18/27] app/testpmd: use VFD APIs on i40e

2017-01-05 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Tuesday, January 3, 2017 2:55 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Chen, Jing D > ; Iremonger, Bernard > Subject: [dpdk-dev] [PATCH v7 18/27] app/testpmd: use VFD APIs on i40e > > The new

Re: [dpdk-dev] [PATCH v7 19/27] app/testpmd: use unicast promiscuous mode on i40e

2017-01-05 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Tuesday, January 3, 2017 2:55 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: [dpdk-dev] [PATCH v7 19/27] app/testpmd: use unicast promiscuous > mode on i40e > > Add testpmd CLI to set VF u

[dpdk-dev] [PATCH] doc: fix a link in contribution guide

2017-01-05 Thread Yongseok Koh
A referenced document in the Linux Kernel has been moved to a sub-directory. Signed-off-by: Yongseok Koh --- doc/guides/contributing/patches.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guides/contributing/patches.rst b/doc/guides/contributing/patches.rst inde

Re: [dpdk-dev] [PATCH v7 25/27] net/i40e: set/clear VF stats from PF

2017-01-05 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Tuesday, January 3, 2017 2:55 PM > To: dev@dpdk.org > Cc: Zhang, Qi Z > Subject: [dpdk-dev] [PATCH v7 25/27] net/i40e: set/clear VF stats from PF > > From: Qi Zhang > > This patch add suppor

Re: [dpdk-dev] [PATCH v7 26/27] net/i40e: fix segmentation fault in close

2017-01-05 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Tuesday, January 3, 2017 2:55 PM > To: dev@dpdk.org > Cc: Iremonger, Bernard ; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH v7 26/27] net/i40e: fix segmentation fault in close > > From: Bernard

Re: [dpdk-dev] [PATCH 2/6] i40e: don't refer to eth_dev->pci_dev

2017-01-05 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Stephen Hemminger > Sent: Tuesday, January 3, 2017 7:09 AM > To: dev@dpdk.org > Cc: Stephen Hemminger > Subject: [dpdk-dev] [PATCH 2/6] i40e: don't refer to eth_dev->pci_dev > > Later patches remove pci_dev from

Re: [dpdk-dev] [RFC] igb_uio: deprecate iomem and ioport mapping

2017-01-05 Thread Tan, Jianfeng
Hi, > -Original Message- > From: Yigit, Ferruh > Sent: Thursday, January 5, 2017 11:24 PM > To: Tan, Jianfeng; Stephen Hemminger > Cc: dev@dpdk.org; david.march...@6wind.com > Subject: Re: [RFC] igb_uio: deprecate iomem and ioport mapping > > On 12/5/2016 7:04 AM, Tan, Jianfeng wrote: > >

[dpdk-dev] [PATCH] ixgbe: fix wrong VMDq function name

2017-01-05 Thread Wenzhuo Lu
The function name ixgbe_vmdq_mode_check is not right. This function checks if Virtualization Technology is enabled. It's for both VMDq and IOV. Others may be misled by the current name. Fixes: fe3a45fd4104 ("ixgbe: add VMDq support") CC: sta...@dpdk.org Signed-off-by: Wenzhuo Lu --- drivers/net

Re: [dpdk-dev] [PATCH RFC 0/2] Allow vectorized Rx with 4096 desc ring size on Intel NICs.

2017-01-05 Thread Wu, Jingjing
> -Original Message- > From: Yigit, Ferruh > Sent: Wednesday, January 4, 2017 1:25 AM > To: Thomas Monjalon ; Ilya Maximets > > Cc: dev@dpdk.org; Zhang, Helin ; Ananyev, Konstantin > ; Wu, Jingjing ; > Heetae Ahn ; Richardson, Bruce > ; Lu, Wenzhuo > Subject: Re: [dpdk-dev] [PATCH RFC 0

Re: [dpdk-dev] [PATCH v3 3/8] crypto/armv8: add PMD optimized for ARMv8 processors

2017-01-05 Thread Jianbo Liu
On 5 January 2017 at 01:33, wrote: > 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,

Re: [dpdk-dev] [PATCH v7 04/27] net/i40e: set VF VLAN anti-spoofing from PF

2017-01-05 Thread Lu, Wenzhuo
Hi Jingjing, > -Original Message- > From: Wu, Jingjing > Sent: Thursday, January 5, 2017 4:52 PM > To: Lu, Wenzhuo; dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: RE: [dpdk-dev] [PATCH v7 04/27] net/i40e: set VF VLAN anti-spoofing > from PF > > > > > -Original Message- > > From: dev

Re: [dpdk-dev] [PATCH v7 05/27] net/i40e: set Tx loopback from PF

2017-01-05 Thread Lu, Wenzhuo
Hi Jingjing, > -Original Message- > From: Wu, Jingjing > Sent: Friday, January 6, 2017 8:33 AM > To: Lu, Wenzhuo; dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: RE: [dpdk-dev] [PATCH v7 05/27] net/i40e: set Tx loopback from PF > > Is the Tx lookback meaning as VEB mode ore VEPA mode? > If so,

Re: [dpdk-dev] [PATCH v7 06/27] net/i40e: set VF unicast promisc mode from PF

2017-01-05 Thread Lu, Wenzhuo
Hi Jingjing, > -Original Message- > From: Wu, Jingjing > Sent: Friday, January 6, 2017 8:32 AM > To: Lu, Wenzhuo; dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: RE: [dpdk-dev] [PATCH v7 06/27] net/i40e: set VF unicast promisc > mode from PF > > > > > -Original Message- > > From: dev

[dpdk-dev] [PATCH v7 00/17] net/i40e: consistent filter API

2017-01-05 Thread Beilei Xing
The patch set depends on Adrien's Generic flow API(rte_flow). The patches mainly finish following functions: 1) Store and restore all kinds of filters. 2) Parse all kinds of filters. 3) Add flow validate function. 4) Add flow create function. 5) Add flow destroy function. 6) Add flow flush functio

[dpdk-dev] [PATCH v7 04/17] net/i40e: restore ethertype filter

2017-01-05 Thread Beilei Xing
Add support of restoring ethertype filter in case filter dropped accidentally, as all filters need to be added and removed by user obviously for generic filter API. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 44 ++ 1 file changed, 44 i

[dpdk-dev] [PATCH v7 02/17] net/i40e: store tunnel filter

2017-01-05 Thread Beilei Xing
Currently there's no tunnel filter stored in SW. This patch stores tunnel filter in SW with cuckoo hash, also adds protection if a tunnel filter has been added. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 190 - drivers/net/i40e/i40e_et

[dpdk-dev] [PATCH v7 03/17] net/i40e: store flow director filter

2017-01-05 Thread Beilei Xing
Currently there's no flow director filter stored in SW. This patch stores flow director filters in SW with cuckoo hash, also adds protection if a flow director filter has been added. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 68 ++ drivers/net/i40e/

[dpdk-dev] [PATCH v7 01/17] net/i40e: store ethertype filter

2017-01-05 Thread Beilei Xing
Currently there's no ethertype filter stored in SW. This patch stores ethertype filter with cuckoo hash in SW, also adds protection if an ethertype filter has been added. Signed-off-by: Beilei Xing --- drivers/net/i40e/Makefile | 1 + drivers/net/i40e/i40e_ethdev.c | 188 +

[dpdk-dev] [PATCH v7 05/17] net/i40e: restore tunnel filter

2017-01-05 Thread Beilei Xing
Add support of restoring tunnel filter. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 5720709..ec495ee 100644 --- a/drivers/net/i40e/i4

[dpdk-dev] [PATCH v7 07/17] net/i40e: add flow validate function

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_validation function to check if a flow is valid according to the flow pattern. i40e_flow_parse_ethertype_filter is added first, it also gets the ethertype info. i40e_flow.c is added to handle all generic filter events. Signed-off-by: Beilei Xing --- drivers/net/i40e/Mak

[dpdk-dev] [PATCH v7 06/17] net/i40e: restore flow director filter

2017-01-05 Thread Beilei Xing
Add support of restoring flow director filter. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 1 + drivers/net/i40e/i40e_ethdev.h | 1 + drivers/net/i40e/i40e_fdir.c | 31 +++ 3 files changed, 33 insertions(+) diff --git a/drivers/net/i40e/i40e_e

[dpdk-dev] [PATCH v7 08/17] net/i40e: parse flow director filter

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_parse_fdir_filter to check if a rule is a flow director rule according to the flow pattern, and the function also gets the flow director info. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 56 +--- drivers/net/i40e/i40e_ethdev.h | 55 drivers/ne

[dpdk-dev] [PATCH v7 09/17] net/i40e: parse tunnel filter

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_parse_tunnel_filter to check if a rule is a tunnel rule according to items of the flow pattern, and the function also gets the tunnel info. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 412 +++ 1 file changed, 412

[dpdk-dev] [PATCH v7 10/17] net/i40e: add flow create function

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_create function to create a rule. It will check if a flow matches ethertype filter or flow director filter or tunnel filter, if the flow matches some kind of filter, then set the filter to HW. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 16 ++---

[dpdk-dev] [PATCH v7 12/17] net/i40e: destroy ethertype filter

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_destroy_ethertype_filter function to destroy a ethertype filter for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 41 + 1 file changed, 41 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/n

[dpdk-dev] [PATCH v7 11/17] net/i40e: add flow destroy function

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_destroy function to destroy a flow for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index d4d9f50..522

[dpdk-dev] [PATCH v7 13/17] net/i40e: destroy tunnel filter

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_destroy_tunnel_filter function to destroy a tunnel filter for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 41 + 1 file changed, 41 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40

[dpdk-dev] [PATCH v7 16/17] net/i40e: flush ethertype filters

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_flush_ethertype_filter function to flush all ethertype filters, including filters in SW and HW. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/driv

[dpdk-dev] [PATCH v7 15/17] net/i40e: add flow flush function

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_flush function to flush all filters for users. And flow director flush function is involved first. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.h | 1 + drivers/net/i40e/i40e_fdir.c | 4 +--- drivers/net/i40e/i40e_flow.c | 51 +++

[dpdk-dev] [PATCH v7 14/17] net/i40e: destroy flow directory filter

2017-01-05 Thread Beilei Xing
This patch supports destroying a flow directory filter for users. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index c090d84..e33da2d 100644 --- a/drivers/net/i40e/i

[dpdk-dev] [PATCH v7 17/17] net/i40e: flush tunnel filters

2017-01-05 Thread Beilei Xing
This patch adds i40e_flow_flush_tunnel_filter function to flush all tunnel filters, including filters in SW and HW. Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 37 + 1 file changed, 37 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c

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

2017-01-05 Thread Shreyansh Jain
On Wednesday 04 January 2017 03:52 AM, Thomas Monjalon wrote: 2016-12-26 18:53, Shreyansh Jain: Link to v1: [10] Link to v2: [11] Link to v3: [13] Link to v4: [14] :: Introduction :: DPDK has been inherently a PCI inclined framework. Because of this, the design of device tree (or list) within

Re: [dpdk-dev] [PATCH v7 18/27] app/testpmd: use VFD APIs on i40e

2017-01-05 Thread Lu, Wenzhuo
Hi Jingjing, > -Original Message- > From: Wu, Jingjing > Sent: Friday, January 6, 2017 9:16 AM > To: Lu, Wenzhuo; dev@dpdk.org > Cc: Lu, Wenzhuo; Chen, Jing D; Iremonger, Bernard > Subject: RE: [dpdk-dev] [PATCH v7 18/27] app/testpmd: use VFD APIs on i40e > > > > > -Original Messag

Re: [dpdk-dev] [PATCH v7 19/27] app/testpmd: use unicast promiscuous mode on i40e

2017-01-05 Thread Lu, Wenzhuo
Hi Jingjing, > -Original Message- > From: Wu, Jingjing > Sent: Friday, January 6, 2017 9:22 AM > To: Lu, Wenzhuo; dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: RE: [dpdk-dev] [PATCH v7 19/27] app/testpmd: use unicast > promiscuous mode on i40e > > > > > -Original Message- > > From:

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-05 Thread Adrien Mazarguil
On Thu, Jan 05, 2017 at 07:56:08AM +0800, Tiwei Bie wrote: > On Thu, Jan 05, 2017 at 01:44:18AM +0800, Ananyev, Konstantin wrote: > [...] > > > > > > > > I understand that. > > > > My question was: suppose user would like to create a bonded device over > > > > 2 NICs. > > > > One of them is ixgbe,

Re: [dpdk-dev] [PATCH v2 14/18] net/ixgbe: parse L2 tunnel filter

2017-01-05 Thread Adrien Mazarguil
On Thu, Jan 05, 2017 at 03:12:01AM +, Zhao1, Wei wrote: > Hi, adrien > > > -Original Message- > > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > > Sent: Tuesday, January 3, 2017 10:08 PM > > To: Zhao1, Wei > > Cc: dev@dpdk.org; Lu, Wenzhuo > > Subject: Re: [dpdk-dev] [P

Re: [dpdk-dev] [PATCH v7 04/27] net/i40e: set VF VLAN anti-spoofing from PF

2017-01-05 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Tuesday, January 3, 2017 2:54 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: [dpdk-dev] [PATCH v7 04/27] net/i40e: set VF VLAN anti-spoofing from > PF > > Support enabling/disabling VF VLA

[dpdk-dev] [PATCH v3 2/5] test: add rte_pktmbuf_linearize unit tests

2017-01-05 Thread Tomasz Kulasek
This patch tests rte_pktmbuf_linearize functionality: 1) Creates banch of segmented mbufs with different size and number of segments. 2) Generates pkt_len bytes of random data. 3) Fills noncontigouos mbuf with randomly generated data. 4) Uses rte_pktmbuf_linearize to coalesce segmented buf

[dpdk-dev] [PATCH v3 0/5] Chained Mbufs support in SW PMDs

2017-01-05 Thread Tomasz Kulasek
This patch set adds support of scattered-gather list for SW PMDs. As of now, application needs to reserve continuous block of memory for mbufs which is not always the case. Hence needed to support chaining of mbufs which are smaller in size but can be used if chained. Above work involves: --

[dpdk-dev] [PATCH v3 3/5] crypto: add sgl support in sw PMDs

2017-01-05 Thread Tomasz Kulasek
This patch introduces RTE_CRYPTODEV_FF_MBUF_SCATTER_GATHER feature flag informing that selected crypto device supports segmented mbufs natively and doesn't need to be coalesced before crypto operation. While using segmented buffers in crypto devices may have unpredictable results, for PMDs which d

[dpdk-dev] [PATCH v3 1/5] rte_mbuf: add rte_pktmbuf_linearize

2017-01-05 Thread Tomasz Kulasek
This patch adds function rte_pktmbuf_linearize to let crypto PMD coalesce chained mbuf before crypto operation and extend their capabilities to support segmented mbufs when device cannot handle them natively. Signed-off-by: Tomasz Kulasek --- lib/librte_mbuf/rte_mbuf.h | 56 +++

[dpdk-dev] [PATCH v3 4/5] crypto: add sgl support in openssl PMD

2017-01-05 Thread Tomasz Kulasek
Previous implementation uses EVP_EncryptUpdate() on whole source buffer limiting its usage to the contiguous buffers. This implementation calls EVP_EncryptUpdate() on each segment for cipher operations in continuous mode, before finalization allowing to provide chained mbuf as a source. However,

[dpdk-dev] [PATCH v3 5/5] test: add sgl unit tests for crypto devices

2017-01-05 Thread Tomasz Kulasek
This patch provides unit tests for set of cipher/hash combinations covering currently implemented crypto PMD's and allowing to verify scatter gather support. Signed-off-by: Daniel Mrzyglod Signed-off-by: Tomasz Kulasek --- app/test/test_cryptodev.c | 386 ++- a

Re: [dpdk-dev] [PATCH v5 3/8] ethdev: reserve capability flags for PMD-specific API

2017-01-05 Thread Tiwei Bie
On Thu, Jan 05, 2017 at 09:33:22AM +0100, Adrien Mazarguil wrote: > On Thu, Jan 05, 2017 at 07:56:08AM +0800, Tiwei Bie wrote: > > On Thu, Jan 05, 2017 at 01:44:18AM +0800, Ananyev, Konstantin wrote: > > [...] > > > > > > > > > > I understand that. > > > > > My question was: suppose user would like

Re: [dpdk-dev] Running DPDK as an unprivileged user

2017-01-05 Thread Sergio Gonzalez Monroy
On 04/01/2017 21:34, Walker, Benjamin wrote: On Wed, 2017-01-04 at 19:39 +0800, Tan, Jianfeng wrote: Hi Benjamin, On 12/30/2016 4:41 AM, Walker, Benjamin wrote: DPDK today begins by allocating all of the required hugepages, then finds all of the physical addresses for those hugepages using /p

Re: [dpdk-dev] Running DPDK as an unprivileged user

2017-01-05 Thread Sergio Gonzalez Monroy
On 05/01/2017 10:09, Sergio Gonzalez Monroy wrote: On 04/01/2017 21:34, Walker, Benjamin wrote: On Wed, 2017-01-04 at 19:39 +0800, Tan, Jianfeng wrote: Hi Benjamin, On 12/30/2016 4:41 AM, Walker, Benjamin wrote: DPDK today begins by allocating all of the required hugepages, then finds all of

Re: [dpdk-dev] [PATCH] net/mlx5: add support for ConnectX-5 NICs

2017-01-05 Thread Adrien Mazarguil
Hi Koh, On Wed, Jan 04, 2017 at 06:32:19PM -0800, Yongseok Koh wrote: > Add PCI device ID for ConnectX-5 and enable multi-packet send for PF and > VF. > > Signed-off-by: Yongseok Koh > --- > > ConnectX-5 is a newly announced NIC of Mellanox. This patch includes basic > enablement of ConnectX-5.

[dpdk-dev] [PATCH 5/5] vmxnet3: Avoid segfault caused by vmxnet3_dev_tx_queue_setup.

2017-01-05 Thread nickcooper-zhangtonghao
We should allocate Tx ring for max possible mumber of hardware descriptors. If we config Tx queue with 2048 Tx queue size, and 4096 soon, there will be segment fault. Signed-off-by: nickcooper-zhangtonghao --- drivers/net/vmxnet3/vmxnet3_rxtx.c | 7 --- 1 file changed, 4 insertions(+), 3 del

[dpdk-dev] [PATCH 2/5] vmxnet3: Avoid memory leak in vmxnet3_dev_rx_queue_setup.

2017-01-05 Thread nickcooper-zhangtonghao
This patch will check the "nb_desc" parameter for rx queue, release the rxq and re-allocation it soon. Signed-off-by: nickcooper-zhangtonghao --- drivers/net/vmxnet3/vmxnet3_rxtx.c | 30 ++ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/drivers/net/vm

[dpdk-dev] [PATCH 3/5] vmxnet3: Avoid segfault caused by vmxnet3_dev_rx_queue_setup.

2017-01-05 Thread nickcooper-zhangtonghao
We should allocate RX ring for max possible mumber of hardware descriptors. If we config RX queue with 2048 RX queue size, and 4096 soon, there will be segment fault when calling other ethernet API (e.g. rte_eth_dev_start). Signed-off-by: nickcooper-zhangtonghao --- drivers/net/vmxnet3/vmxnet3_r

  1   2   >