Re: [dpdk-dev] [PATCH v3 10/25] app/testpmd: add flow flush command

2016-12-19 Thread Zhao1, Wei
Hi, Adrien > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Adrien Mazarguil > Sent: Tuesday, December 20, 2016 1:49 AM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v3 10/25] app/testpmd: add flow flush > command > > Syntax: > > flow flush {port_id} > > D

Re: [dpdk-dev] [PATCH 04/13] eal: introduce driver type

2016-12-19 Thread Shreyansh Jain
On Tuesday 20 December 2016 03:29 AM, Stephen Hemminger wrote: Since multiple buses and device types need to be supported. Provide type field in driver. --- lib/librte_eal/common/include/rte_dev.h | 15 --- lib/librte_eal/common/include/rte_pci.h | 1 + lib/librte_eal/common/inclu

Re: [dpdk-dev] [PATCH 01/13] ethdev: increase length ethernet device internal name

2016-12-19 Thread Shreyansh Jain
On Tuesday 20 December 2016 03:29 AM, Stephen Hemminger wrote: Allow sufficicent space for UUID in string form (36+1). Needed to use UUID with Hyper-V Signed-off-by: Stephen Hemminger --- doc/guides/rel_notes/deprecation.rst | 3 +++ lib/librte_ether/rte_ethdev.h| 6 +- 2 files cha

Re: [dpdk-dev] [PATCHv2 01/34] lib/ether: add rte_device in rte_eth_dev

2016-12-19 Thread Hemant Agrawal
On 12/19/2016 9:46 PM, Stephen Hemminger wrote: On Tue, 20 Dec 2016 02:23:40 +0530 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 967

[dpdk-dev] Bug in virtqueue_dequeue_burst_rx()

2016-12-19 Thread Gopakumar Choorakkot Edakkunni
While I was testing virtio with ubuntu 14.04 kvm as host and dpdk16.07 linux as guest, quite often I have seen that I get into a situation where virtio_recv_mergeable_pkts() gets into a forever loop, after sending traffic for a while. In the below API, I see that it clearly leads to a while loop,

Re: [dpdk-dev] [PATCH v2] app/testpmd: supported offload capabilities query

2016-12-19 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Qiming Yang > Sent: Tuesday, December 6, 2016 3:08 PM > To: dev@dpdk.org > Cc: Yang, Qiming > Subject: [dpdk-dev] [PATCH v2] app/testpmd: supported offload capabilities > query > > Add two new commands "show por

Re: [dpdk-dev] [PATCH v5 00/29] Support VFD and DPDK PF + kernel VF on i40e

2016-12-19 Thread Chen, Jing D
Hi, > -Original Message- > From: Vincent JARDIN [mailto:vincent.jar...@6wind.com] > Sent: Monday, December 19, 2016 9:46 PM > To: Chen, Jing D ; Thomas Monjalon > > Cc: dev@dpdk.org; Yigit, Ferruh ; Wu, Jingjing > ; Zhang, Helin > Subject: Re: [dpdk-dev] [PATCH v5 00/29] Support VFD and

Re: [dpdk-dev] [PATCHv2 01/34] lib/ether: add rte_device in rte_eth_dev

2016-12-19 Thread Shreyansh Jain
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Monday, December 19, 2016 9:47 PM > To: Hemant Agrawal > Cc: dev@dpdk.org; thomas.monja...@6wind.com; bruce.richard...@intel.com; > Shreyansh Jain ; john.mcnam...@intel.com; > ferruh.yi...@intel.com;

Re: [dpdk-dev] [PATCH 1/4] eal/common: introduce rte_memset on IA platform

2016-12-19 Thread Yao, Lei A
> On Fri, Dec 16, 2016 at 10:19:43AM +, Yang, Zhiyong wrote: > > > > I run the same virtio/vhost loopback tests without NIC. > > > > I can see the throughput drop when running choosing functions at run > > > > time compared to original code as following on the same platform(my > > > machine i

Re: [dpdk-dev] [PATCH v2 06/25] app/testpmd: implement basic support for rte_flow

2016-12-19 Thread Xing, Beilei
> -Original Message- > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > Sent: Monday, December 19, 2016 6:20 PM > To: Xing, Beilei > Cc: dev@dpdk.org; Pei, Yulong > Subject: Re: [dpdk-dev] [PATCH v2 06/25] app/testpmd: implement basic > support for rte_flow > > Hi Beilei, >

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

2016-12-19 Thread Lu, Wenzhuo
Hi Ferruh, > -Original Message- > From: Yigit, Ferruh > Sent: Tuesday, December 20, 2016 1:10 AM > To: dev@dpdk.org > Cc: Wu, Jingjing; Zhang, Helin; Lu, Wenzhuo; Chen, Jing D; Iremonger, Bernard > Subject: Re: [PATCH v5 18/29] app/testpmd: use VFD APIs on i40e > > On 12/16/2016 7:02 PM,

[dpdk-dev] [PATCH 13/13] hyperv: VMBUS support infrastucture

2016-12-19 Thread Stephen Hemminger
Generalize existing bus support to handle VMBUS in Hyper-V. Most of the code is based of existing model for PCI, the difference is how bus is represented in sysfs and how addressing works. This is based on earlier code contributed by Brocade. Signed-off-by: Stephen Hemminger --- lib/librte_eal/

[dpdk-dev] [PATCH 12/13] ethdev: change pci_dev to generic device

2016-12-19 Thread Stephen Hemminger
The rte_eth_dev structure had a long standing assumption that all devices were either virtual or associated with PCI. This is not so going forward with SOC and VMBUS. Signed-off-by: Stephen Hemminger --- app/test/virtual_pmd.c | 3 +- drivers/net/bnxt/bnxt_ethdev.c |

[dpdk-dev] [PATCH 11/13] broadcom: localize mapping from eth_dev to pci

2016-12-19 Thread Stephen Hemminger
Use existing information about pci and interrupt handle to minimize the number of places that assume eth_dev contains pci_device information. Signed-off-by: Stephen Hemminger --- drivers/net/bnxt/bnxt_ethdev.c | 22 +- drivers/net/bnxt/bnxt_ring.c | 16 ++-- 2 f

[dpdk-dev] [PATCH 10/13] virtio: localize mapping from rte_eth to pci

2016-12-19 Thread Stephen Hemminger
Use one function to get mapping from rte_eth_dev to pci_device. Safely handle some possible misconfiguration of virtio_user related to link state interrupt. Signed-off-by: Stephen Hemminger --- drivers/net/virtio/virtio_ethdev.c | 90 ++ 1 file changed, 63 ins

[dpdk-dev] [PATCH 09/13] i40e: localize mapping of eth_dev to pci

2016-12-19 Thread Stephen Hemminger
Simplify later changes to eth_dev. Signed-off-by: Stephen Hemminger --- drivers/net/i40e/i40e_ethdev.c| 77 --- drivers/net/i40e/i40e_ethdev.h| 3 ++ drivers/net/i40e/i40e_ethdev_vf.c | 58 - 3 files changed, 83 insertions(

[dpdk-dev] [PATCH 08/13] ixgbe: localize mapping from eth_dev to pci_device

2016-12-19 Thread Stephen Hemminger
Since later changes will change where PCI information is, localize mapping in one macro. Signed-off-by: Stephen Hemminger --- drivers/net/ixgbe/ixgbe_ethdev.c | 120 ++- drivers/net/ixgbe/ixgbe_ethdev.h | 3 + drivers/net/ixgbe/ixgbe_pf.c | 4 +- 3 fil

[dpdk-dev] [PATCH 07/13] e1000: localize mapping from eth_dev to pci

2016-12-19 Thread Stephen Hemminger
Create one macro for where PCI device information is extracted from ethernet device. Makes later changes easier to review, and test. --- drivers/net/e1000/e1000_ethdev.h | 2 + drivers/net/e1000/em_ethdev.c| 50 +++- drivers/net/e1000/igb_ethdev.c | 99 ++

[dpdk-dev] [PATCH 05/13] pmd: remove useless reset of dev_info->dev_pci

2016-12-19 Thread Stephen Hemminger
Since rte_eth_dev_info_get does memset() on dev_info before calling device specific code, the explicit assignment of NULL in all these virtual drivers has no effect. Signed-off-by: Stephen Hemminger --- app/test/virtual_pmd.c| 1 - drivers/net/af_packet/rte_eth_af_packet.c |

[dpdk-dev] [PATCH 06/13] ethdev: make dev_info generic (not just PCI)

2016-12-19 Thread Stephen Hemminger
The result from rte_eth_dev_info_get should have pointer to device not PCI device. This breaks ABI but is necessary. Signed-off-by: Stephen Hemminger --- app/test-pmd/config.c | 32 ++-- app/test-pmd/testpmd.c | 11 -- app/test-pm

[dpdk-dev] [PATCH 03/13] eal: define container_of macro

2016-12-19 Thread Stephen Hemminger
From: Jan Blunck This macro is based on Jan Viktorin's original patch but also checks the type of the passed pointer against the type of the member. Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain [jblu...@infradead.org: add type checking and __extension__] Signed-off-by: Jan Blunck

[dpdk-dev] [PATCH 04/13] eal: introduce driver type

2016-12-19 Thread Stephen Hemminger
Since multiple buses and device types need to be supported. Provide type field in driver. --- lib/librte_eal/common/include/rte_dev.h | 15 --- lib/librte_eal/common/include/rte_pci.h | 1 + lib/librte_eal/common/include/rte_vdev.h | 1 + 3 files changed, 14 insertions(+), 3 deleti

[dpdk-dev] [RFC v2 00/13] Generalize rte_eth_dev model

2016-12-19 Thread Stephen Hemminger
This set of patches generalize the ethernet device model sufficently to support virtual, pci, and vmbus devices. All this is based on the XP principal of only building what is necessary and no more than that. The rationale is NOT to rework the DPDK to have same level of bus and parent information

[dpdk-dev] [PATCH 02/13] rte_device: make driver pointer const

2016-12-19 Thread Stephen Hemminger
The info in rte_device about driver is immutable and shouldn't change. --- lib/librte_eal/common/include/rte_dev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h index 8840380d..e5471a22 100644

[dpdk-dev] [PATCH 01/13] ethdev: increase length ethernet device internal name

2016-12-19 Thread Stephen Hemminger
Allow sufficicent space for UUID in string form (36+1). Needed to use UUID with Hyper-V Signed-off-by: Stephen Hemminger --- doc/guides/rel_notes/deprecation.rst | 3 +++ lib/librte_ether/rte_ethdev.h| 6 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel

Re: [dpdk-dev] [PATCH v3 25/25] doc: describe testpmd flow command

2016-12-19 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Adrien Mazarguil > Sent: Monday, December 19, 2016 5:49 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v3 25/25] doc: describe testpmd flow command > > Document syntax, interaction with rte_flow and provide u

[dpdk-dev] [PATCH v2] doc: fix required tools list layout

2016-12-19 Thread Baruch Siach
The Python requirement should appear in the bullet list. Also, indent the x32 note, since it is related to the previous bullet. Signed-off-by: Baruch Siach --- v2: Indent also the note paragraph (John) --- doc/guides/linux_gsg/sys_reqs.rst | 10 -- 1 file changed, 4 insertions(+), 6 del

Re: [dpdk-dev] [PATCH v2] acl: allow zero verdict

2016-12-19 Thread Ananyev, Konstantin
> -Original Message- > From: Michał Mirosław [mailto:mirq-li...@rere.qmqm.pl] > Sent: Wednesday, December 14, 2016 5:24 PM > To: dev@dpdk.org > Cc: Ananyev, Konstantin > Subject: [PATCH v2] acl: allow zero verdict > > Signed-off-by: Michał Mirosław > --- > v2: fixes prog_guide and ACL

Re: [dpdk-dev] [PATCH] acl: remove invalid test

2016-12-19 Thread Ananyev, Konstantin
Hi Michal, > -Original Message- > From: Michał Mirosław [mailto:mirq-li...@rere.qmqm.pl] > Sent: Wednesday, December 14, 2016 5:24 PM > To: dev@dpdk.org > Cc: Ananyev, Konstantin > Subject: [PATCH] acl: remove invalid test > > rte_acl_add_rules() has no way of checking rule size. > > Th

[dpdk-dev] [PATCH] nfp: add support for rx interrupts

2016-12-19 Thread Alejandro Lucero
This is supported with UIO and VFIO modules. With UIO, LSC interrupt is disabled. Signed-off-by: Alejandro Lucero --- doc/guides/nics/features/nfp.ini | 1 + drivers/net/nfp/nfp_net.c| 112 +-- drivers/net/nfp/nfp_net_ctrl.h | 1 + 3 files change

[dpdk-dev] [PATCH v3 11/25] app/testpmd: add flow destroy command

2016-12-19 Thread Adrien Mazarguil
Syntax: flow destroy {port_id} rule {rule_id} [...] Destroy a given set of flow rules associated with a port. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- app/test-pmd/cmdline.c | 3 ++ app/test-pmd/cmdline_flow.c | 106 ++- 2 files chan

Re: [dpdk-dev] [PATCH] nfp: extend speed capabilities advertised

2016-12-19 Thread Alejandro Lucero
I forgot one thing: to update the features file with this new one. I will wait for your feedback regarding the discussed problem for sending another version. Thanks On Mon, Dec 19, 2016 at 5:59 PM, Alejandro Lucero < alejandro.luc...@netronome.com> wrote: > > > On Mon, Dec 19, 2016 at 4:43 PM,

Re: [dpdk-dev] [PATCH] nfp: extend speed capabilities advertised

2016-12-19 Thread Alejandro Lucero
On Mon, Dec 19, 2016 at 4:43 PM, Ferruh Yigit wrote: > On 12/19/2016 4:18 PM, Alejandro Lucero wrote: > > On Mon, Dec 19, 2016 at 3:05 PM, Ferruh Yigit > > wrote: > > > >> On 12/19/2016 3:02 PM, Alejandro Lucero wrote: > >>> > >>> > >>> On Mon, Dec 19, 2016 at 2:36 PM, Ferruh Yigit >>>

Re: [dpdk-dev] [PATCH] nfp: extend speed capabilities advertised

2016-12-19 Thread Alejandro Lucero
On Mon, Dec 19, 2016 at 4:35 PM, Marc wrote: > > > On 19 December 2016 at 17:18, Alejandro Lucero < > alejandro.luc...@netronome.com> wrote: > >> On Mon, Dec 19, 2016 at 3:05 PM, Ferruh Yigit >> wrote: >> >> > On 12/19/2016 3:02 PM, Alejandro Lucero wrote: >> > > >> > > >> > > On Mon, Dec 19, 20

Re: [dpdk-dev] [PATCH v4] net/kni: add KNI PMD

2016-12-19 Thread Yong Wang
> -Original Message- > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > Sent: Thursday, December 15, 2016 7:56 AM > To: Yong Wang ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v4] net/kni: add KNI PMD > > On 12/14/2016 7:25 PM, Yong Wang wrote: > >> -Original Message- > >> Fr

[dpdk-dev] [PATCH v3 25/25] doc: describe testpmd flow command

2016-12-19 Thread Adrien Mazarguil
Document syntax, interaction with rte_flow and provide usage examples. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 612 +++ 1 file changed, 612 insertions(+) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst

[dpdk-dev] [PATCH v3 23/25] app/testpmd: add various actions to flow command

2016-12-19 Thread Adrien Mazarguil
- MARK: attach 32 bit value to packets. - FLAG: flag packets. - DROP: drop packets. - COUNT: enable counters for a rule. - PF: redirect packets to physical device function. - VF: redirect packets to virtual device function. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- app/test-pmd/c

[dpdk-dev] [PATCH v3 22/25] app/testpmd: add L4 items to flow command

2016-12-19 Thread Adrien Mazarguil
Add the ability to match a few properties of common L4[.5] protocol headers: - ICMP: type and code. - UDP: source and destination ports. - TCP: source and destination ports. - SCTP: source and destination ports. - VXLAN: network identifier. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern -

[dpdk-dev] [PATCH v3 24/25] app/testpmd: add queue actions to flow command

2016-12-19 Thread Adrien Mazarguil
- QUEUE: assign packets to a given queue index. - DUP: duplicate packets to a given queue index. - RSS: spread packets among several queues. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- app/test-pmd/cmdline_flow.c | 152 +++ 1 file changed, 152 in

[dpdk-dev] [PATCH v3 21/25] app/testpmd: add items ipv4/ipv6 to flow command

2016-12-19 Thread Adrien Mazarguil
Add the ability to match basic fields from IPv4 and IPv6 headers (source and destination addresses only). Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- app/test-pmd/cmdline_flow.c | 177 +++ 1 file changed, 177 insertions(+) diff --git a/app/test-

[dpdk-dev] [PATCH v3 18/25] app/testpmd: add various items to flow command

2016-12-19 Thread Adrien Mazarguil
- PF: match packets addressed to the physical function. - VF: match packets addressed to a virtual function ID. - PORT: device-specific physical port index to use. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- app/test-pmd/cmdline_flow.c | 53

[dpdk-dev] [PATCH v3 17/25] app/testpmd: add item any to flow command

2016-12-19 Thread Adrien Mazarguil
This pattern item matches any protocol in place of the current layer and has two properties: - min: minimum number of layers covered (0 or more). - max: maximum number of layers covered (0 means infinity). Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- app/test-pmd/cmdline_flow.c | 2

[dpdk-dev] [PATCH v3 20/25] app/testpmd: add items eth/vlan to flow command

2016-12-19 Thread Adrien Mazarguil
These pattern items match basic Ethernet headers (source, destination and type) and related 802.1Q/ad VLAN headers. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- app/test-pmd/cmdline_flow.c | 126 +++ 1 file changed, 126 insertions(+) diff --git a

[dpdk-dev] [PATCH v3 19/25] app/testpmd: add item raw to flow command

2016-12-19 Thread Adrien Mazarguil
Matches arbitrary byte strings with properties: - relative: look for pattern after the previous item. - search: search pattern from offset (see also limit). - offset: absolute or relative offset for pattern. - limit: search area limit for start of pattern. - length: pattern length. - pattern: byte

[dpdk-dev] [PATCH v3 16/25] app/testpmd: add rte_flow bit-field support

2016-12-19 Thread Adrien Mazarguil
Several rte_flow structures expose bit-fields that cannot be set in a generic fashion at byte level. Add bit-mask support to handle them. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- app/test-pmd/cmdline_flow.c | 59 1 file changed, 59 insert

[dpdk-dev] [PATCH v3 15/25] app/testpmd: add rte_flow item spec prefix length

2016-12-19 Thread Adrien Mazarguil
Generating bit-masks from prefix lengths is often more convenient than providing them entirely (e.g. to define IPv4 and IPv6 subnets). This commit adds the "prefix" operator that assigns generated bit-masks to any pattern item specification field. Signed-off-by: Adrien Mazarguil Acked-by: Olga S

[dpdk-dev] [PATCH v3 13/25] app/testpmd: add flow query command

2016-12-19 Thread Adrien Mazarguil
Syntax: flow query {port_id} {rule_id} {action} Query a specific action of an existing flow rule. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- app/test-pmd/cmdline.c | 3 + app/test-pmd/cmdline_flow.c | 121 ++- 2 files changed, 123 inse

[dpdk-dev] [PATCH v3 14/25] app/testpmd: add rte_flow item spec handler

2016-12-19 Thread Adrien Mazarguil
Add parser code to fully set individual fields of pattern item specification structures, using the following operators: - fix: sets field and applies full bit-mask for perfect matching. - spec: sets field without modifying its bit-mask. - last: sets upper value of the spec => last range. - mask: s

[dpdk-dev] [PATCH v3 12/25] app/testpmd: add flow validate/create commands

2016-12-19 Thread Adrien Mazarguil
Syntax: flow (validate|create) {port_id} [group {group_id}] [priority {level}] [ingress] [egress] pattern {item} [/ {item} [...]] / end actions {action} [/ {action} [...]] / end Either check the validity of a flow rule or create it. Any number of pattern items and actions can be prov

[dpdk-dev] [PATCH v3 10/25] app/testpmd: add flow flush command

2016-12-19 Thread Adrien Mazarguil
Syntax: flow flush {port_id} Destroy all flow rules on a port. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- app/test-pmd/cmdline.c | 3 +++ app/test-pmd/cmdline_flow.c | 43 +++- 2 files changed, 45 insertions(+), 1 deletion(-) diff --gi

[dpdk-dev] [PATCH v3 09/25] app/testpmd: add flow list command

2016-12-19 Thread Adrien Mazarguil
Syntax: flow list {port_id} [group {group_id}] [...] List configured flow rules on a port. Output can optionally be limited to a given set of group identifiers. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- app/test-pmd/cmdline.c | 4 ++ app/test-pmd/cmdline_flow.c | 141 ++

[dpdk-dev] [PATCH v3 06/25] app/testpmd: implement basic support for rte_flow

2016-12-19 Thread Adrien Mazarguil
Add basic management functions for the generic flow API (validate, create, destroy, flush, query and list). Flow rule objects and properties are arranged in lists associated with each port. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- app/test-pmd/cmdline.c | 1 + app/test-pmd

[dpdk-dev] [PATCH v3 08/25] app/testpmd: add rte_flow integer support

2016-12-19 Thread Adrien Mazarguil
Parse all integer types and handle conversion to network byte order in a single function. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- app/test-pmd/cmdline_flow.c | 148 +++ 1 file changed, 148 insertions(+) diff --git a/app/test-pmd/cmdline_flow

[dpdk-dev] [PATCH v3 05/25] cmdline: add alignment constraint

2016-12-19 Thread Adrien Mazarguil
This prevents sigbus errors on architectures that cannot handle unexpected unaligned accesses to the output buffer. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- lib/librte_cmdline/cmdline_parse.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/librte

[dpdk-dev] [PATCH v3 07/25] app/testpmd: add flow command

2016-12-19 Thread Adrien Mazarguil
Managing generic flow API functions from command line requires the use of dynamic tokens for convenience as flow rules are not fixed and cannot be defined statically. This commit adds specific flexible parser code and object for a new "flow" command in separate file. Signed-off-by: Adrien Mazargu

[dpdk-dev] [PATCH v3 04/25] cmdline: add support for dynamic tokens

2016-12-19 Thread Adrien Mazarguil
Considering tokens must be hard-coded in a list part of the instruction structure, context-dependent tokens cannot be expressed. This commit adds support for building dynamic token lists through a user-provided function, which is called when the static token list is empty (a single NULL entry). B

[dpdk-dev] [PATCH v3 03/25] doc: announce deprecation of legacy filter types

2016-12-19 Thread Adrien Mazarguil
They are superseded by the generic flow API (rte_flow). Target release is not defined yet. Suggested-by: Kevin Traynor Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- doc/guides/rel_notes/deprecation.rst | 8 1 file changed, 8 insertions(+) diff --git a/doc/guides/rel_notes/

[dpdk-dev] [PATCH v3 02/25] doc: add rte_flow prog guide

2016-12-19 Thread Adrien Mazarguil
This documentation is based on the latest RFC submission, subsequently updated according to feedback from the community. Signed-off-by: Adrien Mazarguil Acked-by: Olga Shern --- doc/guides/prog_guide/index.rst|1 + doc/guides/prog_guide/rte_flow.rst | 2042 ++

[dpdk-dev] [PATCH v3 01/25] ethdev: introduce generic flow API

2016-12-19 Thread Adrien Mazarguil
This new API supersedes all the legacy filter types described in rte_eth_ctrl.h. It is slightly higher level and as a result relies more on PMDs to process and validate flow rules. Benefits: - A unified API is easier to program for, applications do not have to be written for a specific filter t

[dpdk-dev] [PATCH v3 00/25] Generic flow API (rte_flow)

2016-12-19 Thread Adrien Mazarguil
As previously discussed in RFC v1 [1], RFC v2 [2], with changes described in [3] (also pasted below), here is the first non-draft series for this new API. Its capabilities are so generic that its name had to be vague, it may be called "Generic flow API", "Generic flow interface" (possibly shortene

[dpdk-dev] [PATCH v3 3/4] crypto/aesni_mb: add single operation functionality

2016-12-19 Thread Pablo de Lara
Update driver to use new AESNI Multibuffer IPSec library single operation functionality (cipher only and authentication only). This patch also adds tests for this new feature. Signed-off-by: Pablo de Lara --- app/test/test_cryptodev.c | 34 app/test/test_cryptod

[dpdk-dev] [PATCH v3 4/4] doc: add missing supported algos for AESNI MB PMD

2016-12-19 Thread Pablo de Lara
AESNI MB PMD supports SHA224-HMAC and SHA384-HMAC, but the documentation was not updated with this. Signed-off-by: Pablo de Lara Acked-by: John McNamara --- doc/guides/cryptodevs/aesni_mb.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/guides/cryptodevs/aesni_mb.rst b/doc/guides/

[dpdk-dev] [PATCH v3 2/4] doc: update AESNI MB PMD guide

2016-12-19 Thread Pablo de Lara
The Intel(R) Multi Buffer Crypto library used in the AESNI MB PMD has been moved to a new repository, in github. This patch updates the link where it can be downloaded. Signed-off-by: Pablo de Lara Acked-by: John McNamara --- doc/guides/cryptodevs/aesni_mb.rst | 10 +++--- doc/guides/re

[dpdk-dev] [PATCH v3 1/4] crypto/aesni_mb: fix incorrect crypto session

2016-12-19 Thread Pablo de Lara
When using sessionless crypto operations, crypto session is obtained from a pool of sessions, when processing the operation. Once the operation is processed, the session is put back in the pool, but for the AESNI MB PMD, this session was not being saved in the operation and therefore, it did not re

[dpdk-dev] [PATCH v3 0/4] AESNI MB PMD updates

2016-12-19 Thread Pablo de Lara
The library used in AESNI MB PMD, Intel Multi Buffer Crypto for IPsec, has been migrated to a new location, in github (see documentation patch for the link). The library has also been updated, so single crypto operations are supported (cipher and authentication only). Therefore, the PMD has been u

Re: [dpdk-dev] [PATCH] gitignore: ignore top level build/ directory

2016-12-19 Thread Bruce Richardson
On Mon, Dec 19, 2016 at 04:50:57PM +, Mcnamara, John wrote: > > > > -Original Message- > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Bruce Richardson > > Sent: Monday, December 19, 2016 4:14 PM > > To: Thomas Monjalon > > Cc: Baruch Siach ; Yigit, Ferruh > > ; dev@dpdk.org

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

2016-12-19 Thread Ferruh Yigit
On 12/16/2016 7:02 PM, Ferruh Yigit wrote: > From: 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

Re: [dpdk-dev] [PATCH v2] maintainers: update for qede PMD and bnx2x PMD

2016-12-19 Thread Thomas Monjalon
2016-12-07 11:22, Rasesh Mody: > Following Cavium's acquisition of QLogic we need to update all the > qlogic PMD maintainer's entries to point to our new e-mail addresses. > Update driver's maintainers as they are no longer working for Cavium. > > Thanks to Sony Chacko for his support and developm

Re: [dpdk-dev] [PATCH] gitignore: ignore top level build/ directory

2016-12-19 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Bruce Richardson > Sent: Monday, December 19, 2016 4:14 PM > To: Thomas Monjalon > Cc: Baruch Siach ; Yigit, Ferruh > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] gitignore: ignore top level build/ > director

Re: [dpdk-dev] [PATCH] nfp: extend speed capabilities advertised

2016-12-19 Thread Ferruh Yigit
On 12/19/2016 4:18 PM, Alejandro Lucero wrote: > On Mon, Dec 19, 2016 at 3:05 PM, Ferruh Yigit > wrote: > >> On 12/19/2016 3:02 PM, Alejandro Lucero wrote: >>> >>> >>> On Mon, Dec 19, 2016 at 2:36 PM, Ferruh Yigit >> > wrote: >>> >>> Hi Alejandro, >>> >>> >>> Hi

Re: [dpdk-dev] [PATCH] gitignore: ignore top level build/ directory

2016-12-19 Thread Thomas Monjalon
2016-12-19 16:14, Bruce Richardson: > On Mon, Dec 19, 2016 at 03:05:20PM +0100, Thomas Monjalon wrote: > > 2016-12-13 12:02, Ferruh Yigit: > > > On 12/13/2016 11:48 AM, Baruch Siach wrote: > > > > RTE_OUTPUT defaults to build/. > > > > > > > > Signed-off-by: Baruch Siach > > > > > > There is a s

Re: [dpdk-dev] [PATCH] nfp: extend speed capabilities advertised

2016-12-19 Thread Marc
On 19 December 2016 at 17:18, Alejandro Lucero < alejandro.luc...@netronome.com> wrote: > On Mon, Dec 19, 2016 at 3:05 PM, Ferruh Yigit > wrote: > > > On 12/19/2016 3:02 PM, Alejandro Lucero wrote: > > > > > > > > > On Mon, Dec 19, 2016 at 2:36 PM, Ferruh Yigit > >

[dpdk-dev] [PATCH] doc: simplify L3fwd user guide examples

2016-12-19 Thread Pablo de Lara
L3 Forwarding sample app user guides have some inconsistencies between the example command line and the configuration table. Also, they were showing too complicated configuration, using two different NUMA nodes for two ports, which will probably lead to performance drop due to use cross-socket chan

Re: [dpdk-dev] [PATCH] nfp: extend speed capabilities advertised

2016-12-19 Thread Alejandro Lucero
On Mon, Dec 19, 2016 at 3:05 PM, Ferruh Yigit wrote: > On 12/19/2016 3:02 PM, Alejandro Lucero wrote: > > > > > > On Mon, Dec 19, 2016 at 2:36 PM, Ferruh Yigit > > wrote: > > > > Hi Alejandro, > > > > > > Hi, > > > > > > On 12/19/2016 12:05 PM, Alejandro Lu

Re: [dpdk-dev] [PATCHv2 01/34] lib/ether: add rte_device in rte_eth_dev

2016-12-19 Thread Stephen Hemminger
On Tue, 20 Dec 2016 02:23:40 +0530 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 9678179..0b601e9 100644 > --- a/lib/libr

Re: [dpdk-dev] [PATCH] gitignore: ignore top level build/ directory

2016-12-19 Thread Bruce Richardson
On Mon, Dec 19, 2016 at 03:05:20PM +0100, Thomas Monjalon wrote: > 2016-12-13 12:02, Ferruh Yigit: > > On 12/13/2016 11:48 AM, Baruch Siach wrote: > > > RTE_OUTPUT defaults to build/. > > > > > > Signed-off-by: Baruch Siach > > > > There is a similar patch: > > http://dpdk.org/dev/patchwork/patc

[dpdk-dev] [PATCH] nfp: avoid modulo operations for handling ring wrapping

2016-12-19 Thread Alejandro Lucero
Having those modulo operations implies costly instructions execution, what can be avoided with conditionals and unlikely clauses. This change makes the software ring read and write indexes to be now always within the ring size which has to be handled properly. The main problem is when write pointe

Re: [dpdk-dev] [PATCH v3 2/6] eventdev: define southbound driver interface

2016-12-19 Thread Bruce Richardson
On Sun, Dec 18, 2016 at 07:51:31PM +0530, Jerin Jacob wrote: > Signed-off-by: Jerin Jacob > --- > lib/librte_eventdev/rte_eventdev.h | 38 + > lib/librte_eventdev/rte_eventdev_pmd.h | 291 > + > 2 files changed, 329 insertions(+) > create mode 100644 lib

[dpdk-dev] [PATCHv2 26/34] net/dpaa2: add packet rx and tx support

2016-12-19 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/common/dpaa2/dpio/dpaa2_hw_pvt.h | 54 +++ drivers/net/dpaa2/Makefile | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 4 + drivers/net/dpaa2/dpaa2_ethdev.h | 3 + drivers/net/dpaa2/dpaa2_rxtx.c | 260 ++

[dpdk-dev] [PATCHv2 27/34] net/dpaa2: rx packet parsing and packet type support

2016-12-19 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/base/dpaa2_hw_dpni_annot.h | 257 +++ drivers/net/dpaa2/dpaa2_ethdev.c | 23 +++ drivers/net/dpaa2/dpaa2_rxtx.c | 91 +- 4 files ch

[dpdk-dev] [PATCHv2 29/34] net/dpaa2: basic stats support

2016-12-19 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 86 ++ 2 files changed, 87 insertions(+) diff --git a/doc/guides/nics/features/dpaa2.ini b/doc/guides/nics/features/dpaa2.ini index 0660cab..d43f

[dpdk-dev] [PATCHv2 32/34] net/dpaa2: enabling the use of physical addresses

2016-12-19 Thread Hemant Agrawal
DPAA2 - ARM support both physical and virtual addressing. This patch enables the compile time usages of physical address instead of virtual address. The current usages are also set to default as Physical Address. Signed-off-by: Hemant Agrawal --- config/common_base| 1 +

[dpdk-dev] [PATCHv2 34/34] drivers/common/dpaa2: frame queue based dq storage alloc

2016-12-19 Thread Hemant Agrawal
This patch adds generic functions for allowing dq storage for the frame queues. As the frame queues are common resource for different drivers this is helpful. Signed-off-by: Hemant Agrawal --- drivers/common/dpaa2/dpio/dpaa2_hw_dpio.c | 32 +++ drivers/common/dpaa2/dp

[dpdk-dev] [PATCHv2 31/34] net/dpaa2: add support for non hw buffer pool packet transmit

2016-12-19 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_rxtx.c | 74 -- 1 file changed, 72 insertions(+), 2 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index 7d73bde..55068e5 100644 --- a/drivers/net/dpaa2/dp

[dpdk-dev] [PATCHv2 33/34] bus/fslmc: add support for dmamap to ARM SMMU

2016-12-19 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 97 drivers/bus/fslmc/fslmc_vfio.h | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 2 + 3 files changed, 100 insertions(+) diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/f

[dpdk-dev] [PATCHv2 28/34] net/dpaa2: link status update

2016-12-19 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 107 + 2 files changed, 108 insertions(+) diff --git a/doc/guides/nics/features/dpaa2.ini b/doc/guides/nics/features/dpaa2.ini index 0746d4b..06

[dpdk-dev] [PATCHv2 23/34] net/dpaa2: add support for l3 and l4 checksum offload

2016-12-19 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 2 + drivers/common/dpaa2/dpio/dpaa2_hw_pvt.h | 6 +++ drivers/net/dpaa2/dpaa2_ethdev.c | 72 ++-- 3 files changed, 76 insertions(+), 4 deletions(-) diff --git a/doc/guides/nics/fea

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

2016-12-19 Thread Hemant Agrawal
On 12/7/2016 1:19 AM, Ferruh Yigit wrote: 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_eth

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

2016-12-19 Thread Hemant Agrawal
On 12/7/2016 1:19 AM, Ferruh Yigit wrote: 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(+)

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

2016-12-19 Thread Hemant Agrawal
On 12/7/2016 1:20 AM, Ferruh Yigit wrote: 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/drive

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

2016-12-19 Thread Hemant Agrawal
On 12/7/2016 1:19 AM, Ferruh Yigit wrote: 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 ++

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

2016-12-19 Thread Hemant Agrawal
On 12/7/2016 1:19 AM, Ferruh Yigit wrote: 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

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

2016-12-19 Thread Hemant Agrawal
On 12/17/2016 3:25 PM, Jerin Jacob wrote: On Sun, Dec 04, 2016 at 11:46:57PM +0530, 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:rebas

[dpdk-dev] [PATCHv2 30/34] net/dpaa2: enable stashing for LS2088A devices

2016-12-19 Thread Hemant Agrawal
As the hardware determines which core will process which packet, performance is boosted by direct cache warming/stashing as well as by providing biasing for core-to-flow affinity, which ensures that flow-specific data structures can remain in the core’s cache. This patch enables the one cache line

[dpdk-dev] [PATCHv2 24/34] net/dpaa2: add support for promiscuous mode

2016-12-19 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 41 ++ 2 files changed, 42 insertions(+) diff --git a/doc/guides/nics/features/dpaa2.ini b/doc/guides/nics/features/dpaa2.ini index d50c62e..b7c2

[dpdk-dev] [PATCHv2 25/34] net/dpaa2: add mtu config support

2016-12-19 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/common/dpaa2/dpio/dpaa2_hw_pvt.h | 4 drivers/net/dpaa2/dpaa2_ethdev.c | 34 3 files changed, 39 insertions(+) diff --git a/doc/guides/nics/features/dpaa2.ini

[dpdk-dev] [PATCHv2 22/34] net/dpaa2: attach the buffer pool to dpni

2016-12-19 Thread Hemant Agrawal
This patch configures a MC-DPNI based DPAA2 PMD network port with a DPBP based buffer pool. Signed-off-by: Hemant Agrawal --- drivers/common/dpaa2/dpio/dpaa2_hw_pvt.h | 10 ++ drivers/net/dpaa2/Makefile | 2 ++ drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 57

[dpdk-dev] [PATCHv2 21/34] net/dpaa2: configure mac address at init

2016-12-19 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 28 drivers/net/dpaa2/dpaa2_ethdev.h | 3 +++ 2 files changed, 31 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 9066aa5..ccd2c2a 100644 --- a/

[dpdk-dev] [PATCHv2 19/34] net/dpaa2: add queue configuration support

2016-12-19 Thread Hemant Agrawal
DPAA2 provide supports for HW queues. Each DPNI contains a pre-configured number of RX and TX queues. This patch reads the DPNI attributes, create the dpaa2_queue to be used for RX and TX. Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/common/dpaa2/d

[dpdk-dev] [PATCHv2 20/34] net/dpaa2: add rss flow distribution

2016-12-19 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/Makefile | 1 + drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 287 + drivers/net/dpaa2/dpaa2_ethdev.c | 31 +++- drivers/net/dpaa2/dpaa2_ethdev.h

  1   2   >