[dpdk-dev] [PATCH v1] hash: add tsx support for cuckoo hash

2016-06-15 Thread De Lara Guarch, Pablo
Hi Wei, > -Original Message- > From: Shen, Wei1 > Sent: Friday, May 06, 2016 9:05 PM > To: dev at dpdk.org > Cc: De Lara Guarch, Pablo; Maciocco, Christian; Shen, Wei1; Gobriel, Sameh > Subject: [PATCH v1] hash: add tsx support for cuckoo hash > > Introduced Intel TSX-enabled scalable mul

[dpdk-dev] [PATCH v2 9/9] qede: update version to 8.7.9.0_1.1.0.1

2016-06-15 Thread Rasesh Mody
From: Harish Patil Signed-off-by: Harish Patil --- drivers/net/qede/qede_ethdev.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/qede/qede_ethdev.h b/drivers/net/qede/qede_ethdev.h index b080f5f..abb33af 100644 --- a/drivers/net/qede/qede_ethdev.h +++ b

[dpdk-dev] [PATCH v2 8/9] qede: update vport filter settings

2016-06-15 Thread Rasesh Mody
From: Sony Chacko Enable promiscuous mode filter settings. Check for VF mode and enable promiscuous mode settings for VF. Check filter configuration to ensure conflicting filter modes are not set. Signed-off-by: Sony Chacko --- drivers/net/qede/base/ecore_l2.c | 19 +++- drivers/

[dpdk-dev] [PATCH v2 7/9] qede: add 100g mode support

2016-06-15 Thread Rasesh Mody
From: Harish Patil Change details: - Add device id to the PCI table - Add polling for the slowpath events for CMT mode device - Add prerequisites to allow 100g mode o Min number of queues needed is 2 o Only even number of queues are allowed - Update documentation Signed-off-b

[dpdk-dev] [PATCH v2 6/9] qede: add support for xstats

2016-06-15 Thread Rasesh Mody
This patch adds support for extended statistics for QEDE PMD. Signed-off-by: Rasesh Mody --- doc/guides/nics/overview.rst |2 +- drivers/net/qede/qede_ethdev.c | 184 ++-- 2 files changed, 177 insertions(+), 9 deletions(-) diff --git a/doc/guides/nics/

[dpdk-dev] [PATCH v2 5/9] qede: add support for setting the MTU

2016-06-15 Thread Rasesh Mody
From: Sony Chacko Add support for setting the MTU. Signed-off-by: Sony Chacko --- drivers/net/qede/qede_ethdev.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 3754454..af16277 1006

[dpdk-dev] [PATCH v2 4/9] qede: add support for querying rss redirection table

2016-06-15 Thread Rasesh Mody
From: Sony Chacko Add support for querying rss redirection table. Signed-off-by: Sony Chacko --- drivers/net/qede/qede_ethdev.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 2b91e09..3754

[dpdk-dev] [PATCH v2 3/9] qede: add support for setting rss redirection table

2016-06-15 Thread Rasesh Mody
From: Sony Chacko Add support to configure rss redirection table and update corresponding documentation. Signed-off-by: Sony Chacko --- doc/guides/nics/overview.rst |2 +- drivers/net/qede/qede_ethdev.c | 36 2 files changed, 37 insertions(+), 1 del

[dpdk-dev] [PATCH v2 2/9] qede: add support for getting rss hash configuration

2016-06-15 Thread Rasesh Mody
From: Sony Chacko Adding support to get rss hash configuration. Signed-off-by: Sony Chacko --- drivers/net/qede/qede_ethdev.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 84ff6f8.

[dpdk-dev] [PATCH v2 1/9] qede: add support for setting hash configuration

2016-06-15 Thread Rasesh Mody
From: Sony Chacko Add support for setting hash configuration based on adapter capability and update corresponding NIC documentation. Signed-off-by: Sony Chacko --- doc/guides/nics/overview.rst |2 +- doc/guides/nics/qede.rst |3 +-- drivers/net/qede/qede_eth_if.h |1 + driv

[dpdk-dev] [PATCH v2 0/9] qede: update qede PMD to 1.1.0.1

2016-06-15 Thread Rasesh Mody
Hi Bruce, v2 series: - made subject and description of the patches verbose where needed. - extended stats patch: some of the stats may sound similar, however, they are different stats collected by different hw componenets (eg. mac, rx pipeline, etc). We've tried our best to elaborate each

[dpdk-dev] [PATCH v2] rte_hash: add scalable multi-writer insertion w/ Intel TSX

2016-06-15 Thread Wei Shen
This patch introduced scalable multi-writer Cuckoo Hash insertion based on a split Cuckoo Search and Move operation using Intel TSX. It can do scalable hash insertion with 22 cores with little performance loss and negligible TSX abortion rate. * Added an extra rte_hash flag definition to switch de

[dpdk-dev] [PATCH] dropping librte_ivshmem

2016-06-15 Thread Thomas Monjalon
2016-06-15 19:16, Ferruh Yigit: > On 6/9/2016 10:26 PM, Thomas Monjalon wrote: > > So this is my proposal: > > Someone start working on the above cleanup now, otherwise the whole > > rte_ivshmem feature will be deprecated in 16.07 and removed in 16.11. > > I would like to note that at least SPP (s

[dpdk-dev] [PATCH] mk: define objcopy target and arch on IBM POWER

2016-06-15 Thread Chao Zhu
This patch defines the target and arch value of objcopy program for IBM POWER PPC64 little endian architecture. This is a fix of the original patch proposed by Jan Viktorin . Signed-off-by: Chao Zhu --- mk/arch/ppc_64/rte.vars.mk |5 + 1 files changed, 5 insertions(+), 0 deletions(-) di

[dpdk-dev] [PATCH] dropping librte_ivshmem - was log: deprecate history dump

2016-06-15 Thread Ferruh Yigit
On 6/9/2016 10:26 PM, Thomas Monjalon wrote: > Looking a bit more into librte_ivshmem, the documentation says we need > a Qemu patch but the URL doesn't exist anymore: > https://01.org/packet-processing/intel%C2%AE-ovdk > -> 404 Oops, we couldn't find that page > > I've never understoo

[dpdk-dev] [PATCH v2 0/7] virtio-net support on ppc64

2016-06-15 Thread Thomas Monjalon
> David Marchand (1): > virtio: fix pci accesses for ppc64 in legacy mode > > Olivier Matz (6): > eal: fix typos in ioport API doxygen comments > eal/linux: only call iopl on x86 > eal/linux: remove invalid comment > eal/linux: split function parsing pci resources in sysfs > eal/linux:

[dpdk-dev] random pkt generator PMD

2016-06-15 Thread Yerden Zhumabekov
On 15.06.2016 18:25, Dumitrescu, Cristian wrote: So add a loop-mode to pcap pmd? >>> It would be nice to have an option like "...,rewind=1,...". >> As Cristian points out in >> http://dpdk.org/ml/archives/dev/2016-June/041589.html, the current pmd >> behavior of stopping is the odd man out

[dpdk-dev] random pkt generator PMD

2016-06-15 Thread Yerden Zhumabekov
On 15.06.2016 18:33, Jay Rolette wrote: > On Wed, Jun 15, 2016 at 7:11 AM, Yerden Zhumabekov > wrote: >> >> On 15.06.2016 17:50, Jay Rolette wrote: >> >>> On Wed, Jun 15, 2016 at 4:43 AM, Yerden Zhumabekov >>> wrote: >>> >>> Hello everybody, DPDK already got a number of PMDs for various eth

[dpdk-dev] [PATCH v12 0/3] mempool: add external mempool manager

2016-06-15 Thread Olivier MATZ
On 06/15/2016 06:34 PM, Hunt, David wrote: > > > On 15/6/2016 1:03 PM, Olivier MATZ wrote: >> [...] >> >> The opaque pointer would be saved in mempool structure, and used >> when the mempool is populated (calling mempool_ops_alloc). >> The type of the structure pointed by the opaque has to be def

[dpdk-dev] random pkt generator PMD

2016-06-15 Thread Yerden Zhumabekov
On 15.06.2016 17:25, Panu Matilainen wrote: > On 06/15/2016 02:10 PM, Yerden Zhumabekov wrote: >> >> >> On 15.06.2016 16:43, Dumitrescu, Cristian wrote: >>> Hello everybody, DPDK already got a number of PMDs for various eth devices, it even has PMD emulations for backends

[dpdk-dev] [PATCH v2 5/7] eal/linux: mmap ioports on ppc64

2016-06-15 Thread Thomas Monjalon
2016-05-30 10:45, Olivier Matz: > On 05/24/2016 07:15 AM, Yuanhan Liu wrote: > > On Mon, May 23, 2016 at 03:40:58PM +0200, Olivier Matz wrote: > >> For reference, here is the report of the ABI checker for EAL: > >> > >> [?] struct rte_pci_ioport (2) > >> > >> 1 Field len has been added to this typ

[dpdk-dev] random pkt generator PMD

2016-06-15 Thread Yerden Zhumabekov
On 15.06.2016 17:50, Jay Rolette wrote: > On Wed, Jun 15, 2016 at 4:43 AM, Yerden Zhumabekov > wrote: > >> Hello everybody, >> >> DPDK already got a number of PMDs for various eth devices, it even has PMD >> emulations for backends such as pcap, sw rings etc. >> >> I've been thinking about the i

[dpdk-dev] [PATCH v9 0/6] virtio support for container

2016-06-15 Thread Yuanhan Liu
Applied to dpdk-next-virtio. Thanks. --yliu

[dpdk-dev] [PATCH v3 0/3] add multi queue support for virtio-user

2016-06-15 Thread Yuanhan Liu
Applied to dpdk-next-virtio, with following small changes, for addressing a build error and some checkpatch warnings. Thanks. --yliu --- diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 026b8a1..ea7a48e 100644 --- a/drivers/net/virtio/virtio_eth

[dpdk-dev] [PATCH v12 0/3] mempool: add external mempool manager

2016-06-15 Thread Hunt, David
On 15/6/2016 1:03 PM, Olivier MATZ wrote: > [...] > > The opaque pointer would be saved in mempool structure, and used > when the mempool is populated (calling mempool_ops_alloc). > The type of the structure pointed by the opaque has to be defined > (and documented) into each mempool_ops manager.

[dpdk-dev] [PATCH v9 1/8] ethdev: use locks to protect Rx/Tx callback lists

2016-06-15 Thread Ivan Boule
On 06/15/2016 04:27 PM, Ananyev, Konstantin wrote: > > >> -Original Message- >> From: Richardson, Bruce >> Sent: Wednesday, June 15, 2016 3:22 PM >> To: Ananyev, Konstantin >> Cc: Ivan Boule; Thomas Monjalon; Pattan, Reshma; dev at dpdk.org >> Subject: Re: [dpdk-dev] [PATCH v9 1/8] ethdev:

[dpdk-dev] [PATCH v5 02/38] bnxt: add HWRM init code

2016-06-15 Thread Ferruh Yigit
On 6/14/2016 11:55 PM, Stephen Hurd wrote: > From: Ajit Khaparde > > Start adding support to use the HWRM API. > Hardware Resource Manager or HWRM in short, is a set of API provided > by the firmware running in the ASIC to manage the various resources. > > Initial commit just performs necessary

[dpdk-dev] [PATCH v3] mbuf: new flag when Vlan is stripped

2016-06-15 Thread Thomas Monjalon
2016-06-15 12:33, Ananyev, Konstantin: > From: Olivier Matz [mailto:olivier.matz at 6wind.com] > > The behavior of PKT_RX_VLAN_PKT was not very well defined, resulting in > > PMDs not advertising the same flags in similar conditions. > > > > Following discussion in [1], introduce 2 new flags PKT_R

[dpdk-dev] random pkt generator PMD

2016-06-15 Thread Yerden Zhumabekov
On 15.06.2016 16:43, Dumitrescu, Cristian wrote: > >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yerden >> Zhumabekov >> Sent: Wednesday, June 15, 2016 10:44 AM >> To: dev at dpdk.org >> Subject: [dpdk-dev] random pkt generator PMD >> >> Hello everybody,

[dpdk-dev] [PATCH v12 0/3] mempool: add external mempool manager

2016-06-15 Thread Hunt, David
On 15/6/2016 3:47 PM, Jan Viktorin wrote: > On Wed, 15 Jun 2016 16:10:13 +0200 > Olivier MATZ wrote: > >> On 06/15/2016 04:02 PM, Hunt, David wrote: >>> >>> On 15/6/2016 2:50 PM, Olivier MATZ wrote: Hi David, On 06/15/2016 02:38 PM, Hunt, David wrote: > > On 15/6/2016 1:03

[dpdk-dev] [PATCH 1/1] vhost: fix null pointer dereference

2016-06-15 Thread Yuanhan Liu
On Wed, Jun 15, 2016 at 11:47:22AM +0200, Marcin Kerlin wrote: > Return value of function get_device() is not checking before > dereference. Fix this problem by adding checking condition. > > Coverity issue: 119262 > Fixes: 77d20126b4c2 ("vhost-user: handle message to enable vring") > > Signed-of

[dpdk-dev] [PATCH] eal: Fix wrong resource release of pci_uio_unmap()

2016-06-15 Thread David Marchand
On Wed, Jun 15, 2016 at 5:27 AM, Tetsuya Mukawa wrote: > The 'path' member of mapped_pci_resource structure is allocated by > primary process, but currenctly it will be freed by both primary > and secondary process. > The patch fixes to be freed by only primary process. > > Signed-off-by: Tetsuya

[dpdk-dev] [PATCH] igb_uio: fix build with backported kernel

2016-06-15 Thread Ferruh Yigit
On 6/15/2016 4:57 PM, Ferruh Yigit wrote: > Following compile error observed with CentOS 6.8, which uses kernel > kernel-devel-2.6.32-642.el6.x86_64: > > CC eal_thread.o > .../build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c: > In function 'igbuio_msix_mask_irq': > .../build/lib/librte_eal/linuxapp

[dpdk-dev] [PATCH] igb_uio: fix build with backported kernel

2016-06-15 Thread Ferruh Yigit
Following compile error observed with CentOS 6.8, which uses kernel kernel-devel-2.6.32-642.el6.x86_64: CC eal_thread.o .../build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c: In function 'igbuio_msix_mask_irq': .../build/lib/librte_eal/linuxapp/igb_uio/igb_uio.c:157: error: 'PCI_MSIX_ENTRY_CTRL_MASK

[dpdk-dev] [PATCH] ethdev: clarify the origin of mbufs

2016-06-15 Thread Thomas Monjalon
2016-06-13 15:45, Olivier Matz: > Following the discussion on dpdk-users [1], enhance the API > documentation of rte_eth_tx_burst() to specify that the mbufs have to be > allocated from a pool. > > [1] http://dpdk.org/ml/archives/users/2016-June/000618.html > > Reported-by: Wu Xiaoban > Signed-o

[dpdk-dev] [PATCH] eal: Fix wrong error checking of rte_eal_parse_devargs_str()

2016-06-15 Thread David Marchand
On Wed, Jun 15, 2016 at 5:26 AM, Tetsuya Mukawa wrote: > Currently, a return value of strdup() isn't checked correctly. > The patch fixes it. > > Signed-off-by: Tetsuya Mukawa Idem, the title does not need the function name to describe what is going wrong. This might deserve a fixline, I traced

[dpdk-dev] [PATCH v12 0/3] mempool: add external mempool manager

2016-06-15 Thread Jan Viktorin
On Wed, 15 Jun 2016 16:10:13 +0200 Olivier MATZ wrote: > On 06/15/2016 04:02 PM, Hunt, David wrote: > > > > > > On 15/6/2016 2:50 PM, Olivier MATZ wrote: > >> Hi David, > >> > >> On 06/15/2016 02:38 PM, Hunt, David wrote: > >>> > >>> > >>> On 15/6/2016 1:03 PM, Olivier MATZ wrote: > Hi

[dpdk-dev] [PATCH] eal: Fix resource leak of pci_uio_map_secondary()

2016-06-15 Thread David Marchand
Hello Tetsuya, On Wed, Jun 15, 2016 at 5:26 AM, Tetsuya Mukawa wrote: > If pci_map_resource() succeeds but mapped address is different from an > address primary process mapped, this should be error. > Then the address secondary process mapped should be freed. > > Signed-off-by: Tetsuya Mukawa T

[dpdk-dev] random pkt generator PMD

2016-06-15 Thread Arnon Warshavsky
On Wed, Jun 15, 2016 at 4:03 PM, Dumitrescu, Cristian < cristian.dumitrescu at intel.com> wrote: > > > > -Original Message- > > From: Yerden Zhumabekov [mailto:e_zhumabekov at sts.kz] > > Sent: Wednesday, June 15, 2016 1:55 PM > > To: Dumitrescu, Cristian ; Panu > Matilainen > > ; dev at d

[dpdk-dev] [PATCH] examples: fix duplicated lpm6 name

2016-06-15 Thread Thomas Monjalon
2016-06-13 11:43, Olivier Matz: > When starting the ip_fragmentation or ip_reassembly example > on several sockets, it fails. > > The name of the lpm6 table is the same on every socket, > resulting in a table creation failure (-EEXIST). The failure > appeared after: > commit f82f705b635d ("lpm: fi

[dpdk-dev] [PATCH v5 01/38] bnxt: new driver for Broadcom NetXtreme-C devices

2016-06-15 Thread Bruce Richardson
On Tue, Jun 14, 2016 at 03:55:34PM -0700, Stephen Hurd wrote: > From: Ajit Khaparde > > This patch adds the initial skeleton for bnxt driver along with the > nic guide to tie into the build system. > At this point, the driver simply fails init. > > Signed-off-by: Ajit Khaparde > Signed-off-by:

[dpdk-dev] [PATCH v5 01/38] bnxt: new driver for Broadcom NetXtreme-C devices

2016-06-15 Thread Bruce Richardson
One reminder for when sending future patchset - or other revisions of this set, please include a cover letter. Any patchset over 4/5 patches generally needs one, and it allows us to see the combined diffstats for the whole set. /Bruce On Tue, Jun 14, 2016 at 03:55:34PM -0700, Stephen Hurd wrote:

[dpdk-dev] [PATCH v4 3/3] examples/l2fwd-keepalive: add IPC liveness reporting

2016-06-15 Thread Remy Horton
Changes the l2fwd keepalive example to show how the new keepalive enhancements can be used to relay core state to an external process. Signed-off-by: Remy Horton --- examples/Makefile | 1 + examples/l2fwd-keepalive/Makefile | 5 +- examples/l2fwd-keepalive/

[dpdk-dev] [PATCH v4 2/3] eal: add additional keepalive callbacks

2016-06-15 Thread Remy Horton
Adds and documents new callbacks that allow transitions to core states other than dead to be reported to applications. Signed-off-by: Remy Horton --- doc/guides/rel_notes/release_16_07.rst | 6 +++ examples/Makefile | 2 +- lib/librte_eal/bsdapp/eal/rte_e

[dpdk-dev] [PATCH v4 1/3] eal: export keepalive state enumerations

2016-06-15 Thread Remy Horton
Changes the keepalive state from an anonymous enum to a declared one which is externally visible, so that keepalive enum values can be used by applications. Signed-off-by: Remy Horton --- lib/librte_eal/common/include/rte_keepalive.h | 12 +- lib/librte_eal/common/rte_keepalive.c

[dpdk-dev] [PATCH v4 0/3] Keep-alive enhancements

2016-06-15 Thread Remy Horton
This patchset adds enhancements to the keepalive core monitoring and reporting sub-system. The first is support for idled (sleeping and frequency-stepped) CPU cores, and the second is support for applications to be notified of active as well as faulted cores. The latter is to allow core state to be

[dpdk-dev] [PATCH v5 7/7] rte: change xstats usage to new API

2016-06-15 Thread Remy Horton
The current extended ethernet statistics fetching involve doing several string operations, which causes performance issues if there are lots of statistics and/or network interfaces. This patch changes the test-pmd and proc_info applications to use the new xstats API, and removes deprecated code ass

[dpdk-dev] [PATCH v5 6/7] drivers/net/virtio: change xstats to use integer ids

2016-06-15 Thread Remy Horton
The current extended ethernet statistics fetching involve doing several string operations, which causes performance issues if there are lots of statistics and/or network interfaces. This patch changes the virtio driver to use the new API that seperates name string and value queries. Signed-off-by:

[dpdk-dev] [PATCH v5 5/7] drivers/net/i40e: change xstats to use integer ids

2016-06-15 Thread Remy Horton
The current extended ethernet statistics fetching involve doing several string operations, which causes performance issues if there are lots of statistics and/or network interfaces. This patch changes the i40e driver to use the new API that seperates name string and value queries. Signed-off-by: R

[dpdk-dev] [PATCH v5 4/7] drivers/net/fm10k: change xstats to use integer ids

2016-06-15 Thread Remy Horton
The current extended ethernet statistics fetching involve doing several string operations, which causes performance issues if there are lots of statistics and/or network interfaces. This patch changes the fm10k driver to use the new API that seperates name string and value queries. Signed-off-by:

[dpdk-dev] [PATCH v5 3/7] drivers/net/e1000: change xstats to use integer ids

2016-06-15 Thread Remy Horton
The current extended ethernet statistics fetching involve doing several string operations, which causes performance issues if there are lots of statistics and/or network interfaces. This patch changes the e1000 driver to use the new API that seperates name string and value queries. Signed-off-by:

[dpdk-dev] [PATCH v5 2/7] drivers/net/ixgbe: change xstats to use integer ids

2016-06-15 Thread Remy Horton
The current extended ethernet statistics fetching involve doing several string operations, which causes performance issues if there are lots of statistics and/or network interfaces. This patch changes the ixgbe driver to use the new API that seperates name string and value queries. Signed-off-by:

[dpdk-dev] [PATCH v5 1/7] rte: change xstats to use integer ids

2016-06-15 Thread Remy Horton
The current extended ethernet statistics fetching involve doing several string operations, which causes performance issues if there are lots of statistics and/or network interfaces. This patch changes the xstats functions to instead use a numeric identifier rather than a string, and adds the abilit

[dpdk-dev] [PATCH v5 0/7] Remove string operations from xstats

2016-06-15 Thread Remy Horton
The current extended ethernet statistics fetching involve doing several string operations, which causes performance issues if there are lots of statistics and/or network interfaces. This patchset changes the API for xstats to use integer identifiers instead of strings and implements this new API fo

[dpdk-dev] [PATCH] eal: fix rte_memcpy perf in hsw/bdw

2016-06-15 Thread Thomas Monjalon
2016-05-24 21:23, Zhihong Wang: > This patch fixes rte_memcpy performance in Haswell and Broadwell for > vhost when copy size larger than 256 bytes. > > It is observed that for large copies like 1024/1518 ones, rte_memcpy > suffers high ratio of store buffer full issue which causes pipeline > to s

[dpdk-dev] [PATCH v12 0/3] mempool: add external mempool manager

2016-06-15 Thread Olivier MATZ
On 06/15/2016 04:02 PM, Hunt, David wrote: > > > On 15/6/2016 2:50 PM, Olivier MATZ wrote: >> Hi David, >> >> On 06/15/2016 02:38 PM, Hunt, David wrote: >>> >>> >>> On 15/6/2016 1:03 PM, Olivier MATZ wrote: Hi, On 06/15/2016 01:47 PM, Hunt, David wrote: > > > On 15/6/20

[dpdk-dev] [PATCH v9 1/8] ethdev: use locks to protect Rx/Tx callback lists

2016-06-15 Thread Ivan Boule
On 06/15/2016 03:29 PM, Bruce Richardson wrote: > On Wed, Jun 15, 2016 at 12:40:16PM +, Ananyev, Konstantin wrote: >> Hi Ivan, >> >>> -Original Message- >>> From: Ivan Boule [mailto:ivan.boule at 6wind.com] >>> Sent: Wednesday, June 15, 2016 1:15 PM >>> To: Thomas Monjalon; Ananyev, Kon

[dpdk-dev] random pkt generator PMD

2016-06-15 Thread Yerden Zhumabekov
On 15.06.2016 15:49, Bruce Richardson wrote: > On Wed, Jun 15, 2016 at 03:43:56PM +0600, Yerden Zhumabekov wrote: >> Hello everybody, >> >> DPDK already got a number of PMDs for various eth devices, it even has PMD >> emulations for backends such as pcap, sw rings etc. >> >> I've been thinking abou

[dpdk-dev] [PATCH v2] mempool: fix local cache initialization

2016-06-15 Thread Thomas Monjalon
2016-06-09 10:26, Olivier Matz: > On 06/09/2016 10:19 AM, Sergio Gonzalez Monroy wrote: > > The mempool local cache was not initialized properly leading to > > undefined behavior in cases where the allocated memory was used > > previously and left with data. > > > > Fixes: 213af31e0960 ("mempool:

[dpdk-dev] [PATCH] app/test: remove rte_pci_dev_ids.h from pci_autotest

2016-06-15 Thread Thomas Monjalon
2016-06-15 11:51, Jan Viktorin: > On Tue, 14 Jun 2016 16:08:42 +0200 > Thomas Monjalon wrote: > > > 2016-06-14 15:46, Jan Viktorin: > > > There are 2 new fake devices for testing PCI infra. All the fake devices > > s/All the fake/All 3 fake/ > > > > are now identified by non-existing vendor and

[dpdk-dev] [PATCH v3 30/30] ixgbe/base: update README

2016-06-15 Thread Beilei Xing
The ixgbe base driver was updated refer to version cid-10g-shared-code.2016.04.12 released by ND. The changes include: Added sgmii link for X550. Added mac link setup for X550a SFP and SFP+. Added KR support for X550em_a. Added new phy definitions for M88E1500. Added support for the VLVF to be byp

[dpdk-dev] [PATCH v3 29/30] ixgbe/base: define if enable crosstalk work around

2016-06-15 Thread Beilei Xing
A work around for a new crosstalk erratum that causes link flap in entry cages has been introduced. So this patch defines the bit in NVM that will tell software if this work around is needed. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_type.h | 1 + 1 file changed, 1 insertion(+)

[dpdk-dev] [PATCH v3 28/30] ixgbe/base: add flow control autoneg for X550a

2016-06-15 Thread Beilei Xing
This patch adds X550a flow control auto negotiation support. ixgbe_setup_fc_x550a and ixgbe_fc_autoneg_X550a functions where added to setup and enable flow control. MAC ops function pointer fc_autoneg was added so that hardware specific fc autoneg functions can be called from ixgbe_fc_enable_generi

[dpdk-dev] [PATCH v3 27/30] ixgbe/base: allow setting MAC anti spoofing per VF

2016-06-15 Thread Beilei Xing
Make ixgbe_set_mac_anti_spoofing() consistent with the other functions that deal with setting VLAN and Ethertype spoofing by changing the prototype to accept a VF parameter. Also change the logic for writing the PFVFSPOOF register to be similar to the MAC and Ethertype functions. Signed-off-by: B

[dpdk-dev] [PATCH v3 26/30] ixgbe/base: fix endianness issues

2016-06-15 Thread Beilei Xing
This patch fixes endianness issues about host interface command. Fixes: ad66a85dce9a ("ixgbe/base: new FW values") Fixes: 0790adeb5675 ("ixgbe/base: support X550em_a device") Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_osdep.h | 1 + drivers/net/ixgbe/base/ixgbe_type.h | 17 ++

[dpdk-dev] [PATCH v3 25/30] ixgbe/base: use u8 to replace u16 for a variable

2016-06-15 Thread Beilei Xing
Since PCIe standard defines maximum of 8 functions per device lan_id is a value 0..7. Because of that, lan_id don't need to be u16. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_common.c | 2 +- drivers/net/ixgbe/base/ixgbe_type.h | 2 +- 2 files changed, 2 insertions(+), 2 delet

[dpdk-dev] [PATCH v3 24/30] ixgbe/base: unify coding style

2016-06-15 Thread Beilei Xing
This patch changes static keyword to STATIC definition, which can be redefined depending on the compiler used. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_x550.c | 38 ++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/ne

[dpdk-dev] [PATCH v3 23/30] ixgbe/base: add bypassing VLVF

2016-06-15 Thread Beilei Xing
This patch adds support for the VLVF to be bypassed when adding or removing a VFTA entry. The PF can utilize the default pool while preserving the VLVF for the VFs use. Meanwhile, update corresponding VF ops and drivers where corresponding ops is invoked. Signed-off-by: Beilei Xing --- drivers/

[dpdk-dev] [PATCH v3 22/30] ixgbe/base: simplify add/remove VLANs

2016-06-15 Thread Beilei Xing
This patch simplifies the adding and removing VLANs from VFTA/VLVF/VLVFB registers. The logic to determine registers has been simplified to (vid / 32) and (1 - vid / 32). Many conditional paths and checks are no longer needed with this patch. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base

[dpdk-dev] [PATCH v3 21/30] ixgbe/base: limit PHY token accessing to MDIO only

2016-06-15 Thread Beilei Xing
This patch limits getting and putting the PHY Token to PHY MDIO access only by adding ixgbe_read_phy_reg_x550a and ixgbe_write_phy_reg_x550a. The PHY Token is only needed to synchronize access to the MDIO shared between the two MAC instance. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/

[dpdk-dev] [PATCH v3 20/30] ixgbe/base: fix register access error

2016-06-15 Thread Beilei Xing
This patch corrects the FLA/GSCL/GSCN access offset value according to the datasheet. Fixes: 0790adeb5675 ("ixgbe/base: support X550em_a device") Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_type.h | 42 - 1 file changed, 41 insertions(+), 1 de

[dpdk-dev] [PATCH v3 19/30] ixgbe/base: fix possible race issue

2016-06-15 Thread Beilei Xing
This patch fixes possible race issue between ports when issuing host interface command by acquiring/releasing the management host interface semaphore in ixgbe_host_interface_command. Fixes: 36f43e8679ae ("ixgbe/base: refactor manageability block communication") Signed-off-by: Beilei Xing --- dr

[dpdk-dev] [PATCH v3 18/30] ixgbe/base: add function to reset swfw semaphore

2016-06-15 Thread Beilei Xing
For X540 and forward it is possible if a system reset occur at the right time to leave the SWFW semaphore high. This new function will attempt to grab and release the semaphore. If the grab times out it will still release the semaphore placing it in a known good state. The idea is to call this when

[dpdk-dev] [PATCH v3 17/30] ixgbe/base: change device IDs

2016-06-15 Thread Beilei Xing
There're two device IDs changed from 15C6/15C7 to 15E4/15E5 cause PHY info changes. Make the change and use 15C6/15C7 for the backplane SGMII. Clean up some discovery kludges from the previous shared ID, and also add 15C6/15C7 to ixgbe_set_mdio_speed just for paranoia to control MDIO speed even tho

[dpdk-dev] [PATCH v3 16/30] ixgbe/base: add new phy definitions

2016-06-15 Thread Beilei Xing
It adds new phy definitions. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_phy.c | 16 +- drivers/net/ixgbe/base/ixgbe_type.h | 14 +- drivers/net/ixgbe/base/ixgbe_x550.c | 303 ++-- drivers/net/ixgbe/base/ixgbe_x550.h | 43 + 4 files changed

[dpdk-dev] [PATCH v3 15/30] ixgbe/base: refactor NW management interface ops

2016-06-15 Thread Beilei Xing
This patch adds ixgbe_read_mng_if_sel_x550em to read NW_MNG_IF_SEL register and save fields such as PHY MDIO_ADD. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_type.h | 2 ++ drivers/net/ixgbe/base/ixgbe_x550.c | 48 +++-- 2 files changed, 32 insert

[dpdk-dev] [PATCH v3 14/30] ixgbe/base: fix firmware commands on X550em_a

2016-06-15 Thread Beilei Xing
This patch fixes firmware commands on X550em_a. For one thing, the checksum value was not being set. Fixes: 0790adeb5675 ("ixgbe/base: support X550em_a device") Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_x550.c | 19 ++- 1 file changed, 10 insertions(+), 9 delet

[dpdk-dev] [PATCH v3 13/30] ixgbe/base: fix for code style

2016-06-15 Thread Beilei Xing
The ixgbe_vf.h file did not use __ and instead used which is not the standard used in every other file. Fixes: af75078fece3 ("first public release") Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_vf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driv

[dpdk-dev] [PATCH v3 12/30] ixgbe/base: fix error path to release lock

2016-06-15 Thread Beilei Xing
When there is an error getting the PHY token, the error path fails to release the locks that it has taken. Release those locks in that failure case. Fixes: 86b8fb293fdf ("ixgbe/base: add sw-firmware sync for resource sharing on X550em_a") Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/i

[dpdk-dev] [PATCH v3 11/30] ixgbe/base: rename macro of TDL

2016-06-15 Thread Beilei Xing
This patch renames IXGBE_PVFTTDLEN to IXGBE_PVFTDLEN according to abbreviation of Transmit Descriptor Length in datasheet. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b

[dpdk-dev] [PATCH v3 10/30] ixgbe/base: clear stale pool mappings

2016-06-15 Thread Beilei Xing
This patch adds clearing the pool mappings when configuring default MAC addresses for the interface. Without this there will be the risk of leaking an address into pool 0 which really belongs to VF 0 when SR-IOV is enabled. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_82599.c | 9

[dpdk-dev] [PATCH v3 09/30] ixgbe/base: add link MAC setup for X550a SFP+

2016-06-15 Thread Beilei Xing
This patch updates ixgbe_setup_mac_link_sfp_x550a for X550 SFP+. ixgbe_set_lan_id_multi_port_pcie has been updated to set the MAC instance(0/1) which is needed when configuring the external PHY, since X550a has two instances of MGPK. The MAC instance is read from the EEPROM. Signed-off-by: Beilei

[dpdk-dev] [PATCH v3 08/30] ixgbe/base: add KR support for X550em_a devices

2016-06-15 Thread Beilei Xing
Implement KR support for X550em_a devices. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_x550.c | 51 + 1 file changed, 41 insertions(+), 10 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c ind

[dpdk-dev] [PATCH v3 07/30] ixgbe/base: change access method

2016-06-15 Thread Beilei Xing
Use the method pointers instead of direct function calls so that the right thing will happen on X550EM_a. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_x550.c | 84 ++--- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/drivers/net/ixg

[dpdk-dev] [PATCH v3 06/30] ixgbe/base: refactor eee setup for X550

2016-06-15 Thread Beilei Xing
Break ixgbe_setup_eee_X550 down to better handle a change from if statements to switch statements needed to add X550em_a KR support. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_x550.c | 174 ++-- 1 file changed, 105 insertions(+), 69 deletions(-)

[dpdk-dev] [PATCH v3 05/30] ixgbe/base: fix checksum error of checking PHY token

2016-06-15 Thread Beilei Xing
This patch sets the Host Interface PHY token command checksum to the checksum default of 0xFF, therefore the checksum is not checked by the firmware. Otherwise the command fails with a checksum failed error. Fixes: 86b8fb293fdf ("ixgbe/base: add sw-firmware sync for resource sharing on X550em_a")

[dpdk-dev] [PATCH v3 04/30] ixgbe/base: add MAC link setup for X550a SFP

2016-06-15 Thread Beilei Xing
This patch adds ixgbe_setup_mac_link_sfp_x550a for X550a SFP. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_type.h | 4 +++ drivers/net/ixgbe/base/ixgbe_x550.c | 64 - drivers/net/ixgbe/base/ixgbe_x550.h | 3 ++ 3 files changed, 70 insertions(+

[dpdk-dev] [PATCH v3 03/30] ixgbe/base: fix problematic return value

2016-06-15 Thread Beilei Xing
An error code indicating that the PF rejects the MAC address change should be returned, in case that the PF has already assigned a MAC for the VF. Fixes: af75078fece3 ("first public release") Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_vf.c | 4 +++- 1 file changed, 3 insertions

[dpdk-dev] [PATCH v3 02/30] ixgbe/base: add sgmii link for X550

2016-06-15 Thread Beilei Xing
It adds sgmii link for X550. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_type.h | 9 +++ drivers/net/ixgbe/base/ixgbe_x550.c | 127 +--- 2 files changed, 127 insertions(+), 9 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drive

[dpdk-dev] [PATCH v3 01/30] ixgbe/base: add new VF requests for mailbox API

2016-06-15 Thread Beilei Xing
It adds two new VF requests of IXGBE_VF_GET_RETA and IXGBE_VF_GET_RSS_KEY for mailbox API. Signed-off-by: Beilei Xing --- drivers/net/ixgbe/base/ixgbe_mbx.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_mbx.h b/drivers/net/ixgbe/base/ixgbe_m

[dpdk-dev] [PATCH v3 00/30]

2016-06-15 Thread Beilei Xing
Update base driver for ixgbe, mainly work on new features and bug fixes. v3 changes: Fix some commit log issues. Beilei Xing (30): ixgbe/base: add new VF requests for mailbox API ixgbe/base: add sgmii link for X550 ixgbe/base: fix problematic return value ixgbe/base: add MAC link setup f

[dpdk-dev] [PATCH v12 0/3] mempool: add external mempool manager

2016-06-15 Thread Olivier MATZ
Hi David, On 06/15/2016 02:38 PM, Hunt, David wrote: > > > On 15/6/2016 1:03 PM, Olivier MATZ wrote: >> Hi, >> >> On 06/15/2016 01:47 PM, Hunt, David wrote: >>> >>> >>> On 15/6/2016 11:13 AM, Jan Viktorin wrote: Hi, I've got one last question. Initially, I was interested in creating

[dpdk-dev] [PATCH v9 1/8] ethdev: use locks to protect Rx/Tx callback lists

2016-06-15 Thread Thomas Monjalon
I agree this patch do not bring a new issue. But the current status deserves to be discussed. 2016-06-15 09:54, Ananyev, Konstantin: > It is safe to add/remove RX/TX callbacks while > another thread is doing simultaneously RX/TX burst over same queue. You are probably right, but I don't why it i

[dpdk-dev] [PATCH v9 5/8] pdump: add new library for packet capturing support

2016-06-15 Thread Mcnamara, John
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, June 15, 2016 10:33 AM > To: Mcnamara, John > Cc: Pattan, Reshma ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v9 5/8] pdump: add new library for packet > capturing support > > > Als

[dpdk-dev] random pkt generator PMD

2016-06-15 Thread Yerden Zhumabekov
Hello everybody, DPDK already got a number of PMDs for various eth devices, it even has PMD emulations for backends such as pcap, sw rings etc. I've been thinking about the idea of having PMD which would generate mbufs on the fly in some randomized fashion. This would serve goals like, for exa

[dpdk-dev] [PATCH v5 00/25] DPDK PMD for ThunderX NIC device

2016-06-15 Thread Bruce Richardson
On Wed, Jun 15, 2016 at 12:36:15AM +0530, Jerin Jacob wrote: > This patch set provides the initial version of DPDK PMD for the > built-in NIC device in Cavium ThunderX SoC family. > > Implemented features and ThunderX nicvf PMD documentation added > in doc/guides/nics/overview.rst and doc/guides/n

[dpdk-dev] [PATCH] config: thunderx: select maximum supported numa nodes and lcores

2016-06-15 Thread Thomas Monjalon
2016-06-13 19:31, Jerin Jacob: > ThunderX platform can support dual sockets numa configuration and 48 > cores per socket. > > Signed-off-by: Jerin Jacob Applied, thanks

[dpdk-dev] [PATCH v4] eal: out-of-bounds write

2016-06-15 Thread Slawomir Mrozowicz
Overrunning array mcfg->memseg of 256 44-byte elements at element index 257 using index j. Fixed by add condition with message information. Fixes: af75078fece3 ("first public release") Coverity ID 13282 Signed-off-by: Slawomir Mrozowicz --- lib/librte_eal/linuxapp/eal/eal_memory.c | 9 +

[dpdk-dev] random pkt generator PMD

2016-06-15 Thread Panu Matilainen
On 06/15/2016 03:14 PM, Yerden Zhumabekov wrote: > > > On 15.06.2016 17:25, Panu Matilainen wrote: >> On 06/15/2016 02:10 PM, Yerden Zhumabekov wrote: >>> >>> >>> On 15.06.2016 16:43, Dumitrescu, Cristian wrote: > > Hello everybody, > > DPDK already got a number of PMDs for var

[dpdk-dev] [PATCH v9 1/8] ethdev: use locks to protect Rx/Tx callback lists

2016-06-15 Thread Bruce Richardson
On Wed, Jun 15, 2016 at 03:20:27PM +0100, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: Ivan Boule [mailto:ivan.boule at 6wind.com] > > Sent: Wednesday, June 15, 2016 3:07 PM > > To: Richardson, Bruce; Ananyev, Konstantin > > Cc: Thomas Monjalon; Pattan, Reshma; dev at d

  1   2   3   >