[dpdk-dev] [PATCH v2 08/11] net/e1000: parse flex filter

2017-06-01 Thread Wei Zhao
check if the rule is a flex byte rule, and get the flex info. Signed-off-by: Wei Zhao --- drivers/net/e1000/e1000_ethdev.h | 6 + drivers/net/e1000/igb_ethdev.c | 6 - drivers/net/e1000/igb_flow.c | 276 +++ 3 files changed, 282 insertions(+), 6 dele

[dpdk-dev] [PATCH v2 09/11] net/e1000: create consistent filter

2017-06-01 Thread Wei Zhao
This patch adds a function to create the flow directory filter. Signed-off-by: Wei Zhao --- drivers/net/e1000/e1000_ethdev.h | 58 + drivers/net/e1000/igb_ethdev.c | 22 +++ drivers/net/e1000/igb_flow.c | 137 ++- 3 files changed, 2

[dpdk-dev] [PATCH v2 10/11] net/e1000: destroy consistent filter

2017-06-01 Thread Wei Zhao
This patch adds a function to destroy the flow fliter. Signed-off-by: Wei Zhao --- drivers/net/e1000/igb_flow.c | 100 ++- 1 file changed, 99 insertions(+), 1 deletion(-) diff --git a/drivers/net/e1000/igb_flow.c b/drivers/net/e1000/igb_flow.c index fac76

[dpdk-dev] [PATCH v2 11/11] net/e1000: flush all the filter

2017-06-01 Thread Wei Zhao
This patch adds a function to flush all the fliter list and filter rule on a port. Signed-off-by: Wei Zhao --- drivers/net/e1000/e1000_ethdev.h | 9 +++ drivers/net/e1000/igb_ethdev.c | 67 +-- drivers/net/e1000/igb_flow.c | 141 ++- 3

[dpdk-dev] [PATCH v2 07/11] net/e1000: parse TCP SYN filter

2017-06-01 Thread Wei Zhao
check if the rule is a TCP SYN rule, and get the SYN info. Signed-off-by: Wei Zhao --- drivers/net/e1000/igb_flow.c | 277 +++ 1 file changed, 277 insertions(+) diff --git a/drivers/net/e1000/igb_flow.c b/drivers/net/e1000/igb_flow.c index 87cc851..244fc9

[dpdk-dev] [PATCH v2 04/11] net/e1000: restore flex type filter

2017-06-01 Thread Wei Zhao
Add support for restoring flex type filter in SW. Signed-off-by: Wei Zhao --- drivers/net/e1000/igb_ethdev.c | 189 ++--- 1 file changed, 122 insertions(+), 67 deletions(-) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index b23

[dpdk-dev] [PATCH v2 05/11] net/e1000: parse n-tuple filter

2017-06-01 Thread Wei Zhao
Add rule validate function and check if the rule is a n-tuple rule, and get the n-tuple info. Signed-off-by: Wei Zhao --- drivers/net/e1000/Makefile | 1 + drivers/net/e1000/e1000_ethdev.h | 9 + drivers/net/e1000/igb_ethdev.c | 14 +- drivers/net/e1000/igb_flow.c | 505

[dpdk-dev] [PATCH v2 06/11] net/e1000: parse ethertype filter

2017-06-01 Thread Wei Zhao
check if the rule is a ethertype rule, and get the ethertype info. Signed-off-by: Wei Zhao --- drivers/net/e1000/igb_flow.c | 280 +++ 1 file changed, 280 insertions(+) diff --git a/drivers/net/e1000/igb_flow.c b/drivers/net/e1000/igb_flow.c index 14218ee

[dpdk-dev] [PATCH v2 03/11] net/e1000: restore ether type filter

2017-06-01 Thread Wei Zhao
Add support for restoring ether type filter in SW. Signed-off-by: Wei Zhao --- drivers/net/e1000/e1000_ethdev.h | 10 +++-- drivers/net/e1000/igb_ethdev.c | 47 ++-- 2 files changed, 44 insertions(+), 13 deletions(-) diff --git a/drivers/net/e1000/e1000

[dpdk-dev] [PATCH 00/11] net/e1000: Consistent filter API

2017-06-01 Thread Wei Zhao
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 function. v2 changes: fix git log warning rebase patch set zhao we

[dpdk-dev] [PATCH v2 02/11] net/e1000: restore n-tuple filter

2017-06-01 Thread Wei Zhao
Add support for restoring n-tuple filter in SW. Signed-off-by: Wei Zhao --- drivers/net/e1000/igb_ethdev.c | 262 + 1 file changed, 159 insertions(+), 103 deletions(-) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 1077

[dpdk-dev] [PATCH v2 01/11] net/e1000: store and restore TCP SYN filter

2017-06-01 Thread Wei Zhao
Add support for storing and restoring TCP SYN filter in SW. Signed-off-by: Wei Zhao --- drivers/net/e1000/e1000_ethdev.h | 2 ++ drivers/net/e1000/igb_ethdev.c | 45 +--- 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/drivers/net/e1000/e100

[dpdk-dev] [PATCH v2] lpm: fix build error on g++ with -O0 option

2017-06-01 Thread Sangjin Han
When rte_lpm.h is used on x86, -O0 option (no optimization at all) given to gcc causes a compile error like this: error: the last argument must be an 8-bit immediate i24 = _mm_srli_si128(i24, sizeof(uint64_t)); -O0 option is useful for debugging and code coverage measurement, but this error pr

Re: [dpdk-dev] ixgbe: link status for PF up/down is not updating using LSI DPDK16.11.1 Sample App

2017-06-01 Thread Shashikant Poonia
Hi all, Anybody got a chance to look into ? BTW, am using below two patches for VF reset on DPDK 16.11 http://dpdk.org/ml/archives/dev/2016-June/040287.html ::lib/librte_ether: support device reset http://dpdk.org/ml/archives/dev/2016-June/040290.html

Re: [dpdk-dev] [RFC] eal/memory: introducing an option to set iova as va

2017-06-01 Thread santosh
Ping? On Wednesday 24 May 2017 09:41 PM, Santosh Shukla wrote: > Some NPU hardware like OCTEONTX follows push model to get > the packet from the pktio device. Where packet allocation > and freeing done by the HW. Since HW can operate only on > IOVA with help of SMMU/IOMMU, When packet receives fr

Re: [dpdk-dev] [PATCH 00/10] net/i40e: base code update

2017-06-01 Thread Wu, Jingjing
> -Original Message- > From: Yigit, Ferruh > Sent: Tuesday, May 30, 2017 7:10 PM > To: Wu, Jingjing ; Zhang, Helin > > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 00/10] net/i40e: base code update > > On 5/27/2017 4:47 AM, Jingjing Wu wrote: > > i40e base code upate. The main chan

Re: [dpdk-dev] [PATCH v2] net/i40e: update actions for FDIR

2017-06-01 Thread Wu, Jingjing
> -Original Message- > From: Xing, Beilei > Sent: Thursday, June 1, 2017 7:48 AM > To: Wu, Jingjing > Cc: dev@dpdk.org > Subject: [PATCH v2] net/i40e: update actions for FDIR > > This commit adds support of FLAG action and PASSTHRU action for flow > director. > > Signed-off-by: Beilei

Re: [dpdk-dev] [PATCH v2 3/3] net/ixgbe: enable flex bytes for generic flow API

2017-06-01 Thread Lu, Wenzhuo
Hi Qi, > -Original Message- > From: Zhang, Qi Z > Sent: Friday, June 2, 2017 10:00 AM > To: Lu, Wenzhuo; Zhang, Helin > Cc: dev@dpdk.org > Subject: RE: [PATCH v2 3/3] net/ixgbe: enable flex bytes for generic flow API > > > > > -Original Message- > > From: Lu, Wenzhuo > > Sent: F

Re: [dpdk-dev] [PATCH v2] net/i40e: exclude internal packet's byte count

2017-06-01 Thread Xing, Beilei
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Qi Zhang > Sent: Friday, June 2, 2017 1:56 AM > To: Wu, Jingjing ; Zhang, Helin > > Cc: dev@dpdk.org; Zhang, Qi Z ; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH v2] net/i40e: exclude internal packet's byte > count

Re: [dpdk-dev] [PATCH v2 3/3] net/ixgbe: enable flex bytes for generic flow API

2017-06-01 Thread Zhang, Qi Z
> -Original Message- > From: Lu, Wenzhuo > Sent: Friday, June 2, 2017 9:49 AM > To: Zhang, Qi Z ; Zhang, Helin > > Cc: dev@dpdk.org > Subject: RE: [PATCH v2 3/3] net/ixgbe: enable flex bytes for generic flow API > > Hi Qi, > > > > -Original Message- > > From: Zhang, Qi Z > > S

Re: [dpdk-dev] [PATCH v2 3/3] net/ixgbe: enable flex bytes for generic flow API

2017-06-01 Thread Lu, Wenzhuo
Hi Qi, > -Original Message- > From: Zhang, Qi Z > Sent: Thursday, June 1, 2017 3:46 AM > To: Lu, Wenzhuo; Zhang, Helin > Cc: dev@dpdk.org; Zhang, Qi Z > Subject: [PATCH v2 3/3] net/ixgbe: enable flex bytes for generic flow API > > Add fdir flex byte support for rte_flow APIs. > > Signed

Re: [dpdk-dev] [PATCH v3 1/3] net/ixgbe: remove reduandent code

2017-06-01 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: Zhang, Qi Z > Sent: Friday, June 2, 2017 1:37 AM > To: Lu, Wenzhuo; Zhang, Helin > Cc: dev@dpdk.org; Zhang, Qi Z > Subject: [PATCH v3 1/3] net/ixgbe: remove reduandent code > > Remove reduandent code. > item->type != RTE_FLOW_ITEM_TYPE_END already cover ty

[dpdk-dev] [PATCH v2] net/i40e: exclude internal packet's byte count

2017-06-01 Thread Qi Zhang
Tx/Rx byte counts of internal managed packet should be exluded from the total rx/tx bytes. Fixes: 9aace75fc82e ("i40e: fix statistics") Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- v2: - internal byte count should be clear during pf setup. drivers/net/i40e/i40e_ethdev.c | 21 ++

Re: [dpdk-dev] [RFC] proposal of allowing personal/project repos on DPDK.org

2017-06-01 Thread Yuanhan Liu
On Thu, Jun 01, 2017 at 09:36:39AM +, Dumitrescu, Cristian wrote: > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Tiwei Bie > > Hello everyone, > > > > We'd like to make a proposal of making DPDK.org allow hosting > > some personal/project repos, which could be very useful when > > so

[dpdk-dev] [PATCH v3 2/3] net/ixgbe: fix fdir mask not be reset

2017-06-01 Thread Qi Zhang
When the last fdir flow be destroyed, the flag "mask_added" should be reset, so the remain mask info will not take effect when a new flow be added. Fixes: a14de8b498d1 ("net/ixgbe: destroy consistent filter") Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/ixgbe/ixgbe_flow.c | 4 +++

[dpdk-dev] [PATCH v3 3/3] net/ixgbe: enable flex bytes for generic flow API

2017-06-01 Thread Qi Zhang
Add fdir flex byte support for rte_flow APIs. Signed-off-by: Qi Zhang --- drivers/net/ixgbe/ixgbe_ethdev.h | 3 + drivers/net/ixgbe/ixgbe_fdir.c | 31 - drivers/net/ixgbe/ixgbe_flow.c | 137 ++- 3 files changed, 167 insertions(+), 4 deletions(-)

[dpdk-dev] [PATCH v3 0/3] ixgbe: enable flex filter for rte_flow

2017-06-01 Thread Qi Zhang
Enable fdir flex byte support for rte_flow APIs. v2: - fix couple checkpatch errors. v3: - fix comment. Qi Zhang (3): net/ixgbe: remove reduandent code net/ixgbe: fix fdir mask not be reset net/ixgbe: enable flex bytes for generic flow API drivers/net/ixgbe/ixgbe_ethdev.h | 3 + driver

[dpdk-dev] [PATCH v3 1/3] net/ixgbe: remove reduandent code

2017-06-01 Thread Qi Zhang
Remove reduandent code. item->type != RTE_FLOW_ITEM_TYPE_END already cover item->type == RTE_FLOW_ITEM_TYPE_VLAN. Signed-off-by: Qi Zhang --- v3: -fix comments. drivers/net/ixgbe/ixgbe_flow.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/net/ixgbe/ix

Re: [dpdk-dev] [PATCH] net/i40e: exclude internal packet's byte count

2017-06-01 Thread Zhang, Qi Z
> -Original Message- > From: Xing, Beilei > Sent: Thursday, June 1, 2017 5:13 PM > To: Zhang, Qi Z ; Wu, Jingjing > ; Zhang, Helin > Cc: dev@dpdk.org; Zhang, Qi Z ; sta...@dpdk.org > Subject: RE: [dpdk-dev] [PATCH] net/i40e: exclude internal packet's byte > count > > Hi Qi, > > > -

[dpdk-dev] [PATCH] vhost: fix crash on NUMA

2017-06-01 Thread Yuanhan Liu
The queue allocation was changed, from allocating one queue-pair at a time to one queue at a time. Most of the changes have been done, but just with one being missed: the size of coping the old queue is still based on queue-pair at numa_realloc(), which leads to overwritten issue. As a result, cras

Re: [dpdk-dev] [RFC] Add Membership Library

2017-06-01 Thread Vincent Jardin
Le 1 juin 2017 03:03:39 "Wang, Yipeng1" a écrit : Hi Vincent, Thanks for the comments and some quick responses below: - DPDK Bloom Filter is derived from the libbloom (as shown by the included BSD license), but optimized for performance with various DPDK goodness such as rte_zmalloc, rte_

Re: [dpdk-dev] [PATCH 31/33] doc/testeventdev: add "perf queue" test details

2017-06-01 Thread Eads, Gage
> diff --git a/doc/guides/tools/testeventdev.rst > b/doc/guides/tools/testeventdev.rst > index 02b7a8a57..b895b2d2b 100644 > --- a/doc/guides/tools/testeventdev.rst > +++ b/doc/guides/tools/testeventdev.rst > @@ -297,4 +297,90 @@ Example command to run order ``all types queue`` > test: >

Re: [dpdk-dev] [PATCH 25/33] app/testeventdev: perf queue: add worker functions

2017-06-01 Thread Eads, Gage
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Sunday, May 28, 2017 2:59 PM > To: dev@dpdk.org > Cc: Richardson, Bruce ; Van Haaren, Harry > ; hemant.agra...@nxp.com; Eads, Gage > ; nipun.gu...@nxp.com; Vangati, Narender > ; Rao, Nikhil ;

Re: [dpdk-dev] [PATCH 15/33] app/testeventdev: order: launch lcores

2017-06-01 Thread Eads, Gage
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Sunday, May 28, 2017 2:59 PM > To: dev@dpdk.org > Cc: Richardson, Bruce ; Van Haaren, Harry > ; hemant.agra...@nxp.com; Eads, Gage > ; nipun.gu...@nxp.com; Vangati, Narender > ; Rao, Nikhil ;

Re: [dpdk-dev] [PATCH 02/33] app/testeventdev: define eventdev test ops

2017-06-01 Thread Eads, Gage
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Sunday, May 28, 2017 2:58 PM > To: dev@dpdk.org > Cc: Richardson, Bruce ; Van Haaren, Harry > ; hemant.agra...@nxp.com; Eads, Gage > ; nipun.gu...@nxp.com; Vangati, Narender > ; Rao, Nikhil ;

Re: [dpdk-dev] [PATCH 6/7] mbuf: introduce new Tx offload flag for MPLS-in-UDP

2017-06-01 Thread Ferruh Yigit
On 6/1/2017 7:59 PM, Patil, Harish wrote: >> > >> On 5/28/2017 9:37 AM, Rasesh Mody wrote: >>> From: Harish Patil >>> >>> Some PMDs need to know the tunnel type in order to handle advance TX >>> features. This patch adds a new TX offload flag for MPLS-in-UDP packets. >>> >>> Signed-off-by: Harish

Re: [dpdk-dev] [PATCH 6/7] mbuf: introduce new Tx offload flag for MPLS-in-UDP

2017-06-01 Thread Patil, Harish
> >On 5/28/2017 9:37 AM, Rasesh Mody wrote: >> From: Harish Patil >> >> Some PMDs need to know the tunnel type in order to handle advance TX >> features. This patch adds a new TX offload flag for MPLS-in-UDP packets. >> >> Signed-off-by: Harish Patil >> --- >> lib/librte_mbuf/rte_mbuf.c |

Re: [dpdk-dev] [PATCH v4 07/12] net/failsafe: support flow API

2017-06-01 Thread Stephen Hemminger
On Thu, 1 Jun 2017 16:28:13 +0200 Gaëtan Rivet wrote: > On Wed, May 31, 2017 at 08:21:39AM -0700, Stephen Hemminger wrote: > > On Mon, 29 May 2017 15:42:19 +0200 > > Gaetan Rivet wrote: > > > > > Signed-off-by: Gaetan Rivet > > > Acked-by: Olga Shern > > > --- > > > doc/guides/nics/feature

Re: [dpdk-dev] [PATCH v4 05/12] net/failsafe: add plug-in support

2017-06-01 Thread Stephen Hemminger
On Thu, 1 Jun 2017 16:12:41 +0200 Gaëtan Rivet wrote: > On Wed, May 31, 2017 at 08:15:26AM -0700, Stephen Hemminger wrote: > > On Mon, 29 May 2017 15:42:17 +0200 > > Gaetan Rivet wrote: > > > > > Periodically check for the existence of a device. > > > If a device has not been initialized and

Re: [dpdk-dev] [PATCH v4 04/12] net/failsafe: add fail-safe PMD

2017-06-01 Thread Stephen Hemminger
On Thu, 1 Jun 2017 16:01:37 +0200 Gaëtan Rivet wrote: > What is necessary is a common piece of info (it can be MAC address, a > class Id, anything else) that allows a script to detect that the right > device has been plugged in. As long as the NFV server allows determinism > here, the user will b

[dpdk-dev] [PATCH v4 25/26] net/bnxt: add support to set VF rxmode

2017-06-01 Thread Ajit Khaparde
This patch adds support to configure the VF L2 Rx settings. The per VF setting is maintained in bnxt_child_vf_info.l2_rx_mask Signed-off-by: Ajit Khaparde -- v1->v2: regroup related patches and incorporate other review comments v2->v3: - Rebasing to next-net tree - Use net/bnxt instead of ju

[dpdk-dev] [PATCH v4 26/26] doc: update release notes

2017-06-01 Thread Ajit Khaparde
Update release doc briefly describing updates to bnxt PMD. v1->v2: - Rebasing to next-net tree - Use doc in the patch subject line Signed-off-by: Ajit Khaparde --- doc/guides/rel_notes/release_17_08.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/guides/rel_notes/rel

[dpdk-dev] [PATCH v4 24/26] net/bnxt: add code to configure a default VF VLAN

2017-06-01 Thread Ajit Khaparde
This patch adds code to insert a default VF VLAN. Also track the current default VLAN per vnic for the VF. When setting the default VLAN, avoid setting it to the current value. Signed-off-by: Stephen Hurd Signed-off-by: Ajit Khaparde -- v1->v2: regroup related patches and incorporate other revi

[dpdk-dev] [PATCH v4 23/26] net/bnxt: add support to add a VF MAC address

2017-06-01 Thread Ajit Khaparde
This patch adds support to allocate a filter and program it in the hardware for every MAC address added to the specified function. Signed-off-by: Stephen Hurd Signed-off-by: Ajit Khaparde -- v1->v2: regroup related patches and incorporate other review comments v2->v3: - Rebasing to next-net

[dpdk-dev] [PATCH v4 22/26] net/bnxt: add code to determine the Rx status of VF

2017-06-01 Thread Ajit Khaparde
This patch adds code to determine the Rx status of a VF. It adds the rte_pmd_bnxt_get_vf_rx_status call, which calculates the VNIC count of the function to get the Rx status. Signed-off-by: Stephen Hurd Signed-off-by: Ajit Khaparde -- v1->v2: regroup related patches and incorporate other review

[dpdk-dev] [PATCH v4 21/26] net/bnxt: add support to get and clear VF specific stats

2017-06-01 Thread Ajit Khaparde
This patch adds code to get and clear VF stats. It also adds the necessary HWRM structures to send the command to the firmware. Signed-off-by: Stephen Hurd Signed-off-by: Ajit Khaparde -- v1->v2: regroup related patches and incorporate other review comments v2->v3: - Rebasing to next-net tree

[dpdk-dev] [PATCH v4 20/26] net/bnxt: add support for set VF QOS and MAC anti spoof

2017-06-01 Thread Ajit Khaparde
This patch adds support to 1) enable VF MAC anti spoof. 2) QOS configuration for specified VF. Signed-off-by: Ajit Khaparde -- v1->v2: regroup related patches and incorporate other review comments v2->v3: - Rebasing to next-net tree - Use net/bnxt instead of just bnxt in patch subject - Ad

[dpdk-dev] [PATCH v4 19/26] net/bnxt: add support for tx loopback, set vf mac and queues drop

2017-06-01 Thread Ajit Khaparde
Add functions rte_pmd_bnxt_set_tx_loopback, rte_pmd_bnxt_set_all_queues_drop_en and rte_pmd_bnxt_set_vf_mac_addr to configure tx_loopback, queue_drop and VF MAC address setting in the hardware. It also adds the necessary functions to send the HWRM commands to the firmware. Signed-off-by: Steeven L

[dpdk-dev] [PATCH v4 15/26] net/bnxt: add code to support VLAN pvid

2017-06-01 Thread Ajit Khaparde
This patch adds code to support vlan_pvid_set dev_op Signed-off-by: Ajit Khaparde -- v1->v2: regroup related patches and incorporate other review comments v2->v3: - rebasing to next-net tree - Use net/bnxt instead of just bnxt in patch subject - Avoid using dev_ops in the patch subject li

[dpdk-dev] [PATCH v4 18/26] net/bnxt: add support for led on/off

2017-06-01 Thread Ajit Khaparde
This patch adds support for dev_led_on/off dev_ops HWRM calls added: bnxt_hwrm_port_led_qcaps() bnxt_hwrm_port_led_cfg() Signed-off-by: Ajit Khaparde -- v1-v2: - rebasing to next-net tree - Use net/bnxt instead of just bnxt in patch subject - Update bnxt.ini indicating support for LED on/o

[dpdk-dev] [PATCH v4 16/26] net/bnxt: reorg the query stats code

2017-06-01 Thread Ajit Khaparde
1) Use hwrm_stat_ctx_query command to query statistics Using hwrm_stat_ctx_query command will allow polling the statistics from hardware instead of using the current push model from the hardware which does a DMA of the stats to the host at fixed intervals. 2) Use the rx_mbuf_alloc_fail to track mbu

[dpdk-dev] [PATCH v4 17/26] doc: update default.ini to add LED support

2017-06-01 Thread Ajit Khaparde
Update default.ini to indicate LED on/off support Signed-off-by: Ajit Khaparde --- doc/guides/nics/features/default.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/default.ini b/doc/guides/nics/features/default.ini index cafc6c7..5549acd 100644 --- a/doc/guides/n

[dpdk-dev] [PATCH v4 14/26] net/bnxt: add rxq/txq info_get

2017-06-01 Thread Ajit Khaparde
Add support for txq_info_get and rxq_info_get dev_ops Signed-off-by: Ajit Khaparde -- v1->v2: regroup related patches and incorporate other review comments v2->v3: - rebasing to next-net tree - Use net/bnxt instead of just bnxt in patch subject - Avoid using dev_ops in the patch subject l

[dpdk-dev] [PATCH v4 12/26] net/bnxt: add support to set MTU

2017-06-01 Thread Ajit Khaparde
This patch adds support to modify MTU using the set_mtu dev_op. To support frames > 2k, the PMD creates an aggregator ring. When a frame greater than 2k is received, it is fragmented and the resulting fragments are DMA'ed to the aggregator ring. Now the driver can support jumbo frames upto 9500 byt

[dpdk-dev] [PATCH v4 11/26] net/bnxt: add support to get fw version

2017-06-01 Thread Ajit Khaparde
This patch adds support for fw_version_get dev_op Signed-off-by: Ajit Khaparde -- v1->v2: regroup related patches and incorporate other review comments v2->v3: - rebasing to next-net tree - Use net/bnxt instead of just bnxt in patch subject - Avoid using dev_ops in the patch subject line

[dpdk-dev] [PATCH v4 13/26] net/bnxt: add support for LRO

2017-06-01 Thread Ajit Khaparde
This patch adds support to enable and disable LRO To support this feature, the driver creates an aggregrator ring. When the hardware starts doing LRO, it sends a tpa_start completion. When the driver receives a tpa_end completion, it indicates that the LRO chaining is complete. Signed-off-by: Stee

[dpdk-dev] [PATCH v4 10/26] doc: update bnxt.ini to document Allmulticast mode

2017-06-01 Thread Ajit Khaparde
This patch update bnxt.int to document Allmulticast mode which is already supported by the PMD. Signed-off-by: Ajit Khaparde --- doc/guides/nics/features/bnxt.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/nics/features/bnxt.ini b/doc/guides/nics/features/bnxt.ini index 78a7

[dpdk-dev] [PATCH v4 09/26] net/bnxt: add support for set multicast addr list and MAC addr set

2017-06-01 Thread Ajit Khaparde
This patch adds support for set_mc_addr_list and mac_addr_set dev_ops Signed-off-by: Ajit Khaparde -- v1->v2: regroup related patches and incorporate other review comments v2->v3: - rebasing to next-net tree - Use net/bnxt instead of just bnxt in patch subject - Split the patch to document

[dpdk-dev] [PATCH v4 08/26] net/bnxt: add support for VLAN filter and strip

2017-06-01 Thread Ajit Khaparde
This patch adds VLAN strip and offload callbacks. To add a VLAN filter: For each VNIC and each associated filter(s) if VLAN exists: if VLAN matches vlan_id VLAN filter already exists, just skip and continue else add a new MAC+VLAN

[dpdk-dev] [PATCH v4 07/26] net/bnxt: add support for xstats get/reset

2017-06-01 Thread Ajit Khaparde
This patch adds support to get and reset xstats dev_ops dev_ops added: xstats_get, xstats_get_name, xstats_reset HWRM commands added: hwrm_port_qstats, hwrm_port_clr_stats Signed-off-by: Ajit Khaparde -- v1->v2: regroup related patches and incorporate other review comments v2->v3: - rebasing

[dpdk-dev] [PATCH v4 06/26] net/bnxt: add tunneling support

2017-06-01 Thread Ajit Khaparde
Add support for udp_tunnel_port_add/del dev_ops to configure a UDP port for VXLAN and Geneve Tunnel protocols. The HWRM supports only one global destination port for a tunnel type, use a referene counter to keep track of its usage. Cache the configured VXLAN/Geneve ports and use that value to check

[dpdk-dev] [PATCH v4 02/26] net/bnxt: code reorg to properly allocate resources for PF/VF

2017-06-01 Thread Ajit Khaparde
1) Move the function reset to bnxt_dev_init. On the same lines, setup, enable and request interrupt to init path. Memory allocation is also being done in the init path. 2) After a function reset, configure the VFs. Distribute resources evenly between all functions (PF and VF) for now. In the futur

[dpdk-dev] [PATCH v4 05/26] net/bnxt: add additonal HWRM debug info to error messages

2017-06-01 Thread Ajit Khaparde
Add the cmd_err and opaque_0 and opaque_1 fields to HWRM error messages. These allow better debugging of some classes of HWRM errors. Signed-off-by: Stephen Hurd Signed-off-by: Ajit Khaparde -- v1->v2: regroup related patches and incorporate other review comments v2->v3: - rebasing to next-

[dpdk-dev] [PATCH v4 03/26] net/bnxt: handle VF/PF initialization appropriately

2017-06-01 Thread Ajit Khaparde
1) For a VF, query the firmware to determine if a MAC address is already configured. If not configure a random default MAC address. 2) Do not initialize the default completion ring in bnxt_alloc_hwrm_rings(). 3) While registering for async events with the firmware, use func_vf_cfg for a VF and use

[dpdk-dev] [PATCH v4 04/26] net/bnxt: support lack of huge pages

2017-06-01 Thread Ajit Khaparde
rte_malloc_virt2phy() does not return a physical address if huge pages aren't in use. Further, rte_memzone->phys_addr is not a physical address. Use rte_mem_virt2phy() and manually lock pages to support lack of huge pages. Also check the return value of rte_mem_virt2phy() Verify the function re

[dpdk-dev] [PATCH v4 00/26] bnxt patchset

2017-06-01 Thread Ajit Khaparde
This patchset amongst other changes adds support few more dev_ops, updates HWRM to version 1.7.7, switches to polling stats from the hardware, support for Jumbo MTU, LRO etc.. v1->v2: - Grouped in the end, it also has PMD specific APIs to control VF from PF. - I have updated the release notes

[dpdk-dev] [PATCH] eventdev: remove PCI dependency

2017-06-01 Thread Jerin Jacob
Remove the PCI dependency from generic data structures and moved the PCI specific code to rte_event_pmd_pci* CC: Gaetan Rivet Signed-off-by: Jerin Jacob --- drivers/event/skeleton/skeleton_eventdev.c | 30 +- lib/librte_eventdev/rte_eventdev.c | 37 +++--- lib/li

Re: [dpdk-dev] [PATCH v3 22/26] net/bnxt: add code to determine the Rx status of VF

2017-06-01 Thread Ajit Khaparde
On Thu, Jun 1, 2017 at 7:28 AM, Ferruh Yigit wrote: > Hi Ajit, > > On 6/1/2017 4:02 AM, Ajit Khaparde wrote: > > This patch adds code to determine the Rx status of a VF. > > It adds the rte_pmd_bnxt_get_vf_rx_status call, which calculates > > the VNIC count of the function to get the Rx status. >

[dpdk-dev] [PATCH] doc: add generic compilation doc for all sample apps

2017-06-01 Thread Herakliusz Lipiec
Moved duplicated, and occasionally outdated, doc sections from each of the sample app guides chapters to a common chapter at the start. This reduces the duplication in the docs and provides a single point of reference for compiling the sample apps. Fixes: d0dff9ba445e ("doc: sample application us

Re: [dpdk-dev] [PATCH 00/13] cxgbe: add support for Chelsio T6 family of adapters

2017-06-01 Thread Rahul Lakkireddy
On Tuesday, May 05/30/17, 2017 at 15:58:56 +0530, Thomas Monjalon wrote: >27/05/2017 05:46, Rahul Lakkireddy: >> This series of patches add support for Chelsio T6 family of adapters. > >It is almost one year since your last contribution, >welcome back Rahul :) > Can't believe it'

[dpdk-dev] [PATCH v2] event/sw: fix credit tracking in port dequeue

2017-06-01 Thread Harry van Haaren
Single-link optimized ports previously did not correctly track credits when dequeued, and re-enqueued as a FORWARD type. This could "inflate" the number of credits in the system. A unit test is added to reproduce and verify the issue, and the fixed implementation counts FORWARD packets, and reduce

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

2017-06-01 Thread Adrien Mazarguil
Hi Cristian, On Tue, May 30, 2017 at 05:44:13PM +0100, Cristian Dumitrescu wrote: > Signed-off-by: Cristian Dumitrescu > --- > lib/librte_ether/rte_flow.h | 22 ++ > 1 file changed, 22 insertions(+) > > diff --git a/lib/librte_ether/rte_flow.h b/lib/librte_ether/rte_flow.h >

Re: [dpdk-dev] [PATCH v4 08/12] net/failsafe: support offload capabilities

2017-06-01 Thread Olga Shern
L;w > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Gaëtan Rivet > Sent: Thursday, June 01, 2017 5:38 PM > To: Stephen Hemminger > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v4 08/12] net/failsafe: support offload > capabilities > > On Wed, May 31, 2017

Re: [dpdk-dev] [PATCH] ethdev: add roughly match pattern

2017-06-01 Thread Adrien Mazarguil
On Thu, Jun 01, 2017 at 01:44:56AM +, Zhang, Qi Z wrote: > > -Original Message- > > From: Gaëtan Rivet [mailto:gaetan.ri...@6wind.com] > > Sent: Wednesday, May 31, 2017 3:52 PM > > To: Zhang, Qi Z ; dev@dpdk.org > > Cc: Adrien Mazarguil ; Mcnamara, John > > > > Subject: Re: [dpdk-dev]

Re: [dpdk-dev] [PATCH v4 08/12] net/failsafe: support offload capabilities

2017-06-01 Thread Gaëtan Rivet
On Wed, May 31, 2017 at 08:23:09AM -0700, Stephen Hemminger wrote: > On Mon, 29 May 2017 15:42:20 +0200 > Gaetan Rivet wrote: > > > Signed-off-by: Gaetan Rivet > > Acked-by: Olga Shern > > --- > > doc/guides/nics/features/failsafe.ini | 6 ++ > > drivers/net/failsafe/failsafe_ops.c | 131

Re: [dpdk-dev] [PATCH v4 07/12] net/failsafe: support flow API

2017-06-01 Thread Gaëtan Rivet
On Wed, May 31, 2017 at 08:21:39AM -0700, Stephen Hemminger wrote: > On Mon, 29 May 2017 15:42:19 +0200 > Gaetan Rivet wrote: > > > Signed-off-by: Gaetan Rivet > > Acked-by: Olga Shern > > --- > > doc/guides/nics/features/failsafe.ini | 1 + > > drivers/net/failsafe/Makefile |

Re: [dpdk-dev] [PATCH v4 06/12] net/failsafe: add flexible device definition

2017-06-01 Thread Gaëtan Rivet
On Wed, May 31, 2017 at 08:19:36AM -0700, Stephen Hemminger wrote: > On Mon, 29 May 2017 15:42:18 +0200 > Gaetan Rivet wrote: > > > > > +- **exec()** parameter > > + > > + This parameter allows the user to provide a command to the fail-safe PMD > > to > > + execute and define a sub-device. >

Re: [dpdk-dev] [PATCH v4 05/12] net/failsafe: add plug-in support

2017-06-01 Thread Gaëtan Rivet
On Wed, May 31, 2017 at 08:15:26AM -0700, Stephen Hemminger wrote: > On Mon, 29 May 2017 15:42:17 +0200 > Gaetan Rivet wrote: > > > Periodically check for the existence of a device. > > If a device has not been initialized and exists on the system, then it > > is probed and configured. > > > > T

Re: [dpdk-dev] [PATCH v4 04/12] net/failsafe: add fail-safe PMD

2017-06-01 Thread Gaëtan Rivet
On Wed, May 31, 2017 at 08:13:53AM -0700, Stephen Hemminger wrote: > On Mon, 29 May 2017 15:42:16 +0200 > Gaetan Rivet wrote: > > +Fail-safe poll mode driver library > > +== > > + > > +The Fail-safe poll mode driver library (**librte_pmd_failsafe**) is a > > virtua

[dpdk-dev] [PATCH] net/thunderx: manage PCI device mapping for SQS VFs

2017-06-01 Thread Jerin Jacob
Since the commit e84ad157b7bc ("pci: unmap resources if probe fails"), EAL unmaps the PCI device if ethdev probe returns positive or negative value. nicvf thunderx PMD needs special treatment for Secondary queue set(SQS) PCIe VF devices, where, it expects to not unmap or free the memory without re

Re: [dpdk-dev] Getting meta data from different pipelines in ip_pipeline application

2017-06-01 Thread Nidhia Varghese
Hi, Any comments on the below thread? Thanks, Nidhia On Tue, May 30, 2017 at 12:33 PM, Nidhia Varghese < nidhiavarghes...@gmail.com> wrote: > Hi, > > This is how I want my pipelines to work:- > Pipeline 4: > Has to get the source mac address and save it in 160th(160-167) meta data > filed in th

Re: [dpdk-dev] [PATCH v3 22/26] net/bnxt: add code to determine the Rx status of VF

2017-06-01 Thread Ferruh Yigit
Hi Ajit, On 6/1/2017 4:02 AM, Ajit Khaparde wrote: > This patch adds code to determine the Rx status of a VF. > It adds the rte_pmd_bnxt_get_vf_rx_status call, which calculates > the VNIC count of the function to get the Rx status. > > Signed-off-by: Stephen Hurd > Signed-off-by: Ajit Khaparde

Re: [dpdk-dev] [PATCH 5/6] net/vmxnet3: receive queue lockup and memleak

2017-06-01 Thread Charles (Chas) Williams
While looking at another issue, I think one of the issues fixed in this commit has already been fixed in the last DPDK release by: commit 8fce14b789aecdb4345a62f6980e7b6e7f4ba245 Author: Stefan Puiu Date: Mon Dec 19 11:40:53 2016 +0200 net/vmxnet3: fix Rx d

Re: [dpdk-dev] [PATCH 20/20] doc: add NXP DPAA2 EVENTDEV details

2017-06-01 Thread Nipun Gupta
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Wednesday, May 31, 2017 21:28 > To: Nipun Gupta > Cc: dev@dpdk.org; Hemant Agrawal ; > harry.van.haa...@intel.com; bruce.richard...@intel.com; > gage.e...@intel.com; Shreyansh Jain > Subject: Re: [P

Re: [dpdk-dev] [PATCH 1/4] eal: introduce the rte macro for always inline

2017-06-01 Thread Bruce Richardson
On Thu, Jun 01, 2017 at 12:57:30PM +0100, Bruce Richardson wrote: > On Sat, May 13, 2017 at 02:57:25PM +0530, Jerin Jacob wrote: > > Different drivers use internal macros like force_inline for compiler > > always inline feature. > > Standardizing it through __rte_always_inline macro. > > > > Signe

Re: [dpdk-dev] [PATCH 1/4] eal: introduce the rte macro for always inline

2017-06-01 Thread Bruce Richardson
On Sat, May 13, 2017 at 02:57:25PM +0530, Jerin Jacob wrote: > Different drivers use internal macros like force_inline for compiler > always inline feature. > Standardizing it through __rte_always_inline macro. > > Signed-off-by: Jerin Jacob > --- > This patch has the following false positive che

Re: [dpdk-dev] [PATCH 19/20] event/dpaa2: handle timeout using interrupts in dequeue

2017-06-01 Thread Nipun Gupta
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Wednesday, May 31, 2017 21:19 > To: Nipun Gupta > Cc: dev@dpdk.org; Hemant Agrawal ; > harry.van.haa...@intel.com; bruce.richard...@intel.com; > gage.e...@intel.com; Shreyansh Jain > Subject: Re: [P

Re: [dpdk-dev] [PATCH 12/20] event/dpaa2: add configuration functions

2017-06-01 Thread Nipun Gupta
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Wednesday, May 31, 2017 20:59 > To: Nipun Gupta > Cc: dev@dpdk.org; Hemant Agrawal ; > harry.van.haa...@intel.com; bruce.richard...@intel.com; > gage.e...@intel.com; Shreyansh Jain > Subject: Re: [P

Re: [dpdk-dev] [RFC PATCH] igb_uio: issue FLR during open and release of device file

2017-06-01 Thread Shijith Thotton
On Wed, May 31, 2017 at 06:11:40PM +0100, Ferruh Yigit wrote: > On 5/31/2017 4:30 PM, Stephen Hemminger wrote: > > On Wed, 31 May 2017 13:20:08 +0100 > > Ferruh Yigit wrote: > > > >> On 5/31/2017 12:09 PM, Shijith Thotton wrote: > >>> Set UIO info device file operations open and release. Call pci

Re: [dpdk-dev] [PATCH v3] ethdev: moved bypass functions to ixgbe pmd

2017-06-01 Thread Ferruh Yigit
On 6/1/2017 1:49 AM, Lu, Wenzhuo wrote: > Hi, > >> -Original Message- >> From: Nicolau, Radu >> Sent: Wednesday, May 31, 2017 7:10 PM >> To: dev@dpdk.org >> Cc: Yigit, Ferruh; Iremonger, Bernard; Dai, Wei; Lu, Wenzhuo; Nicolau, Radu >> Subject: [PATCH v3] ethdev: moved bypass functions to

Re: [dpdk-dev] [RFC PATCH] igb_uio: issue FLR during open and release of device file

2017-06-01 Thread Gregory Etelson
On Wednesday, 31 May 2017 15:20:08 IDT Ferruh Yigit wrote: > On 5/31/2017 12:09 PM, Shijith Thotton wrote: > > Set UIO info device file operations open and release. Call pci reset > > function inside open and release to clear device state at start and > > end. Copied this behaviour from vfio_pci k

Re: [dpdk-dev] [PATCH v3] net/e1000: fix checksum valid flags error

2017-06-01 Thread Ferruh Yigit
On 5/31/2017 4:35 AM, Lu, Wenzhuo wrote: > Hi, > > >> -Original Message- >> From: Zhao1, Wei >> Sent: Wednesday, May 31, 2017 11:03 AM >> To: dev@dpdk.org >> Cc: Lu, Wenzhuo; Zhao1, Wei >> Subject: [PATCH v3] net/e1000: fix checksum valid flags error >> >> This problem is caused by a miss

[dpdk-dev] [PATCH 2/3] net/mlx4: net bus support

2017-06-01 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- drivers/net/mlx4/mlx4.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index ec4419a..705620a 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -62,6 +62,7 @@ #include #includ

[dpdk-dev] [PATCH 3/3] net/mlx5: net bus support

2017-06-01 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- drivers/net/mlx5/mlx5.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index fc99c0d..4e33703 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -58,6 +58,7 @@ #include #includ

[dpdk-dev] [PATCH 1/3] bus/net: introduce net bus

2017-06-01 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- MAINTAINERS | 6 + config/common_linuxapp| 2 + drivers/bus/Makefile | 2 + drivers/bus/net/Makefile | 66 +++ drivers/bus/net/bsd/Makefile

[dpdk-dev] [PATCH 0/3] Introduce net bus

2017-06-01 Thread Gaetan Rivet
This new bus takes as devices kernel netdevices. It offers an API for drivers to register a translation layer that would transform the netdev name to one their regular PMD would be able to probe. This is PoC. It currently only works for MLX4 and MLX5 PMDs as they were bifurcated and had very littl

Re: [dpdk-dev] [PATCH 10/20] event/dpaa2: add initialization of event device

2017-06-01 Thread Jerin Jacob
-Original Message- > Date: Thu, 1 Jun 2017 10:25:02 + > From: Nipun Gupta > To: Jerin Jacob > CC: "dev@dpdk.org" , Hemant Agrawal , > "harry.van.haa...@intel.com" , > "bruce.richard...@intel.com" , > "gage.e...@intel.com" , Shreyansh Jain > > Subject: RE: [PATCH 10/20] event/dpaa

Re: [dpdk-dev] [PATCH] net/mlx5: fix redundant free of Tx buffer

2017-06-01 Thread Ferruh Yigit
On 6/1/2017 9:08 AM, Nélio Laranjeiro wrote: > On Wed, May 31, 2017 at 10:48:45AM -0700, Yongseok Koh wrote: >> SW completion ring of Tx (txq->elts) stores individual mbufs even if a >> multi-segmented packet is sent. rte_pktmbuf_free_seg() must be used when >> cleaning up the completion ring. Othe

Re: [dpdk-dev] [PATCH 10/20] event/dpaa2: add initialization of event device

2017-06-01 Thread Nipun Gupta
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Wednesday, May 31, 2017 20:40 > To: Nipun Gupta > Cc: dev@dpdk.org; Hemant Agrawal ; > harry.van.haa...@intel.com; bruce.richard...@intel.com; > gage.e...@intel.com; Shreyansh Jain > Subject: Re: [P

Re: [dpdk-dev] [PATCH] net/mlx5: fix wrong exception handling

2017-06-01 Thread Ferruh Yigit
On 5/30/2017 8:48 AM, Adrien Mazarguil wrote: > On Mon, May 29, 2017 at 06:02:59PM -0700, Yongseok Koh wrote: >> A sanity check is required in priv_fdir_disable(). If resizing Rx queue >> fails, this can cause a crash by referencing a NULL pointer. >> >> Cc: sta...@dpdk.org >> Fixes: 76f5c99e6840 (

  1   2   >