[dpdk-dev] [PATCH v2 4/4] examples/l2fwd-crypto: updated example for libcrypto PMD

2016-09-19 Thread De Lara Guarch, Pablo
Hi, > -Original Message- > From: Jastrzebski, MichalX K > Sent: Monday, September 19, 2016 2:00 AM > To: dev at dpdk.org > Cc: De Lara Guarch, Pablo; Mrozowicz, SlawomirX; Mrzyglod, DanielX T > Subject: [PATCH v2 4/4] examples/l2fwd-crypto: updated example for > libcrypto PMD > > From: Sl

[dpdk-dev] LPM6 next hop size

2016-09-19 Thread Nikita Kozlov
On 09/19/2016 22:04, Shyam Sundar Govindaraj wrote: > Hi > > In IPv4 lpm implementation, the next hop size is increased from 8-bit to > 24-bit. Is there a plan to increase IPv6 lpm next hop size? > > Also, next hop size in this document needs to be updated, since it is not 1 > byte anymore. > htt

[dpdk-dev] [PATCH v4 0/4] add kasumi in Intel(R) QuickAssist driver

2016-09-19 Thread De Lara Guarch, Pablo
> -Original Message- > From: Jain, Deepak K > Sent: Monday, September 19, 2016 4:01 AM > To: dev at dpdk.org > Cc: De Lara Guarch, Pablo; Jain, Deepak K > Subject: [PATCH v4 0/4] add kasumi in Intel(R) QuickAssist driver > > This patchset depends on following patch: > "crypto/qat: add In

[dpdk-dev] [PATCH v2 2/4] lib/cryptodev: added support to libcrypto PMD

2016-09-19 Thread De Lara Guarch, Pablo
> -Original Message- > From: Jastrzebski, MichalX K > Sent: Monday, September 19, 2016 2:00 AM > To: dev at dpdk.org > Cc: De Lara Guarch, Pablo; Mrozowicz, SlawomirX > Subject: [PATCH v2 2/4] lib/cryptodev: added support to libcrypto PMD > > From: Slawomir Mrozowicz > > This patch add

[dpdk-dev] [PATCH v2 1/4] libcrypto_pmd: initial implementation of SW crypto device

2016-09-19 Thread De Lara Guarch, Pablo
> -Original Message- > From: Jastrzebski, MichalX K > Sent: Monday, September 19, 2016 2:00 AM > To: dev at dpdk.org > Cc: De Lara Guarch, Pablo; Mrozowicz, SlawomirX; Kobylinski, MichalX; > Kulasek, TomaszX; Mrzyglod, DanielX T > Subject: [PATCH v2 1/4] libcrypto_pmd: initial implementat

[dpdk-dev] [dpdk-stable] [PATCH 0/2] fix mbufs leakage during Rx queue release on ixgbe/i40e

2016-09-19 Thread Yuanhan Liu
On Mon, Sep 19, 2016 at 03:52:25PM +0200, Christian Ehrhardt wrote: > On Mon, Sep 19, 2016 at 3:29 PM, Bruce Richardson < > bruce.richardson at intel.com> wrote: > > > > This patch set fixes problem when mbufs are not released back to the > > > original memory pool during Rx queue relese call lead

[dpdk-dev] [RFC][PATCH V2 1/3] examples/vhost: Add vswitch (generic switch) framework

2016-09-19 Thread Yuanhan Liu
Firstly, sorry for being late on this discussion: I just got a chance to follow what you guys were talking about. On Tue, Sep 13, 2016 at 02:51:31PM +0800, Tan, Jianfeng wrote: > >(2) we'd better not differentiate phys device and virtual Agreed. > >>device in generic framework (it's just an attr

[dpdk-dev] [PATCH v6 6/6] vhost: optimize cache access

2016-09-19 Thread Zhihong Wang
This patch reorders the code to delay virtio header write to improve cache access efficiency for cases where the mrg_rxbuf feature is turned on. CPU pipeline stall cycles can be significantly reduced. Virtio header write and mbuf data copy are all remote store operations which takes a long time to

[dpdk-dev] [PATCH v6 5/6] vhost: batch update used ring

2016-09-19 Thread Zhihong Wang
This patch enables batch update of the used ring for better efficiency. Signed-off-by: Zhihong Wang --- Changes in v6: 1. Introduce a function for used ring write. --- Changes in v4: 1. Free shadow used ring in the right place. 2. Add failure check for shadow used ring malloc. lib/librte

[dpdk-dev] [PATCH v6 4/6] vhost: add desc prefetch

2016-09-19 Thread Zhihong Wang
This patch adds descriptor prefetch to hide cache access latency. Signed-off-by: Zhihong Wang --- lib/librte_vhost/virtio_net.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 0ada32b..f32a143 100644 --- a/lib/librte_v

[dpdk-dev] [PATCH v6 3/6] vhost: remove useless volatile

2016-09-19 Thread Zhihong Wang
This patch removes useless volatile attribute to allow compiler optimization. Signed-off-by: Zhihong Wang --- lib/librte_vhost/vhost.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index c2dfc3c..9707dfc 100644 --- a/lib/l

[dpdk-dev] [PATCH v6 2/6] vhost: rewrite enqueue

2016-09-19 Thread Zhihong Wang
This patch implements the vhost logic from scratch into a single function to improve maintainability. This is the baseline version of the new code, more optimization will be added in the following patches in this patch set. In the existing code there're 2 callbacks for vhost enqueue: * virtio_d

[dpdk-dev] [PATCH v6 1/6] vhost: fix windows vm hang

2016-09-19 Thread Zhihong Wang
This patch fixes a Windows VM compatibility issue in DPDK 16.07 vhost code which causes the guest to hang once any packets are enqueued when mrg_rxbuf is turned on by setting the right id and len in the used ring. As defined in virtio spec 0.95 and 1.0, in each used ring element, id means index of

[dpdk-dev] [PATCH v6 0/6] vhost: optimize enqueue

2016-09-19 Thread Zhihong Wang
This patch set optimizes the vhost enqueue function. It implements the vhost logic from scratch into a single function designed for high performance and good maintainability, and improves CPU efficiency significantly by optimizing cache access, which means: * Higher maximum throughput can be ac

[dpdk-dev] [PATCH v2 1/6] ethdev: add Tx preparation

2016-09-19 Thread Jerin Jacob
On Mon, Sep 19, 2016 at 03:29:07PM +, Kulasek, TomaszX wrote: > Hi Konstantin, > > > -Original Message- > > From: Ananyev, Konstantin > > Sent: Monday, September 19, 2016 15:03 > > To: Kulasek, TomaszX ; dev at dpdk.org > > Cc: jerin.jacob at caviumnetworks.com > > Subject: RE: [dpdk-d

[dpdk-dev] [RFC][PATCH V2 1/3] examples/vhost: Add vswitch (generic switch) framework

2016-09-19 Thread Tan, Jianfeng
Hi Pankaj, >> Can we hide queues inside struct vswitch_port? I mean: >> For VMDQ switch, treat (port_id, queue_id) as a vswitch_port, so far >> you've already stored "struct vhost_dev *" into vswitch_port.priv when >> it's a virtual port, how about store queue_id into vswitch_port.priv >> when it'

[dpdk-dev] [PATCH v2] doc/guides: fix name of algorithm

2016-09-19 Thread De Lara Guarch, Pablo
> -Original Message- > From: Jain, Deepak K > Sent: Monday, September 19, 2016 4:15 AM > To: dev at dpdk.org > Cc: De Lara Guarch, Pablo; Jain, Deepak K > Subject: [PATCH v2] doc/guides: fix name of algorithm > > From: Deepak Kumar JAIN > > Update documentation with correct names of al

[dpdk-dev] LPM6 next hop size

2016-09-19 Thread Shyam Sundar Govindaraj
Hi In IPv4 lpm implementation, the next hop size is increased from 8-bit to 24-bit. Is there a plan to increase IPv6 lpm next hop size? Also, next hop size in this document needs to be updated, since it is not 1 byte anymore. http://dpdk.org/doc/guides/prog_guide/lpm_lib.html Thanks Shyam

[dpdk-dev] [PATCH] hash: Correctly set the compare function.

2016-09-19 Thread De Lara Guarch, Pablo
Hi, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Masoud > Hasanifard > Sent: Saturday, September 17, 2016 2:43 AM > To: dev at dpdk.org > Cc: Masoud Hasanifard > Subject: [dpdk-dev] [PATCH] hash: Correctly set the compare function. Commit titles start wit

[dpdk-dev] [PATCH 39/39] net/ixgbe/base: add base driver update brief

2016-09-19 Thread Ferruh Yigit
On 8/27/2016 4:48 PM, Xiao Wang wrote: > The ixgbe base driver was updated to version > cid-10g-shared-code.2016.04.12. > > Signed-off-by: Xiao Wang > --- > doc/guides/rel_notes/release_16_11.rst | 8 > drivers/net/ixgbe/base/README | 2 +- > 2 files changed, 9 insertions(+), 1

[dpdk-dev] [PATCH 35/39] net/ixgbe/base: hold semaphore for shadow RAM access

2016-09-19 Thread Ferruh Yigit
On 8/27/2016 4:48 PM, Xiao Wang wrote: > The semaphore is not being held for complete shadow RAM accesses > which could result in corruption. Refactor the code so that it is > possible to hold the semaphore around ixgbe_host_interface_command > by introducing an unlocked form. This patch also elimi

[dpdk-dev] [PATCH 33/39] net/ixgbe/base: add X550em_a FW ALEF support

2016-09-19 Thread Ferruh Yigit
On 8/27/2016 4:48 PM, Xiao Wang wrote: > This patch adds X550em_a FW ALEF support for B0 per DCR 64. ALEF is Is it required more information on B0 and ALEF. Is there an official name for B0? > the new unified FW. The driver uses the KRM_PMD_RX_FLEX_PORT/ > FLX_MASK_ST20 registers to configure the

[dpdk-dev] [PATCH 29/39] net/ixgbe/base: report autoneg supported for X550

2016-09-19 Thread Ferruh Yigit
On 8/27/2016 4:48 PM, Xiao Wang wrote: > Make sure ixgbe_device_supports_autoneg_fc() returns true for the device > IDs of Seabrook and Shady Acres. Is these IDs official public ones? > > Signed-off-by: Xiao Wang > --- > drivers/net/ixgbe/base/ixgbe_common.c | 2 ++ > 1 file changed, 2 inserti

[dpdk-dev] [PATCH 18/39] net/ixgbe/base: fix check on NACK

2016-09-19 Thread Ferruh Yigit
On 8/27/2016 4:48 PM, Xiao Wang wrote: > Previously we checked only msgbuf[0] for "return buffer" instead of msgbuf[0] ? > (IXGBE_VF_SET_MACVLAN | IXGBE_VT_MSGTYPE_NACK), but this would not > work if index != 0 and as a result NACK will not be detected. "write buffer is not 0" instead of "index

[dpdk-dev] [PATCH 23/39] net/ixgbe/base: add bound check in LED functions

2016-09-19 Thread Ferruh Yigit
On 8/27/2016 4:48 PM, Xiao Wang wrote: > Do parameter check to prevent exceptional value being written into > register. > > Signed-off-by: Xiao Wang > --- > drivers/net/ixgbe/base/ixgbe_common.c | 15 ++- > drivers/net/ixgbe/base/ixgbe_x540.c | 6 ++ > 2 files changed, 20 inse

[dpdk-dev] [PATCH 05/39] net/ixgbe/base: support VF multicast promiscuous

2016-09-19 Thread Ferruh Yigit
On 8/27/2016 4:47 PM, Xiao Wang wrote: > Currently, VF is limited to 30 multicast addresses. In order to > accommodate more addresses, this patch adds support for VF multicast > promiscuous. It looks like functionality not changed, just ixgbevf_update_xcast_mode() moved to ixgbe_mac_operations str

[dpdk-dev] [PATCH 17/39] net/ixgbe/base: access IOSF by host interface

2016-09-19 Thread Ferruh Yigit
On 8/27/2016 4:48 PM, Xiao Wang wrote: > This patch makes sure that we access IOSF registers through the HIC > (host interface command) for the majority of X550em devices. All devices > with NVM are capable of using the HIC. > > For consistency all instances where the ixgbe_read/write_iosf_sb_reg_

[dpdk-dev] [PATCH 16/39] net/ixgbe/base: bump mailbox version

2016-09-19 Thread Ferruh Yigit
On 8/27/2016 4:47 PM, Xiao Wang wrote: > This patch will pave the way for the new VF unicast promiscuous > mode support. > > Signed-off-by: Xiao Wang > --- > drivers/net/ixgbe/base/ixgbe_mbx.h | 5 +++-- > drivers/net/ixgbe/base/ixgbe_vf.c | 2 ++ > 2 files changed, 5 insertions(+), 2 deletions

[dpdk-dev] [PATCH v3 00/15] Introduce SoC device/driver framework for EAL

2016-09-19 Thread Hemant Agrawal
On 9/18/2016 3:34 PM, Jan Viktorin wrote: > On Sun, 18 Sep 2016 09:41:55 + > Hemant Agrawal wrote: > >>> -Original Message- >>> From: Jan Viktorin [mailto:viktorin at rehivetech.com] >> > > [...] > And for each platform/product > I agree, that this can sometimes lead

[dpdk-dev] [PATCH 02/39] net/ixgbe/base: remove X550em SFP iXFI setup

2016-09-19 Thread Ferruh Yigit
On 8/27/2016 4:47 PM, Xiao Wang wrote: > This patch removes X550em SFP iXFI setup for the drivers since there > is no released hardware production with SFP iXFI. XFI? > > Signed-off-by: Xiao Wang > --- > drivers/net/ixgbe/base/ixgbe_x550.c | 57 > +++-- > 1 fil

[dpdk-dev] [PATCH 03/39] net/ixgbe/base: change endianness of PHY data

2016-09-19 Thread Ferruh Yigit
On 8/27/2016 4:47 PM, Xiao Wang wrote: > The latest firmware reverses the endianness of the PHY data read and Good to add the fw version for future references > written via host interface command, so make corresponding changes > to that. > > Signed-off-by: Xiao Wang

[dpdk-dev] [PATCH 01/39] net/ixgbe/base: fix delta check for setting VFTA

2016-09-19 Thread Ferruh Yigit
On 8/27/2016 4:47 PM, Xiao Wang wrote: > The delta value rather than vfta_delta pointer should be checked. > > Fixes: b978f7b38c14 ("net/ixgbe/base: simplify VLAN management") > > Signed-off-by: Xiao Wang > --- > drivers/net/ixgbe/base/ixgbe_82598.c | 6 +++--- > drivers/net/ixgbe/base/ixgbe_a

[dpdk-dev] [PATCH 00/22] pcap pmd improvements

2016-09-19 Thread Bruce Richardson
On Fri, Aug 26, 2016 at 10:38:55AM -0700, Stephen Hemminger wrote: > On Fri, 26 Aug 2016 12:17:37 +0100 > Ferruh Yigit wrote: > > > No new feature added, code refactored. > > > > Ferruh Yigit (22): > > net/pcap: convert config option to a macro > > net/pcap: use macros for param string > >

[dpdk-dev] [PATCH v3] crypto/qat: add Intel(R) QuickAssist C3xxx device

2016-09-19 Thread Deepak Kumar Jain
From: Deepak Kumar JAIN Signed-off-by: Deepak Kumar Jain Acked-by: Fiona Trahe --- Changes in v3: Updated qat.rst by removing the limitation. Changes in v2: Added new feature information in release_16_11.rst file. doc/guides/cryptodevs/qat.rst | 76 ++

[dpdk-dev] [PATCH] net/e1000: fix return value of eth_igb_rx_queue_count()

2016-09-19 Thread Bruce Richardson
On Wed, Sep 14, 2016 at 02:56:47PM +0100, Ferruh Yigit wrote: > On 7/27/2016 2:11 PM, Ali Volkan ATLI wrote: > > Signed-off-by: Ali Volkan ATLI > > --- > > Fixes: 0f6b7c7f7a37 ("igb: use DD bit to count RX available descriptors") > > function names not desired in patch subject, what about someth

[dpdk-dev] [PATCH 0/5] i40e: vector poll-mode driver on ARM64

2016-09-19 Thread Bruce Richardson
On Wed, Aug 24, 2016 at 03:23:40PM +0530, Jianbo Liu wrote: > This patch set is to implement i40e vector PMD on ARM64. > For x86, vPMD is only reorganized, there should be no performance loss. > > Jianbo Liu (5): > i40e: extract non-x86 specific code from vector driver > i40e: implement vector

[dpdk-dev] [PATCH v2 0/6] net/mlx5: performance improvement

2016-09-19 Thread Bruce Richardson
On Wed, Sep 14, 2016 at 02:18:01PM +0200, Nelio Laranjeiro wrote: > - Rework structure elements to reduce their size. > - Removes a second useless loop in Tx burst function. > > This series should be applied on top of "net/mlx5: various fixes". > > Changes in v2: > > - rework serie to apply i

[dpdk-dev] [PATCH v2 1/6] net/mlx5: rework hardware structures

2016-09-19 Thread Bruce Richardson
On Wed, Sep 14, 2016 at 02:18:02PM +0200, Nelio Laranjeiro wrote: > Rework Work Queue Element (aka WQE) structures to fit PMD needs. > A WQE is an aggregation of 16 bytes elements known as "data segments" > (aka dseg). > > Signed-off-by: Nelio Laranjeiro Hi Nelio, can you give a bit more detail

[dpdk-dev] [PATCH] net/mlx: fix compile errors with ignore pedantic pragma

2016-09-19 Thread Adrien Mazarguil
Hi Bruce, On Mon, Sep 19, 2016 at 03:36:54PM +0100, Bruce Richardson wrote: > With recent gcc versions, e.g. gcc 6.1, compilation of mlx drivers with > debug enabled produces lots of errors complaining that "pedantic" is > not a warning level that can be ignored. > > error: ?-pedantic? is not an

[dpdk-dev] [PATCH V2 0/8] net/mlx5: various fixes

2016-09-19 Thread Bruce Richardson
On Wed, Sep 14, 2016 at 01:53:47PM +0200, Nelio Laranjeiro wrote: > - Flow director > - Rx Capabilities > - Inline > > Changes in V2: > > - Fix a compilation error. > > Adrien Mazarguil (1): > net/mlx5: fix Rx VLAN offload capability report > > Nelio Laranjeiro (3): > net/mlx5: force in

[dpdk-dev] [PATCH] net/mlx: fix compile errors with ignore pedantic pragma

2016-09-19 Thread Bruce Richardson
On Mon, Sep 19, 2016 at 04:59:59PM +0200, Adrien Mazarguil wrote: > Hi Bruce, > > On Mon, Sep 19, 2016 at 03:36:54PM +0100, Bruce Richardson wrote: > > With recent gcc versions, e.g. gcc 6.1, compilation of mlx drivers with > > debug enabled produces lots of errors complaining that "pedantic" is >

[dpdk-dev] [PATCH] doc: fix a typo in intel_vf.rst.

2016-09-19 Thread Bruce Richardson
On Wed, Sep 14, 2016 at 05:02:19PM +0100, Ferruh Yigit wrote: > On 8/8/2016 12:17 PM, Ferruh Yigit wrote: > > On 8/6/2016 7:16 AM, Rami Rosen wrote: > >> This patch fixes a typo in doc/guides/nics/intel_vf.rst. > >> > >> Signed-off-by: Rami Rosen > > > > Acked-by: Ferruh Yigit > > > > Fixes: f

[dpdk-dev] [PATCH v3] net/mlx5: fix possible NULL deref in Rx path

2016-09-19 Thread Bruce Richardson
On Tue, Aug 02, 2016 at 05:41:21PM +0300, Sagi Grimberg wrote: > The user is allowed to call ->rx_pkt_burst() even without free > mbufs in the pool. In this scenario we'll fail allocating a rep mbuf > on the first iteration (where pkt is still NULL). This would cause us > to deref a NULL pkt (reset

[dpdk-dev] [PATCH v2] net/bnxt: make driver less verbose

2016-09-19 Thread Bruce Richardson
On Mon, Sep 12, 2016 at 03:23:43PM +0100, Ferruh Yigit wrote: > This line printed for every application even if driver is not used at > all. Removing the line to reduce the noise. > > Signed-off-by: Ferruh Yigit > Acked-by: Ajit Khaparde > --- Applied to dpdk-next-net/rel_16_11 /Bruce

[dpdk-dev] [PATCH v3 2/2] mempool: pktmbuf pool default fallback for mempool ops error

2016-09-19 Thread Olivier Matz
Hi Hemant, On 09/16/2016 06:46 PM, Hemant Agrawal wrote: > In the rte_pktmbuf_pool_create, if the default external mempool is > not available, the implementation can default to "ring_mp_mc", which > is an software implementation. > > Signed-off-by: Hemant Agrawal > --- > Changes in V3: > * addin

[dpdk-dev] [PATCH v2 2/2] drivers/i40e: Add FD PCTYPE translation for device x722

2016-09-19 Thread Bruce Richardson
On Thu, Sep 08, 2016 at 02:25:22AM +, Wu, Jingjing wrote: > > > > -Original Message- > > From: Guo, Jia > > Sent: Wednesday, September 7, 2016 5:39 PM > > To: Zhang, Helin; Wu, Jingjing > > Cc: dev at dpdk.org; Guo, Jia > > Subject: [PATCH v2 2/2] drivers/i40e: Add FD PCTYPE translati

[dpdk-dev] [PATCH v2 1/2] drivers/i40e: Add new PCTYPEs for device x722

2016-09-19 Thread Bruce Richardson
On Thu, Sep 08, 2016 at 02:24:43AM +, Wu, Jingjing wrote: > > > > -Original Message- > > From: Guo, Jia > > Sent: Wednesday, September 7, 2016 5:38 PM > > To: Zhang, Helin; Wu, Jingjing > > Cc: dev at dpdk.org; Guo, Jia > > Subject: [PATCH v2 1/2] drivers/i40e: Add new PCTYPEs for dev

[dpdk-dev] [PATCH v2] drivers/net:new PMD using tun/tap host interface

2016-09-19 Thread Wiles, Keith
Sent from my iPhone On Sep 18, 2016, at 7:28 PM, Yuanhan Liu mailto:yuanhan.liu at linux.intel.com>> wrote: On Sun, Sep 18, 2016 at 04:20:12PM +, Wiles, Keith wrote: Regards, Keith On Sep 18, 2016, at 8:25 AM, Yuanhan Liu mailto:yuanhan.liu at linux.intel.com>> wrote: On Fri, Sep 16, 2016

[dpdk-dev] [PATCH 0/2] fix mbufs leakage during Rx queue release on ixgbe/i40e

2016-09-19 Thread Christian Ehrhardt
On Mon, Sep 19, 2016 at 3:29 PM, Bruce Richardson < bruce.richardson at intel.com> wrote: > > This patch set fixes problem when mbufs are not released back to the > > original memory pool during Rx queue relese call leading to mbufs > > "leakage". > > > > This issue happens when device stop (rte_e

[dpdk-dev] [PATCH] meter: fix excess token bucket update in srtcm implementation

2016-09-19 Thread Dumitrescu, Cristian
> -Original Message- > From: Nikhil Jagtap [mailto:nikhil.jagtap at gmail.com] > Sent: Wednesday, September 7, 2016 7:15 AM > To: Dumitrescu, Cristian > Cc: dev at dpdk.org; Ramia, Kannan Babu ; > Nikhil Jagtap > Subject: [PATCH] meter: fix excess token bucket update in srtcm > implemen

[dpdk-dev] [PATCH v3 0/6] various vmxnet3 fixes and enhancement

2016-09-19 Thread Bruce Richardson
On Mon, Aug 29, 2016 at 12:18:44PM -0700, Yong Wang wrote: > v3: > * fixed transposed # of tx/rx queue comparison > > v2: > * updated vmxnet3 feature doc. > * updated vmxnet3 guide to remove stale information. > > v1: This patchset includes a few bug fixes and some enhancement. > > * Fixed a bug

[dpdk-dev] [RFC 7/7] l2fwd: new parameter to set mbuf pool ops

2016-09-19 Thread Olivier Matz
Signed-off-by: Olivier Matz --- examples/l2fwd/main.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index 028900b..dfa622f 100644 --- a/examples/l2fwd/main.c +++ b/examples/l2fwd/main.c @@ -138,6 +138,8 @@ struct l2fwd_port_statistic

[dpdk-dev] [RFC 6/7] l2fwd: rework long options parsing

2016-09-19 Thread Olivier Matz
Signed-off-by: Olivier Matz --- examples/l2fwd/main.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index 41ac1e1..028900b 100644 --- a/examples/l2fwd/main.c +++ b/examples/l2fwd/main.c @@ -376,6 +376,

[dpdk-dev] [RFC 5/7] l3fwd: new parameter to set mbuf pool ops

2016-09-19 Thread Olivier Matz
Signed-off-by: Olivier Matz --- examples/l3fwd/main.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index 9894a3b..e45e87b 100644 --- a/examples/l3fwd/main.c +++ b/examples/l3fwd/main.c @@ -104,6 +104,7 @@ static int l3fwd_em_on; st

[dpdk-dev] [RFC 4/7] l3fwd: rework long options parsing

2016-09-19 Thread Olivier Matz
Avoid the use of several strncpy() since getopt is able to map a long option with an id, which can be matched in the same switch/case than short options. Signed-off-by: Olivier Matz --- examples/l3fwd/main.c | 167 ++ 1 file changed, 86 insertions(

[dpdk-dev] [RFC 3/7] testpmd: new parameter to set mbuf pool ops

2016-09-19 Thread Olivier Matz
Signed-off-by: Olivier Matz --- app/test-pmd/parameters.c | 5 + app/test-pmd/testpmd.c| 15 ++- app/test-pmd/testpmd.h| 1 + 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c index 6a6a07e..cbd287d 10064

[dpdk-dev] [RFC 2/7] mbuf: use helper to create the pool

2016-09-19 Thread Olivier Matz
When possible, replace the uses of rte_mempool_create() with the helper provided in librte_mbuf: rte_pktmbuf_pool_create(). This is the preferred way to create a mbuf pool. By the way, akso update the documentation. Signed-off-by: Olivier Matz --- app/test/test_link_bonding_rssconf.c

[dpdk-dev] [RFC 1/7] mbuf: set the handler at mbuf pool creation

2016-09-19 Thread Olivier Matz
Add a new argument to rte_pktmbuf_pool_create() in order to specify the mempool ops (handler) to use. By default, if set to NULL, the default pool handler for mbuf will be selected (RTE_MBUF_DEFAULT_MEMPOOL_OPS). Signed-off-by: Olivier Matz --- app/pdump/main.c

[dpdk-dev] [RFC 0/7] changing mbuf pool handler

2016-09-19 Thread Olivier Matz
Hello, Following discussion from [1] ("usages issue with external mempool"). This is a tentative to make the mempool_ops feature introduced by David Hunt [2] more widely used by applications. It applies on top of a minor fix in mbuf lib [3]. To sumarize the needs (please comment if I did not go

[dpdk-dev] [PATCH] net/mlx: fix compile errors with ignore pedantic pragma

2016-09-19 Thread Bruce Richardson
With recent gcc versions, e.g. gcc 6.1, compilation of mlx drivers with debug enabled produces lots of errors complaining that "pedantic" is not a warning level that can be ignored. error: ?-pedantic? is not an option that controls warnings [-Werror=pragmas] #pragma GCC diagnostic ignored "-pedan

[dpdk-dev] [PATCH v2 1/6] ethdev: add Tx preparation

2016-09-19 Thread Kulasek, TomaszX
Hi Konstantin, > -Original Message- > From: Ananyev, Konstantin > Sent: Monday, September 19, 2016 15:03 > To: Kulasek, TomaszX ; dev at dpdk.org > Cc: jerin.jacob at caviumnetworks.com > Subject: RE: [dpdk-dev] [PATCH v2 1/6] ethdev: add Tx preparation > > Hi Tomasz, > > > [...] > > +

[dpdk-dev] [PATCH v2 5/6] ixgbe: add Tx preparation

2016-09-19 Thread Ananyev, Konstantin
> > [...] > > > > > > > > > > ** / @@ -2290,6 +2369,7 @@ ixgbe_set_tx_function(struct rte_eth_dev > > > *dev, struct ixgbe_tx_queue *txq) > > > } else > > > #endif > > > dev->tx_pkt_burst = ixgbe_xmit_pkts_s

[dpdk-dev] [PATCH] mbuf: fix leak and errno on pool creation error

2016-09-19 Thread Olivier Matz
On error, the mempool object has to be freed, and rte_errno should be a positive value. Fixes: 152ca517900b ("mbuf: use default mempool handler from config") Signed-off-by: Olivier Matz --- lib/librte_mbuf/rte_mbuf.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/li

[dpdk-dev] [PATCH 0/2] fix mbufs leakage during Rx queue release on ixgbe/i40e

2016-09-19 Thread Bruce Richardson
On Mon, Aug 29, 2016 at 07:50:46PM +0300, Yury Kylulin wrote: > This patch set fixes problem when mbufs are not released back to the > original memory pool during Rx queue relese call leading to mbufs > "leakage". > > This issue happens when device stop (rte_eth_dev_stop()) will be called > after

[dpdk-dev] [PATCH] eal: fix compilation when optimization level is O1

2016-09-19 Thread Olivier Matz
When compiled with EXTRA_CFLAGS="-O1", the compiler is not able to detect that size is always initialized when used, and issues a wrong warning: eal_memory.c: In function ?rte_eal_hugepage_attach?: eal_memory.c:1684:3: error: ?size? may be used uninitialized in this func

[dpdk-dev] [PATCH] drivers: advertise kmod dependencies in pmdinfo

2016-09-19 Thread Olivier Matz
Hi, On 09/19/2016 10:17 AM, Bruce Richardson wrote: > On Fri, Sep 16, 2016 at 04:26:35PM +0200, David Marchand wrote: >> On Thu, Sep 15, 2016 at 4:22 PM, Olivier Matz >> wrote: >>> Add a new macro DRIVER_REGISTER_KMOD_DEP() that allows a driver to >>> declare the list of kernel modules required

[dpdk-dev] [PATCH 00/13] Add support for secondary queue set in nicvf thunderx driver

2016-09-19 Thread Kamil Rytarowski
ping W dniu 12.09.2016 o 12:59, Kamil Rytarowski pisze: > ping > > > W dniu 26.08.2016 o 18:53, Kamil Rytarowski pisze: >> This series of patches adds support for secondary queue set in nicvf >> thunderx >> driver >> >> There are two types of VFs: >> - Primary VF >> - Secondary VF >> >> Each

[dpdk-dev] LPM6 next hop size

2016-09-19 Thread Matthew Hall
On Mon, Sep 19, 2016 at 11:18:48PM +0200, Nikita Kozlov wrote: > I have submitted a patch that, among other things, increase this size. > But it needs some reviews: http://dpdk.org/dev/patchwork/patch/15295/ A whole ton of us submitted patches to fix LPM lately. But fixing LPM6 was deleted from t

[dpdk-dev] [PATCH v2] kni: fix build with kernel 4.8

2016-09-19 Thread Christian Ehrhardt
On Thu, Sep 8, 2016 at 8:32 PM, Ferruh Yigit wrote: > Linux kernel v4.8 removes macro DEFINE_PCI_DEVICE_TABLE > > Linux: 7e9321599011 ("treewide: remove references to the now unnecessary > DEFINE_PCI_DEVICE_TABLE") > > Replaced macro with its value in kni ethtool drivers. Just ran into the same

[dpdk-dev] [PATCH v2 5/6] ixgbe: add Tx preparation

2016-09-19 Thread Kulasek, TomaszX
Hi Konstantin, > -Original Message- > From: Ananyev, Konstantin > Sent: Monday, September 19, 2016 14:55 > To: Kulasek, TomaszX ; dev at dpdk.org > Cc: jerin.jacob at caviumnetworks.com > Subject: RE: [dpdk-dev] [PATCH v2 5/6] ixgbe: add Tx preparation > > > Hi Tomasz, > [...] > > +ui

[dpdk-dev] [PATCH v3 06/15] eal/soc: implement probing of drivers

2016-09-19 Thread Jan Viktorin
On Mon, 19 Sep 2016 12:17:53 +0530 Shreyansh Jain wrote: > Hi Jan, > > On Friday 16 September 2016 05:57 PM, Jan Viktorin wrote: > > On Fri, 9 Sep 2016 14:13:50 +0530 > > Shreyansh Jain wrote: > > > >> Each SoC PMD registers a set of callback for scanning its own bus/infra and > >> matching d

[dpdk-dev] [PATCH v2 1/6] ethdev: add Tx preparation

2016-09-19 Thread Ananyev, Konstantin
Hi Tomasz, > > Added API for `rte_eth_tx_prep` > > uint16_t rte_eth_tx_prep(uint8_t port_id, uint16_t queue_id, > struct rte_mbuf **tx_pkts, uint16_t nb_pkts) > > Added fields to the `struct rte_eth_desc_lim`: > > uint16_t nb_seg_max; > /**< Max number of segments per

[dpdk-dev] [PATCH v2 6/6] testpmd: add txprep engine

2016-09-19 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Tomasz Kulasek > Sent: Monday, September 12, 2016 3:45 PM > To: dev at dpdk.org > Cc: jerin.jacob at caviumnetworks.com > Subject: [dpdk-dev] [PATCH v2 6/6] testpmd: add txprep engine > > This patch adds txpre

[dpdk-dev] [PATCH v2 5/6] ixgbe: add Tx preparation

2016-09-19 Thread Ananyev, Konstantin
Hi Tomasz, > --- > drivers/net/ixgbe/ixgbe_ethdev.c |3 ++ > drivers/net/ixgbe/ixgbe_ethdev.h |8 +++- > drivers/net/ixgbe/ixgbe_rxtx.c | 83 > +- > drivers/net/ixgbe/ixgbe_rxtx.h |2 + > 4 files changed, 94 insertions(+), 2 deletions(-) >

[dpdk-dev] [PATCH v3 06/15] eal/soc: implement probing of drivers

2016-09-19 Thread Shreyansh Jain
Hi Jan, On Friday 16 September 2016 05:57 PM, Jan Viktorin wrote: > On Fri, 9 Sep 2016 14:13:50 +0530 > Shreyansh Jain wrote: > >> Each SoC PMD registers a set of callback for scanning its own bus/infra and >> matching devices to drivers when probe is called. >> This patch introduces the infra fo

[dpdk-dev] [PATCH v2] doc/guides: fix name of algorithm

2016-09-19 Thread Deepak Kumar Jain
From: Deepak Kumar JAIN Update documentation with correct names of algorithm supported. Fixes: 1703e94ac5cee ("qat: add driver for QuickAssist devices") Signed-off-by: Deepak Kumar Jain Acked-by: Fiona Trahe --- Changes in v2: * Extended fixes in AESNI, KASUMI and SNOW3G PMD. doc/guides/cr

[dpdk-dev] [PATCH v4 3/3] app/testpmd: fix Tx offload on tunneling packet

2016-09-19 Thread Ananyev, Konstantin
Hi Jainfeng, > -Original Message- > From: Tan, Jianfeng > Sent: Monday, August 1, 2016 4:57 AM > To: dev at dpdk.org > Cc: thomas.monjalon at 6wind.com; De Lara Guarch, Pablo at intel.com>; Ananyev, Konstantin > ; Wu, Jingjing ; > Zhang, Helin ; Tan, Jianfeng > ; Tao, Zhe > Subject: [PA

[dpdk-dev] [PATCH v4 4/4] app/test: add Kasumi tests in QAT test suite

2016-09-19 Thread Deepak Kumar Jain
This patch adds KASUMI tests in the QAT testsuite. Alg-Chaining tests have also been added in the KASUMI SW PMD. Signed-off-by: Deepak Kumar Jain Acked-by: Fiona Trahe --- app/test/test_cryptodev.c | 210 - app/test/test_cryptodev_kasumi_hash_test_ve

[dpdk-dev] [PATCH v4 3/4] crypto/qat: add Kasumi support in Intel(R) QAT driver

2016-09-19 Thread Deepak Kumar Jain
This patch add kasumi support in Intel(R) QuickAssist driver. Signed-off-by: Deepak Kumar Jain Acked-by: Fiona Trahe --- doc/guides/cryptodevs/qat.rst| 10 +-- doc/guides/rel_notes/release_16_11.rst | 2 +- drivers/crypto/qat/qat_adf/qat_algs.h| 10 ++-

[dpdk-dev] [PATCH v4 2/4] app/test: rename functions name

2016-09-19 Thread Deepak Kumar Jain
Renamed authenticated encryption and encrypted authentication with easily recognixation names. Signed-off-by: Deepak Kumar Jain Acked-by: Fiona Trahe --- app/test/test_cryptodev.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/test/test_cryptodev.

[dpdk-dev] [PATCH v4 1/4] app/test: crypto test code cleanup

2016-09-19 Thread Deepak Kumar Jain
Cleanup the code for code design consistency. Signed-off-by: Deepak Kumar Jain Acked-by: Fiona Trahe --- app/test/test_cryptodev.c | 111 +- 1 file changed, 51 insertions(+), 60 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryp

[dpdk-dev] [PATCH v4 0/4] add kasumi in Intel(R) QuickAssist driver

2016-09-19 Thread Deepak Kumar Jain
This patchset depends on following patch: "crypto/qat: add Intel(R) QuickAssist C3xxx device" (http://dpdk.org/dev/patchwork/patch/15794/ Changes in v4: * Split cleanup patch into two smaller patches. * Fixed indentation issues. Changes in v3: * Merged Cipher only and hash only patches into one p

[dpdk-dev] [PATCH] net/enic: add support for Rx queue count function

2016-09-19 Thread Nelson Escobar
Add support to enic for rte_eth_rx_queue_count(). Signed-off-by: Nelson Escobar Reviewed-by: John Daley --- drivers/net/enic/enic_ethdev.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_e

[dpdk-dev] [PATCH 3/3] net/enic: enable link check interrupts

2016-09-19 Thread Nelson Escobar
Signed-off-by: Nelson Escobar Reviewed-by: John Daley --- doc/guides/nics/enic.rst | 3 ++- drivers/net/enic/enic_ethdev.c | 2 +- drivers/net/enic/enic_main.c | 19 ++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/doc/guides/nics/enic.rst b/doc/guide

[dpdk-dev] [PATCH 2/3] net/enic: move code checking link status

2016-09-19 Thread Nelson Escobar
Move link check code so that it can be used by interrupt handler. Signed-off-by: Nelson Escobar Reviewed-by: John Daley --- drivers/net/enic/enic.h| 1 + drivers/net/enic/enic_ethdev.c | 10 +- drivers/net/enic/enic_main.c | 15 +++ 3 files changed, 17 insertions(

[dpdk-dev] [PATCH 1/3] net/enic: cleanup interrupt setup when stopping port

2016-09-19 Thread Nelson Escobar
enic_disable() wasn't calling rte_intr_disable() or rte_intr_callback_unregister(). If stopping/starting a port, the latter omission would result in the same interrupt callback being registered multiple times, which would then cause it to be called multiple times on every interrupt. Fixes: fefed3

[dpdk-dev] [PATCH] crypto/qat: fix memzone creation to use a fixed size string

2016-09-19 Thread John Griffin
On 18/09/16 09:16, Yuanhan Liu wrote: > On Wed, Sep 14, 2016 at 04:32:46PM +0100, John Griffin wrote: >> Hi Liu, >> Comments embedded. >> >> Rgds, >> John. >> >> On 05/09/16 04:23, Yuanhan Liu wrote: >>> On Thu, Sep 01, 2016 at 11:21:38AM +0100, John Griffin wrote: Remove the dependency on dev

[dpdk-dev] [PATCH v2 4/4] examples/l2fwd-crypto: updated example for libcrypto PMD

2016-09-19 Thread Michal Jastrzebski
From: Slawomir Mrozowicz To verify real traffic l2fwd-crypto example can be used with this command: sudo ./build/l2fwd-crypto -c 0x3 -n 4 --vdev "cryptodev_libcrypto_pmd" --vdev "cryptodev_libcrypto_pmd" -- -p 0x3 --chain CIPHER_HASH --cipher_op ENCRYPT --cipher_algo AES_CBC --cipher_key 00:01:02

[dpdk-dev] [PATCH v2 3/4] app/test: added tests for libcrypto PMD

2016-09-19 Thread Michal Jastrzebski
From: Slawomir Mrozowicz This patch containes unit tests for libcrypto PMD. User can use app/test application to check how to use this pmd and to verify crypto processing. Test name is cryptodev_libcrypto_autotest. For performance test cryptodev_libcrypto_perftest can be used. Signed-off-by: Pi

[dpdk-dev] [PATCH v2 2/4] lib/cryptodev: added support to libcrypto PMD

2016-09-19 Thread Michal Jastrzebski
From: Slawomir Mrozowicz This patch adds libcrypto poll mode driver support to librte_cryptodev library. Signed-off-by: Slawomir Mrozowicz --- lib/librte_cryptodev/rte_cryptodev.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptode

[dpdk-dev] [PATCH v2 1/4] libcrypto_pmd: initial implementation of SW crypto device

2016-09-19 Thread Michal Jastrzebski
From: Slawomir Mrozowicz This code provides the initial implementation of the libcrypto poll mode driver. All cryptography operations are using Openssl library crypto API. Each algorithm uses EVP_ interface from openssl API - which is recommended by Openssl maintainers. LibCrypto PMD has support

[dpdk-dev] [PATCH v2 0/4] new crypto software based device

2016-09-19 Thread Michal Jastrzebski
From: Marcin Kerlin This code provides the initial implementation of the libcrypto poll mode driver. All cryptography operations are using Openssl library crypto API. Each algorithm uses EVP_ interface from openssl API which is recommended by Openssl maintainers. For more information about how t

[dpdk-dev] [PATCH v2 0/4] new crypto software based device

2016-09-19 Thread Michal Jastrzebski
From: Marcin Kerlin This code provides the initial implementation of the libcrypto poll mode driver. All cryptography operations are using Openssl library crypto API. Each algorithm uses EVP_ interface from openssl API which is recommended by Openssl maintainers. For more information about how t

[dpdk-dev] [PATCH v2] kni: support RHEL 7.3

2016-09-19 Thread Ferruh Yigit
On 9/16/2016 10:01 PM, Pablo de Lara wrote: > Add support for RHEL 7.3, which uses kernel 3.10, > but backported features from newer kernels. > > Signed-off-by: Pablo de Lara > --- Acked-by: Ferruh Yigit

[dpdk-dev] pcap: memory leak in eth_pcap_rx_jumbo

2016-09-19 Thread Ferruh Yigit
Hi Dror, On 9/18/2016 12:14 PM, Dror Birkman wrote: > Hi, > > It seems there is a memory leak in eth_pcap_rx_jumbo() in > case rte_pktmbuf_alloc() fails on any segment that is not the initial > segment. > > If someone can confirm it, I'll patch it. > I think you are right. If rte_pktmbuf_alloc

[dpdk-dev] [PATCH] drivers: advertise kmod dependencies in pmdinfo

2016-09-19 Thread Bruce Richardson
On Fri, Sep 16, 2016 at 04:26:35PM +0200, David Marchand wrote: > On Thu, Sep 15, 2016 at 4:22 PM, Olivier Matz > wrote: > > Add a new macro DRIVER_REGISTER_KMOD_DEP() that allows a driver to > > declare the list of kernel modules required to run properly. > > > > Today, most PCI drivers require

[dpdk-dev] [PATCH v3 1/3] app/test: cleanup of test code for kasumi

2016-09-19 Thread Jain, Deepak K
Hi Pablo, > -Original Message- > From: De Lara Guarch, Pablo > Sent: Saturday, September 17, 2016 2:00 AM > To: Jain, Deepak K ; dev at dpdk.org > Subject: RE: [PATCH v3 1/3] app/test: cleanup of test code for kasumi > > Hi Deepak, > > > -Original Message- > > From: Jain, Deepak

[dpdk-dev] [PATCH v2] drivers/net:new PMD using tun/tap host interface

2016-09-19 Thread Yuanhan Liu
On Sun, Sep 18, 2016 at 04:20:12PM +, Wiles, Keith wrote: > > Regards, > Keith > > > On Sep 18, 2016, at 8:25 AM, Yuanhan Liu > > wrote: > > > > On Fri, Sep 16, 2016 at 11:22:13AM -0500, Keith Wiles wrote: > >> The rte_eth_tap.c PMD creates a device using TUN/TAP interfaces > >> on the loc

[dpdk-dev] How to include pre-build object file (.o) in DPDK makefile?

2016-09-19 Thread Neil Horman
On Fri, Sep 16, 2016 at 06:30:10PM +, Lu, Patrick wrote: > -Original Message- > From: Yigit, Ferruh > Sent: Friday, September 16, 2016 11:05 AM > To: Lu, Patrick ; dev at dpdk.org > Subject: Re: [dpdk-dev] How to include pre-build object file (.o) in DPDK > makefile? > > On 9/16/2016

[dpdk-dev] [PATCH v5 2/6] vhost: rewrite enqueue

2016-09-19 Thread Wang, Zhihong
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Sunday, September 18, 2016 10:19 PM > To: Wang, Zhihong > Cc: dev at dpdk.org; maxime.coquelin at redhat.com; > thomas.monjalon at 6wind.com > Subject: Re: [PATCH v5 2/6] vhost: rewrite enqueue > >

  1   2   >