Re: [dpdk-dev] Bug in virtqueue_dequeue_burst_rx()

2016-12-21 Thread Yuanhan Liu
On Mon, Dec 19, 2016 at 09:59:33PM -0800, Gopakumar Choorakkot Edakkunni wrote: > 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

Re: [dpdk-dev] [PATCH 0/3] net/virtio: a temp to fix few multiple process issues

2016-12-21 Thread Yuanhan Liu
On Thu, Dec 22, 2016 at 03:18:40PM +0800, Yuanhan Liu wrote: > Here is a temp to fix few multiple process issues: only did some basic Sign.., I meant "attempt" :-/ --yliu

[dpdk-dev] [PATCH 3/3] net/virtio: fix wrong Rx/Tx method for secondary process

2016-12-21 Thread Yuanhan Liu
If the primary enables the vector Rx/Tx path, the current code would let the secondary always choose the non vector Rx/Tx path. This results to a Rx/Tx method mismatch between primary and secondary process. Werid errors then may happen, something like: PMD: virtio_xmit_pkts() tx: virtqueue_enq

[dpdk-dev] [PATCH 2/3] net/virtio: fix multiple process support

2016-12-21 Thread Yuanhan Liu
The introduce of virtio 1.0 support brings yet another set of ops, badly, it's not handled correctly, that it breaks the multiple process support. The issue is the function pointer may vary from different processes, and the current code just does one time set (for primary process only). That said,

[dpdk-dev] [PATCH 0/3] net/virtio: a temp to fix few multiple process issues

2016-12-21 Thread Yuanhan Liu
Here is a temp to fix few multiple process issues: only did some basic test, not positive sure (though it's likely) it will fix the issue reported by Yaron. Yaron, please help testing. Thanks! --- Yuanhan Liu (3): net/virtio: fix crash for secondary process net/virtio: fix multiple process su

[dpdk-dev] [PATCH 1/3] net/virtio: fix crash for secondary process

2016-12-21 Thread Yuanhan Liu
If a virtio net device is managed by kernel driver, the primary process would be aware of it and skip it. For secondary process, however, it isn't aware of that. Instead, the 'hw' would be NULL. If we keep going on with the rx_func_get(), a crash would happen. For such case, we simply return 1 to

Re: [dpdk-dev] [PATCH v4 03/23] rte_device: make driver pointer const

2016-12-21 Thread Shreyansh Jain
On Wednesday 21 December 2016 08:39 PM, Jan Blunck wrote: From: Stephen Hemminger The info in rte_device about driver is immutable and shouldn't change. Acked-by: Jan Blunck Acked-by: Jan Blunck Not being picky - but, multiple Acked-by can be removed when this is applied. --- lib/libr

[dpdk-dev] 答复: RE: [PATCH] net/fm10k/base: add a break statement

2016-12-21 Thread yao . chenghu
> > Thanks for contributing code. But there are 2 problems here. > > 1. You are modifying base code under 'base' directory. It assumed > READ ONLY because > there is another Intel team are maintaining it. > 2. Without your change, the code won't have any negative effect. > Yes, I appreciate

Re: [dpdk-dev] [PATCH v3 02/12] eal/bus: introduce bus abstraction

2016-12-21 Thread Shreyansh Jain
On Thursday 22 December 2016 10:42 AM, Shreyansh Jain wrote: On Thursday 22 December 2016 05:03 AM, Stephen Hemminger wrote: On Wed, 21 Dec 2016 16:38:42 +0100 Jan Blunck wrote: On Tue, Dec 20, 2016 at 6:11 PM, Stephen Hemminger wrote: On Tue, 20 Dec 2016 14:17:14 +0100 Jan Blunck wrote:

Re: [dpdk-dev] [PATCH] net/fm10k/base: add a break statement

2016-12-21 Thread Chen, Jing D
Hi, Chenghu, > -Original Message- > From: Chenghu Yao [mailto:yao.chen...@zte.com.cn] > Sent: Wednesday, December 21, 2016 11:05 AM > To: Chen, Jing D > Cc: dev@dpdk.org; Chenghu Yao > Subject: [PATCH] net/fm10k/base: add a break statement > > In function fm10k_mbx_create_reply(), the

Re: [dpdk-dev] [PATCH v3 02/12] eal/bus: introduce bus abstraction

2016-12-21 Thread Shreyansh Jain
On Thursday 22 December 2016 05:03 AM, Stephen Hemminger wrote: On Wed, 21 Dec 2016 16:38:42 +0100 Jan Blunck wrote: On Tue, Dec 20, 2016 at 6:11 PM, Stephen Hemminger wrote: On Tue, 20 Dec 2016 14:17:14 +0100 Jan Blunck wrote: On Fri, Dec 16, 2016 at 2:10 PM, Shreyansh Jain wrote: This

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

2016-12-21 Thread Jerin Jacob
On Wed, Dec 21, 2016 at 03:34:14PM +, Declan Doherty wrote: > On 08/12/16 17:45, Jerin Jacob wrote: > > On Thu, Dec 08, 2016 at 12:32:52PM +0100, Zbigniew Bodek wrote: > > > On 08.12.2016 11:24, Bruce Richardson wrote: > > > > On Tue, Dec 06, 2016 at 06:32:53PM -0800, > > > > zbigniew.bo...@ca

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

2016-12-21 Thread Yuanhan Liu
On Wed, Dec 21, 2016 at 10:06:36AM -0800, Stephen Hemminger wrote: > On Wed, 21 Dec 2016 17:45:13 +0800 > Yuanhan Liu wrote: > > > From: Jan Wickbom > > > > Currently select() is used to monitor file descriptors for vhostuser > > ports. This limits the number of ports possible to create since t

Re: [dpdk-dev] [PATCH v2 00/30] update ixgbe shared code to version 16.11.21

2016-12-21 Thread Dai, Wei
Many thanks to you for your taking time to review this patch set. Thanks -Wei > -Original Message- > From: Yigit, Ferruh > Sent: Thursday, December 22, 2016 1:20 AM > To: Dai, Wei ; dev@dpdk.org > Cc: Zhang, Helin ; Ananyev, Konstantin > > Subject: Re: [dpdk-dev] [PATCH v2 00/30] update

[dpdk-dev] Example(Load_balancer) Tx Flush Bug(This bug dpdk each version)

2016-12-21 Thread Maple
From: Maple To: Cc: , , Subject: [PATCH] Load_balancer Tx Flush Bug Date: Thu, 22 Dec 2016 09:57:48 +0800 Message-Id: <1482371868-19669-1-git-send-email-liuj...@raisecom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <2016122122394164225...@raisecom.com> References: <2016122122394164225...@rai

Re: [dpdk-dev] [PATCH 2/2] net/ixgbe: calculate correct number of received packets for ARM NEON-version vPMD

2016-12-21 Thread Jianbo Liu
On 21 December 2016 at 19:03, Bruce Richardson wrote: > On Wed, Dec 21, 2016 at 03:38:51PM +0530, Jerin Jacob wrote: >> On Mon, Dec 19, 2016 at 11:39:18AM +0530, Jianbo Liu wrote: >> >> Hi Jianbo, >> >> > vPMD will check 4 descriptors in one time, but the statuses are not >> > consistent >> > bec

Re: [dpdk-dev] [PATCH 2/2] net/ixgbe: calculate correct number of received packets for ARM NEON-version vPMD

2016-12-21 Thread Jianbo Liu
Hi Jerin, On 21 December 2016 at 18:08, Jerin Jacob wrote: > On Mon, Dec 19, 2016 at 11:39:18AM +0530, Jianbo Liu wrote: > > Hi Jianbo, > >> vPMD will check 4 descriptors in one time, but the statuses are not >> consistent >> because the memory allocated for RX descriptors is cacheable huagepage

Re: [dpdk-dev] [PATCH v3 02/12] eal/bus: introduce bus abstraction

2016-12-21 Thread Stephen Hemminger
On Wed, 21 Dec 2016 16:38:42 +0100 Jan Blunck wrote: > On Tue, Dec 20, 2016 at 6:11 PM, Stephen Hemminger > wrote: > > On Tue, 20 Dec 2016 14:17:14 +0100 > > Jan Blunck wrote: > > > >> On Fri, Dec 16, 2016 at 2:10 PM, Shreyansh Jain > >> wrote: > >> > This patch introduces the rte_bus abs

Re: [dpdk-dev] [PATCH 0/3] Add DES capability to Intel QuickAssist Technology driver

2016-12-21 Thread De Lara Guarch, Pablo
> -Original Message- > From: Trahe, Fiona > Sent: Wednesday, December 21, 2016 11:48 AM > To: Kusztal, ArkadiuszX; dev@dpdk.org > Cc: De Lara Guarch, Pablo; Griffin, John; Jain, Deepak K > Subject: RE: [PATCH 0/3] Add DES capability to Intel QuickAssist Technology > driver > > > > > --

[dpdk-dev] [PATCH v2] crypto/aesni_mb: enablement of avx512 support in IPsec_mb library

2016-12-21 Thread Declan Doherty
Release v0.44 of Intel(R) Multi-Buffer Crypto for IPsec library adds support for AVX512 instructions. This patch enables the new AVX512 accelerated functions from the aesni_mb_pmd crypto poll mode driver. This patch set requires that the aesni_mb_pmd is linked against the version 0.44 or greater o

[dpdk-dev] [PATCH v2] enablement of avx512 instruction support in aesni_mb_pmd

2016-12-21 Thread Declan Doherty
In patchset "AESNI MB PMD updates" (http://dpdk.org/ml/archives/dev/2016-December/050976.html) the AESNI Multi-Buffer Crypto for IPsec library which the aesni_mb_pmd depends on is updated to v0.44 This patch enables support for runtime selection of the AVX512 accelerated functions added to the n

Re: [dpdk-dev] [PATCH v4 21/23] ethdev: Move filling of rte_eth_dev_info->pci_dev to dev_infos_get()

2016-12-21 Thread Stephen Hemminger
On Wed, 21 Dec 2016 16:09:44 +0100 Jan Blunck wrote: > Only the device itself can decide its PCI or not. > > Signed-off-by: Jan Blunck > Acked-by: Shreyansh Jain > --- I would still like to kill dev_pci from the dev_info API.

Re: [dpdk-dev] [PATCH v4 10/23] virtio: Add vtpci_intr_handle() helper to get rte_intr_handle

2016-12-21 Thread Stephen Hemminger
On Wed, 21 Dec 2016 16:09:33 +0100 Jan Blunck wrote: > This adds a helper to get the rte_intr_handle from the virtio_hw. This is > safe to do since the usage of the helper is guarded by RTE_ETH_DEV_INTR_LSC > which is only set if we found a PCI device during initialization. > > Signed-off-by: Ja

Re: [dpdk-dev] [PATCHv2 03/34] doc: add dpaa2 nic details

2016-12-21 Thread Mcnamara, John
> -Original Message- > From: Hemant Agrawal [mailto:hemant.agra...@nxp.com] > Sent: Monday, December 19, 2016 8:54 PM > To: dev@dpdk.org > Cc: thomas.monja...@6wind.com; Richardson, Bruce > ; shreyansh.j...@nxp.com; Mcnamara, John > ; Yigit, Ferruh ; > jerin.ja...@caviumnetworks.com; Hemant

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

2016-12-21 Thread Stephen Hemminger
On Wed, 21 Dec 2016 17:45:13 +0800 Yuanhan Liu wrote: > From: Jan Wickbom > > Currently select() is used to monitor file descriptors for vhostuser > ports. This limits the number of ports possible to create since the > fd number is used as index in the fd_set and we have seen fds > 1023. > This

Re: [dpdk-dev] [PATCH v2 0/5] bonding: setup all queues of slave devices

2016-12-21 Thread Thomas Monjalon
2016-11-24 12:26, Jan Blunck: > Prior to 16.11 some drivers (e.g. virtio) still had problems if their > queues where setup repeatedly. The bonding driver was working around the > problem by reusing already setup queues. This series of patches changes the > way how queue setup is done to give contro

Re: [dpdk-dev] [PATCH v2 00/30] update ixgbe shared code to version 16.11.21

2016-12-21 Thread Ferruh Yigit
On 12/21/2016 9:47 AM, Wei Dai wrote: > update ixgbe shared code to version 16.11.21 . > v2 changes: > modify subject line and message body of git log according to > feedbacks from communtiy. > > split the 24th patch into 2 separate ones. > the 24th of v1 is net/ixgbe/base: add EEE supp

Re: [dpdk-dev] [PATCH] net/af_packet: initialize link interrupt callback queue

2016-12-21 Thread Ferruh Yigit
On 12/21/2016 3:30 PM, Ferruh Yigit wrote: > On 12/17/2016 6:03 PM, Chas Williams wrote: >> This patch initializes the eth_dev->link_intr_cbs queue which is >> used when af_packet is passed into rte_eth_ev_callback_register(). >> >> Fixes: 4dc294158cac ("ethdev: support optional Rx and Tx callbacks

Re: [dpdk-dev] [PATCH v2 1/2] Clear eth_dev->data in rte_eth_dev_allocate()

2016-12-21 Thread Thomas Monjalon
> > Lets clear the eth_dev->data when allocating a new rte_eth_dev so that > > drivers only need to set non-zero values. > > > > Signed-off-by: Jan Blunck > > Reviewed-by: Ferruh Yigit Both patches applied, thanks

Re: [dpdk-dev] [PATCH v4 12/23] bnx2x: localize mapping from eth_dev to pci

2016-12-21 Thread Harish Patil
> >Use device private information to minimize the places that assume eth_dev >contains pci_dev. > >Signed-off-by: Jan Blunck >--- > drivers/net/bnx2x/bnx2x_ethdev.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > >diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c >b/drivers/net/b

Re: [dpdk-dev] [PATCH v4 14/23] qede: localize mapping of eth_dev to pci

2016-12-21 Thread Harish Patil
> >This simplifies later changes to ethdev. > >Signed-off-by: Jan Blunck >--- > drivers/net/qede/qede_ethdev.c | 18 +- > 1 file changed, 9 insertions(+), 9 deletions(-) > >diff --git a/drivers/net/qede/qede_ethdev.c >b/drivers/net/qede/qede_ethdev.c >index d106dd0..a50bd5f 100644 >

Re: [dpdk-dev] [PATCH v2 00/25] Generic flow API (rte_flow)

2016-12-21 Thread Simon Horman
On Fri, Dec 16, 2016 at 05:24:57PM +0100, Adrien Mazarguil wrote: > 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 m

Re: [dpdk-dev] [PATCH v2 1/7] pci: If a driver's probe function fails, unmap resources.

2016-12-21 Thread Thomas Monjalon
2016-11-25 14:51, Shreyansh Jain: > On Thursday 24 November 2016 01:37 AM, Ben Walker wrote: > > If resources were mapped prior to probe, unmap them > > if probe fails. > > > > This does not handle the case where the kernel driver was > > forcibly unbound prior to probe. > > > > Signed-off-by: Ben

[dpdk-dev] Why IP_PIPELINE is faster than L2FWD

2016-12-21 Thread Royce Niu
Hi all, I tested default L2FWD and IP_PIPELINE (pass-through). The throughput of IP_PIPELINE is higher immensely. There are only two virtual NICs in KVM. The experiment is just moving packet from vNIC0 to vNIC1. I think the function is so simple. Why L2FWD is much slower? How can I improve L2FW

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

2016-12-21 Thread Declan Doherty
On 08/12/16 17:45, Jerin Jacob wrote: On Thu, Dec 08, 2016 at 12:32:52PM +0100, Zbigniew Bodek wrote: On 08.12.2016 11:24, Bruce Richardson wrote: On Tue, Dec 06, 2016 at 06:32:53PM -0800, zbigniew.bo...@caviumnetworks.com wrote: From: Zbigniew Bodek Introduce crypto poll mode driver using

Re: [dpdk-dev] [PATCH v3 02/12] eal/bus: introduce bus abstraction

2016-12-21 Thread Jan Blunck
On Tue, Dec 20, 2016 at 6:11 PM, Stephen Hemminger wrote: > On Tue, 20 Dec 2016 14:17:14 +0100 > Jan Blunck wrote: > >> On Fri, Dec 16, 2016 at 2:10 PM, Shreyansh Jain >> wrote: >> > This patch introduces the rte_bus abstraction for devices and drivers in >> > EAL framework. The model is: >> >

Re: [dpdk-dev] [PATCH v3 7/9] ethdev: Move filling of rte_eth_dev_info->pci_dev to dev_infos_get()

2016-12-21 Thread Jan Blunck
On Tue, Dec 20, 2016 at 4:41 PM, Stephen Hemminger wrote: > On Tue, 20 Dec 2016 12:11:53 +0100 > Jan Blunck wrote: > >> Only the device itself can decide its PCI or not. >> >> Signed-off-by: Jan Blunck >> --- >> drivers/net/bnx2x/bnx2x_ethdev.c| 1 + >> drivers/net/bnxt/bnxt_ethdev.c

Re: [dpdk-dev] [PATCH] net/af_packet: initialize link interrupt callback queue

2016-12-21 Thread Ferruh Yigit
On 12/17/2016 6:03 PM, Chas Williams wrote: > This patch initializes the eth_dev->link_intr_cbs queue which is > used when af_packet is passed into rte_eth_ev_callback_register(). > > Fixes: 4dc294158cac ("ethdev: support optional Rx and Tx callbacks") > > Signed-off-by: Chas Williams <3ch...@gma

Re: [dpdk-dev] [PATCH] net/af_packet: initialize link interrupt callback queue

2016-12-21 Thread Ferruh Yigit
On 12/20/2016 8:57 PM, Chas Williams wrote: > On Tue, 2016-12-20 at 14:20 +, Ferruh Yigit wrote: >> On 12/17/2016 6:03 PM, Chas Williams wrote: >>> This patch initializes the eth_dev->link_intr_cbs queue which is >>> used when af_packet is passed into rte_eth_ev_callback_register(). >> >> Why d

[dpdk-dev] [PATCH v4 23/23] ethdev: Decouple struct rte_eth_dev from struct rte_pci_device

2016-12-21 Thread Jan Blunck
Signed-off-by: Jan Blunck Acked-by: Shreyansh Jain --- app/test/virtual_pmd.c | 4 ++-- drivers/net/bonding/rte_eth_bond_args.c | 12 ++-- drivers/net/cxgbe/cxgbe_main.c | 4 ++-- drivers/net/fm10k/fm10k_ethdev.c| 6 +++--- drivers/net/mlx4/mlx4.c

[dpdk-dev] [PATCH v4 18/23] ethdev: Helper to map to struct rte_pci_device

2016-12-21 Thread Jan Blunck
PCI drivers could use this helper instead of directly accessing fields of rte_eth_dev to map to rte_pci_device. Signed-off-by: Jan Blunck Acked-by: Shreyansh Jain --- lib/librte_ether/rte_ethdev.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/li

[dpdk-dev] [PATCH v4 16/23] nfp: localize rte_pci_device handling

2016-12-21 Thread Jan Blunck
This simplifies later changes to ethdev. Signed-off-by: Jan Blunck --- drivers/net/nfp/nfp_net.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index de80b46..2609f97 100644 --- a/drivers/net/nfp/nfp_net

[dpdk-dev] [PATCH v4 15/23] szedata2: localize handling of pci resources

2016-12-21 Thread Jan Blunck
This changes the driver to handle the PCI resource directly instead of repeatedly going through eth_dev. Signed-off-by: Jan Blunck --- drivers/net/szedata2/rte_eth_szedata2.c | 72 - drivers/net/szedata2/rte_eth_szedata2.h | 58 +++--- 2 files

[dpdk-dev] [PATCH v4 17/23] vmxnet3: use eth_dev->data->drv_name instead of pci_drv name

2016-12-21 Thread Jan Blunck
Signed-off-by: Jan Blunck --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index 8bb13e5..20a7966 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/driver

[dpdk-dev] [PATCH v3 4/4] net/mlx5: add VLAN filter support in rte_flow

2016-12-21 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_flow.c | 59 ++-- 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index a33c568..2478fb6 100644 --- a/drivers/net/mlx5/mlx5_

[dpdk-dev] [PATCH v3 2/4] net/mlx5: add software support for rte_flow

2016-12-21 Thread Nelio Laranjeiro
Introduce initial software validation for rte_flow rules. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.h | 2 + drivers/net/mlx5/mlx5_flow.c| 202 ++-- drivers/net/mlx5/mlx5_trigger.c | 2 + 3 files changed, 177 insertions(+), 29 d

[dpdk-dev] [PATCH v3 3/4] net/mlx5: add rte_flow rule creation

2016-12-21 Thread Nelio Laranjeiro
Convert Ethernet, IPv4, IPv6, TCP, UDP layers into ibv_flow and create those rules when after validation (i.e. NIC supports the rule). VLAN is still not supported in this commit. Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5.h | 3 +- drivers/net/mlx5/mlx5_flow.c| 733

[dpdk-dev] [PATCH v3 1/4] net/mlx5: add preliminary support for rte_flow

2016-12-21 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- drivers/net/mlx5/Makefile| 1 + drivers/net/mlx5/mlx5.h | 16 ++ drivers/net/mlx5/mlx5_fdir.c | 15 ++ drivers/net/mlx5/mlx5_flow.c | 122 +++ 4 files changed, 154 insertions(+) create mode 100644 dr

[dpdk-dev] [PATCH v3 0/4] net/mlx5: support flow_rte

2016-12-21 Thread Nelio Laranjeiro
This series requires rte_flow [1]. It brings rte_flow support to the same level as flow director (FDIR) in mlx5. [1] http://dpdk.org/ml/archives/dev/2016-December/052950.html Changes in v3: - Fix Ethernet ether type issue. Changes in v2: - Fix several issues. - Support VLAN filtering. N

[dpdk-dev] [PATCH v4 11/23] virtio: Don't depend on struct rte_eth_dev's pci_dev

2016-12-21 Thread Jan Blunck
We don't need to depend on rte_eth_dev->pci_dev to differentiate between the virtio_user and the virtio_pci case. Instead we can use the private virtio_hw struct to get that information. Signed-off-by: Jan Blunck Acked-by: Shreyansh Jain --- drivers/net/virtio/virtio_ethdev.c | 24 -

Re: [dpdk-dev] [PATCH v3 0/9] Decouple ethdev from PCI device

2016-12-21 Thread Jan Blunck
On Wed, Dec 21, 2016 at 11:00 AM, Shreyansh Jain wrote: > Hi Jan, > > > On Tuesday 20 December 2016 04:41 PM, Jan Blunck wrote: >> >> This is a repost of the series I sent in November. I've addressed >> Shreyansh's >> review comments about the PCI device users I've missed. >> >> Jan Blunck (9): >>

Re: [dpdk-dev] [RFC] pci: remove unused UNBIND support

2016-12-21 Thread Thomas Monjalon
2016-12-08 11:53, David Marchand: > On Wed, Dec 7, 2016 at 7:04 PM, Stephen Hemminger > wrote: > > No device driver sets the unbind flag in current public code base. > > Therefore it is good time to remove the unused dead code. > > Yes, this has been unused for some time now. > > I would say thi

[dpdk-dev] [PATCH v4 21/23] ethdev: Move filling of rte_eth_dev_info->pci_dev to dev_infos_get()

2016-12-21 Thread Jan Blunck
Only the device itself can decide its PCI or not. Signed-off-by: Jan Blunck Acked-by: Shreyansh Jain --- drivers/net/bnx2x/bnx2x_ethdev.c| 1 + drivers/net/bnxt/bnxt_ethdev.c | 2 ++ drivers/net/cxgbe/cxgbe_ethdev.c| 2 ++ drivers/net/e1000/em_ethdev.c | 1 +

[dpdk-dev] [PATCH v4 22/23] ethdev: Decouple interrupt handling from PCI device

2016-12-21 Thread Jan Blunck
The struct rte_intr_handle is an abstraction layer for different types of interrupt mechanisms. It is embedded in the low-level device (e.g. PCI). On allocation of a struct rte_eth_dev a reference to the intr_handle should be stored for devices supporting interrupts. Signed-off-by: Jan Blunck Ack

[dpdk-dev] [PATCH v4 20/23] drivers: Use rte_eth_dev_to_pci() helper

2016-12-21 Thread Jan Blunck
The drivers should not directly access the rte_eth_dev->pci_dev but use a helper instead. This is a preparation for replacing the pci_dev with a struct rte_device member in the future. Signed-off-by: Jan Blunck Acked-by: Shreyansh Jain --- drivers/net/bnx2x/bnx2x_ethdev.c| 2 +- driver

[dpdk-dev] [PATCH v4 19/23] drivers: Replace per-PMD macros with rte_eth_dev_to_pci() helper

2016-12-21 Thread Jan Blunck
Instead of duplicating this macro with different names lets use the helper provided by ethdev. Signed-off-by: Jan Blunck --- drivers/net/e1000/e1000_ethdev.h | 2 -- drivers/net/e1000/em_ethdev.c | 13 ++--- drivers/net/e1000/igb_ethdev.c| 25 + drivers/

[dpdk-dev] [PATCH v4 14/23] qede: localize mapping of eth_dev to pci

2016-12-21 Thread Jan Blunck
This simplifies later changes to ethdev. Signed-off-by: Jan Blunck --- drivers/net/qede/qede_ethdev.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index d106dd0..a50bd5f 100644 --- a/drivers

[dpdk-dev] [PATCH v4 13/23] fm10k: localize mapping from eth_dev to pci

2016-12-21 Thread Jan Blunck
This simplifies later changes to ethdev. Signed-off-by: Jan Blunck --- drivers/net/fm10k/fm10k_ethdev.c | 77 ++-- 1 file changed, 43 insertions(+), 34 deletions(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index 923690c

[dpdk-dev] [PATCH v4 10/23] virtio: Add vtpci_intr_handle() helper to get rte_intr_handle

2016-12-21 Thread Jan Blunck
This adds a helper to get the rte_intr_handle from the virtio_hw. This is safe to do since the usage of the helper is guarded by RTE_ETH_DEV_INTR_LSC which is only set if we found a PCI device during initialization. Signed-off-by: Jan Blunck Acked-by: Shreyansh Jain --- drivers/net/virtio/virti

[dpdk-dev] [PATCH v4 12/23] bnx2x: localize mapping from eth_dev to pci

2016-12-21 Thread Jan Blunck
Use device private information to minimize the places that assume eth_dev contains pci_dev. Signed-off-by: Jan Blunck --- drivers/net/bnx2x/bnx2x_ethdev.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_e

[dpdk-dev] [PATCH v4 08/23] broadcom: localize mapping from eth_dev to pci

2016-12-21 Thread Jan Blunck
From: 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 Acked-by: Jan Blunck --- drivers/net/bnxt/bnxt_ethdev.c | 22 +- drivers/n

[dpdk-dev] [PATCH v4 09/23] virtio: Don't fill dev_info->driver_name

2016-12-21 Thread Jan Blunck
This is overwritten in rte_eth_dev_info_get(). Signed-off-by: Jan Blunck Reviewed-by: David Marchand --- drivers/net/virtio/virtio_ethdev.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 079fd6c..741688e 1006

[dpdk-dev] [PATCH v4 07/23] i40e: localize mapping of eth_dev to pci

2016-12-21 Thread Jan Blunck
From: Stephen Hemminger Simplify later changes to eth_dev. Signed-off-by: Stephen Hemminger Acked-by: Jan Blunck --- drivers/net/i40e/i40e_ethdev.c| 77 --- drivers/net/i40e/i40e_ethdev.h| 3 ++ drivers/net/i40e/i40e_ethdev_vf.c | 58 ++

[dpdk-dev] [PATCH v4 06/23] ixgbe: localize mapping from eth_dev to pci_device

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

[dpdk-dev] [PATCH v4 05/23] e1000: localize mapping from eth_dev to pci

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

[dpdk-dev] [PATCH v4 04/23] pmd: remove useless reset of dev_info->dev_pci

2016-12-21 Thread Jan Blunck
From: 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 Acked-by: Jan Blunck --- app/test/virtual_pmd.c| 1

[dpdk-dev] [PATCH v4 03/23] rte_device: make driver pointer const

2016-12-21 Thread Jan Blunck
From: Stephen Hemminger The info in rte_device about driver is immutable and shouldn't change. Acked-by: Jan Blunck Acked-by: Jan Blunck --- 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/l

[dpdk-dev] [PATCH v4 01/23] eal: define container_of macro

2016-12-21 Thread 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 --- lib/librte_ea

[dpdk-dev] [PATCH v4 02/23] eal: Allow passing const rte_intr_handle

2016-12-21 Thread Jan Blunck
Both register/unregister and enable/disable don't necessarily require the rte_intr_handle to be modifiable. Therefore lets constify it. Signed-off-by: Jan Blunck --- lib/librte_eal/common/include/rte_interrupts.h | 8 ++-- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 62 ++--

[dpdk-dev] [PATCH v4 00/23] Decouple ethdev from PCI device

2016-12-21 Thread Jan Blunck
This is a partial merge of Stephens and my patches to make the rte_eth_dev independent of the rte_pci_device. Changes between v4 and v3: - broken out refactorings of drivers similar to Stephens example - use inline function instead of macro - fix build issues with bnx2x and mlx4/5 Changes betw

Re: [dpdk-dev] [PATCH v5 02/26] doc: add rte_flow prog guide

2016-12-21 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Adrien Mazarguil > Sent: Wednesday, December 21, 2016 2:51 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v5 02/26] doc: add rte_flow prog guide > > This documentation is based on the latest RFC submission, s

Re: [dpdk-dev] Example(Load_balancer) Tx Flush Bug(This bug DPDK each version)

2016-12-21 Thread Thomas Monjalon
Hi, Thanks for trying to send a patch. Below are some comments to help you sending a proper patch. 2016-12-21 22:39, Maple: > From 94f2eaed51e6e5402e8c03b80e0999a4fd420390 Mon Sep 17 00:00:00 2001 > From: root Here we should have your real name, not "root". > To: > Cc: , , > Date: Wed, 21 Dec

[dpdk-dev] [PATCH v4 2/3] app: make python apps python2/3 compliant

2016-12-21 Thread John McNamara
Make all the DPDK Python apps work with Python 2 or 3 to allow them to work with whatever is the system default. Signed-off-by: John McNamara --- app/cmdline_test/cmdline_test.py | 26 app/cmdline_test/cmdline_test_data.py | 2 -- app/test/autotest.py

[dpdk-dev] [PATCH v4 3/3] doc: add required python versions to docs

2016-12-21 Thread John McNamara
Add a requirement to support both Python 2 and 3 to the DPDK Python Coding Standards and Getting started Guide. Signed-off-by: John McNamara --- doc/guides/contributing/coding_style.rst | 3 ++- doc/guides/linux_gsg/sys_reqs.rst| 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) di

[dpdk-dev] [PATCH v4 0/3] app: make python apps python2/3 compliant

2016-12-21 Thread John McNamara
These patches refactor the DPDK Python applications to make them Python 2/3 compatible. In order to do this the patchset starts by making the apps PEP8 compliant in accordance with the DPDK Coding guidelines: http://dpdk.org/doc/guides/contributing/coding_style.html#python-code Implementing

[dpdk-dev] [PATCH v4 1/3] app: make python apps pep8 compliant

2016-12-21 Thread John McNamara
Make all DPDK python application compliant with the PEP8 standard to allow for consistency checking of patches and to allow further refactoring. Signed-off-by: John McNamara --- app/cmdline_test/cmdline_test.py | 81 +- app/cmdline_test/cmdline_test_data.py | 401

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

2016-12-21 Thread De Lara Guarch, Pablo
> -Original Message- > From: zbigniew.bo...@caviumnetworks.com > [mailto:zbigniew.bo...@caviumnetworks.com] > Sent: Wednesday, December 07, 2016 2:33 AM > To: De Lara Guarch, Pablo; jerin.ja...@caviumnetworks.com > Cc: dev@dpdk.org; Zbigniew Bodek > Subject: [PATCH v2 08/12] mk/crypto/arm

[dpdk-dev] [PATCH v5 26/26] app/testpmd: add protocol fields to flow command

2016-12-21 Thread Adrien Mazarguil
This commit exposes the following item fields through the flow command: - VLAN priority code point, drop eligible indicator and VLAN identifier (all part of TCI). - IPv4 type of service, time to live and protocol. - IPv6 traffic class, flow label, next header and hop limit. - SCTP tag and checks

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

2016-12-21 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of > zbigniew.bo...@caviumnetworks.com > Sent: Wednesday, December 07, 2016 2:33 AM > To: De Lara Guarch, Pablo; jerin.ja...@caviumnetworks.com > Cc: dev@dpdk.org; Zbigniew Bodek > Subject: [dpdk-dev] [PATCH v2 06/12

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

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

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

2016-12-21 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 v5 23/26] app/testpmd: add various actions to flow command

2016-12-21 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 v5 22/26] app/testpmd: add L4 items to flow command

2016-12-21 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 v5 21/26] app/testpmd: add items ipv4/ipv6 to flow command

2016-12-21 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 v5 19/26] app/testpmd: add item raw to flow command

2016-12-21 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 v5 20/26] app/testpmd: add items eth/vlan to flow command

2016-12-21 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 v5 18/26] app/testpmd: add various items to flow command

2016-12-21 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 v5 17/26] app/testpmd: add item any to flow command

2016-12-21 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 v5 16/26] app/testpmd: add rte_flow bit-field support

2016-12-21 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 | 70 1 file changed, 70 insert

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

2016-12-21 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 v5 13/26] app/testpmd: add flow query command

2016-12-21 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 v5 15/26] app/testpmd: add rte_flow item spec prefix length

2016-12-21 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 v5 12/26] app/testpmd: add flow validate/create commands

2016-12-21 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 v5 10/26] app/testpmd: add flow flush command

2016-12-21 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 v5 11/26] app/testpmd: add flow destroy command

2016-12-21 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

[dpdk-dev] [PATCH v5 09/26] app/testpmd: add flow list command

2016-12-21 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 v5 08/26] app/testpmd: add rte_flow integer support

2016-12-21 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 v5 06/26] app/testpmd: implement basic support for rte_flow

2016-12-21 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 v5 07/26] app/testpmd: add flow command

2016-12-21 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 v5 05/26] cmdline: add alignment constraint

2016-12-21 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

  1   2   >