Re: [dpdk-dev] Segfault seen in netmap_compat app on Power8

2017-04-11 Thread Rahul Lakkireddy
On Thursday, April 04/06/17, 2017 at 15:06:03 +0530, gowrishankar muthukrishnan wrote: >With gcc 6.3.0, I find this app functioning w/o crash. > >Did disabling gcc optimization help ? (set EXTRA_CFLAGS='-O0' before >compile). > Yes, with optimization disabled, the app is not hitting

Re: [dpdk-dev] error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB=y

2017-04-11 Thread Shreyansh Jain
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] > Sent: Wednesday, April 12, 2017 12:58 AM > To: john miller > Cc: dev@dpdk.org; olivier.m...@6wind.com; Shreyansh Jain > > Subject: Re: [dpdk-dev] error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB=y > > 2017

Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver logs by default

2017-04-11 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Zhang, Helin > Sent: Friday, April 7, 2017 10:03 AM > To: Richardson, Bruce > Cc: Olivier Matz; dev@dpdk.org; Wu, Jingjing; Yigit, Ferruh > Subject: Re: [dpdk-dev] [PATCH] net/i40e: disable init and driver log

Re: [dpdk-dev] [PATCH v8 1/3] net/i40e: enable per dev PTYPE mapping table

2017-04-11 Thread Zhang, Qi Z
Ping again. > -Original Message- > From: Zhang, Qi Z > Sent: Friday, April 7, 2017 10:37 AM > To: chao...@linux.vnet.ibm.com > Cc: Yigit, Ferruh ; jianbo@linaro.org; > dev@dpdk.org; Wu, Jingjing ; Zhang, Helin > > Subject: RE: [PATCH v8 1/3] net/i40e: enable per dev PTYPE mapping tabl

Re: [dpdk-dev] error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB=y

2017-04-11 Thread Thomas Monjalon
2017-04-11 14:02, john miller: > > We are seeing an issue when running from the head of the master branch in > dpdk-next-net and building with CONFIG_RTE_BUILD_SHARED_LIB=y. When we run > testpmd using -d to point to our PMD we get this error > > EAL: Error - exiting with code: 1 > Cause:

[dpdk-dev] [PATCH v2 10/10] doc: refer PMD compile and test section from thunderx doc

2017-04-11 Thread Shijith Thotton
Refer the section which explains driver compilation and running of testpmd in Linux, instead of describing it in driver documentation. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob --- doc/guides/nics/thunderx.rst | 188 +-- 1 file changed, 55

[dpdk-dev] [PATCH v2 09/10] doc: refer PMD compile and test section from qede doc

2017-04-11 Thread Shijith Thotton
Refer the section which explains driver compilation and running of testpmd in Linux, instead of describing it in driver documentation. Signed-off-by: Shijith Thotton Acked-by: John McNamara --- doc/guides/nics/qede.rst | 176 ++- 1 file changed, 66 in

[dpdk-dev] [PATCH v2 08/10] doc: refer PMD compile and test section from nfp doc

2017-04-11 Thread Shijith Thotton
Refer the section which explains driver compilation and running of testpmd in Linux, instead of describing it in driver documentation. Signed-off-by: Shijith Thotton Acked-by: John McNamara --- doc/guides/nics/nfp.rst | 141 +++- 1 file changed, 6 ins

[dpdk-dev] [PATCH v2 07/10] doc: refer PMD compile and test section from liquidio doc

2017-04-11 Thread Shijith Thotton
Refer the section which explains driver compilation and running of testpmd in Linux, instead of describing it in driver documentation. Signed-off-by: Shijith Thotton Acked-by: John McNamara --- doc/guides/nics/liquidio.rst | 123 --- 1 file changed, 33 in

[dpdk-dev] [PATCH v2 06/10] doc: refer PMD compile and test section from i40e doc

2017-04-11 Thread Shijith Thotton
Refer the section which explains driver compilation and running of testpmd in Linux, instead of describing it in driver documentation. Signed-off-by: Shijith Thotton Acked-by: John McNamara --- doc/guides/nics/i40e.rst | 108 --- 1 file changed, 36 in

[dpdk-dev] [PATCH v2 05/10] doc: refer PMD compile and test section from ena doc

2017-04-11 Thread Shijith Thotton
Refer the section which explains driver compilation and running of testpmd in Linux, instead of describing it in driver documentation. Signed-off-by: Shijith Thotton Acked-by: John McNamara --- doc/guides/nics/ena.rst | 69 ++--- 1 file changed, 20 in

[dpdk-dev] [PATCH v2 04/10] doc: refer PMD compile and test section from cxgbe doc

2017-04-11 Thread Shijith Thotton
Refer the section which explains driver compilation and running of testpmd in Linux, instead of describing it in driver documentation. Signed-off-by: Shijith Thotton Acked-by: John McNamara --- doc/guides/nics/cxgbe.rst | 86 ++- 1 file changed, 11 in

[dpdk-dev] [PATCH v2 03/10] doc: refer PMD compile and test section from bnx2x doc

2017-04-11 Thread Shijith Thotton
Refer the section which explains driver compilation and running of testpmd in Linux, instead of describing it in driver documentation. Signed-off-by: Shijith Thotton Acked-by: John McNamara --- doc/guides/nics/bnx2x.rst | 178 +++--- 1 file changed, 42 in

[dpdk-dev] [PATCH v2 02/10] doc: refer PMD compile and test section from ark doc

2017-04-11 Thread Shijith Thotton
Refer the section which explains driver compilation and running of testpmd in Linux, instead of describing it in driver documentation. Signed-off-by: Shijith Thotton --- doc/guides/nics/ark.rst | 75 + 1 file changed, 20 insertions(+), 55 deletions

[dpdk-dev] [PATCH v2 01/10] doc: add doc to explain compiling and testing of PMD

2017-04-11 Thread Shijith Thotton
Add a section in NIC drivers documentation to explain compiling and testing of a PMD. It also mentions about host setup, which is required before running testpmd. Add label "testpmd_ug" to refer user guide. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Acked-by: John McNamara ---

[dpdk-dev] [PATCH v2 00/10] doc: consolidate common part among PMD docs

2017-04-11 Thread Shijith Thotton
Steps for compiling PMDs and running testpmd in Linux are common among drivers. So it can be moved to a new document and be referred from other driver documentations. This patchset adds a new section for compiling and testing a PMD in Network Interface Controller Drivers documentation. Other drive

Re: [dpdk-dev] [PATCH v2 36/42] net/avp: Don't use eth_driver

2017-04-11 Thread Legacy, Allain
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Gaetan Rivet > Sent: Tuesday, April 11, 2017 11:45 AM > To: dev@dpdk.org > Cc: Jan Blunck > Subject: [dpdk-dev] [PATCH v2 36/42] net/avp: Don't use eth_driver > > Signed-off-by: Gaetan Rivet > --- Acked-by: Allai

Re: [dpdk-dev] [PATCH v2 2/2] net/ark: report hardware status during PMD init

2017-04-11 Thread john miller
> On Apr 11, 2017, at 11:41 AM, Ed Czeck wrote: > > Expose additional fpga status registers. > Report hardware status during PMD init. > > Signed-off-by: Ed Czeck Acked-by: John Miller mailto:john.mil...@atomicrules.com>>

[dpdk-dev] error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB=y

2017-04-11 Thread john miller
We are seeing an issue when running from the head of the master branch in dpdk-next-net and building with CONFIG_RTE_BUILD_SHARED_LIB=y. When we run testpmd using -d to point to our PMD we get this error EAL: Error - exiting with code: 1 Cause: Creation of mbuf pool for socket 0 failed: In

Re: [dpdk-dev] [PATCH] doc: fix build error in DPAA2 PMD guide

2017-04-11 Thread Shreyansh Jain
Hi Ferruh, > -Original Message- > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > Sent: Tuesday, April 11, 2017 8:28 PM > To: Shreyansh Jain ; Hemant Agrawal > > Cc: dev@dpdk.org; john.mcnam...@intel.com > Subject: Re: [dpdk-dev] [PATCH] doc: fix build error in DPAA2 PMD guide > > O

[dpdk-dev] [PATCH] mk: increase unsupported icc version for thunderx

2017-04-11 Thread Ferruh Yigit
Increase unsupported ICC version for thunderx PMD to <= 16 Build error reported: http://dpdk.org/ml/archives/dev/2017-April/063647.html Fixes: 0b9ce550c4f6 ("net/thunderx: disable PMD for old compilers") Signed-off-by: Ferruh Yigit --- mk/toolchain/icc/rte.toolchain-compat.mk | 4 ++-- 1 file

[dpdk-dev] [PATCH v5 3/3] net/ixgbe: new xstats API add ID support for ixgbe

2017-04-11 Thread Michal Jastrzebski
From: Jacek Piasecki To achieve functionality of retrieving only specific statistics given by application there are two new functions added: ixgbe_dev_xstats_get_by_ids() which retrieve values of statistics specified by ids array and ixgbe_dev_xstats_get_names_by_ids() which retrieve names of sta

[dpdk-dev] [PATCH v5 2/3] net/e1000: new xstats API add ID support for e1000

2017-04-11 Thread Michal Jastrzebski
From: Jacek Piasecki To achieve functionality of retrieving only specific statistics given by application there are two new functions added: eth_igb_xstats_get_by_ids() which retrieve values of statistics specified by ids array and eth_igb_xstats_get_names_by_ids() which retrieve names of statist

[dpdk-dev] [PATCH v5 1/3] ethdev: new xstats API add retrieving by ID

2017-04-11 Thread Michal Jastrzebski
From: Jacek Piasecki Extended xstats API in ethdev library to allow grouping of stats logically so they can be retrieved per logical grouping managed by the application. Changed existing functions rte_eth_xstats_get_names and rte_eth_xstats_get to use a new list of arguments: array of ids and ar

[dpdk-dev] [PATCH v5 0/3] Extended xstats API in ethdev library to allow grouping of stats

2017-04-11 Thread Michal Jastrzebski
From: Jacek Piasecki Extended xstats API in ethdev library to allow grouping of stats logically so they can be retrieved per logical grouping managed by the application. Changed existing functions rte_eth_xstats_get_names and rte_eth_xstats_get to use a new list of arguments: array of ids and ar

Re: [dpdk-dev] [PATCH] crypto/scheduler: fix Doxygen comments

2017-04-11 Thread Mcnamara, John
> -Original Message- > From: Zhang, Roy Fan > Sent: Tuesday, April 11, 2017 5:16 PM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo ; > sta...@dpdk.org; Mcnamara, John > Subject: [PATCH] crypto/scheduler: fix Doxygen comments > > This patch adds the missing doxygen comments and updated inl

Re: [dpdk-dev] [PATCH] net/tap: add support for fixed mac addresses

2017-04-11 Thread Wiles, Keith
> On Apr 11, 2017, at 10:09 AM, Pascal Mazon wrote: > > Support for a fixed MAC address for testing with the last octet > incrementing by one for each interface defined with the new 'mac=fixed' > string on the --vdev option. The default option is still to randomize > the MAC address for each tap

[dpdk-dev] [PATCH] crypto/scheduler: fix Doxygen comments

2017-04-11 Thread Fan Zhang
This patch adds the missing doxygen comments and updated inline comments to cryptodev scheduler Fixes: d58a3f312545 ("crypto/scheduler: add documentation") Signed-off-by: Fan Zhang --- doc/api/doxy-api-index.md | 3 +- doc/api/doxy-api.conf

Re: [dpdk-dev] [PATCH 00/11] remove unnecessary cast of void pointers

2017-04-11 Thread Thomas Monjalon
2017-04-07 13:44, Stephen Hemminger: > This is a set patches inspired by a set of Linux kernel patches > by simran singhal Applied, thanks

Re: [dpdk-dev] [PATCH v2 1/2] net/ark: update packet Rx path to set mbuf time stamp field

2017-04-11 Thread Ferruh Yigit
On 4/11/2017 4:41 PM, Ed Czeck wrote: > Time stamp was carried in the packet meta data, but not > place in the mbuf. The new time stamp field is the proper > destination. > > Remove the setting of data offset since this is done by > rte_pktmbuf_free() > > Signed-off-by: Ed Czeck Series applied

Re: [dpdk-dev] [PATCH] net/tap: add support for fixed mac addresses

2017-04-11 Thread Ferruh Yigit
On 4/11/2017 4:42 PM, Wiles, Keith wrote: > >> On Apr 11, 2017, at 10:09 AM, Pascal Mazon wrote: >> >> Support for a fixed MAC address for testing with the last octet >> incrementing by one for each interface defined with the new 'mac=fixed' >> string on the --vdev option. The default option is s

[dpdk-dev] [PATCH v2 42/42] ethdev: don't include PCI header

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Since the PCI functionality has been moved to the PCI specific ethdev header we don't need to include rte_pci.h from here anymore. Signed-off-by: Jan Blunck --- lib/librte_ether/rte_ethdev.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_ether

[dpdk-dev] [PATCH v2 41/42] ethdev: remove PCI specific helper from generic ethdev header

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck This moves the rte_eth_copy_pci_info() into the PCI specific ethdev header. As a side effect this also removes it from the list of symbols exported by the rte_ethdev library. Signed-off-by: Jan Blunck --- drivers/net/cxgbe/cxgbe_main.c | 1 + lib/librte_ether/rte_ethd

[dpdk-dev] [PATCH v2 40/42] test: remove unused ethdev driver

2017-04-11 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- test/test/virtual_pmd.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/test/test/virtual_pmd.c b/test/test/virtual_pmd.c index b209355..186d9b7 100644 --- a/test/test/virtual_pmd.c +++ b/test/test/virtual_pmd.c @@ -532,7 +532,6 @@

[dpdk-dev] [PATCH v2 39/42] ethdev: remove unused ethdev driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck This removes the now unused struct eth_driver. Signed-off-by: Jan Blunck --- drivers/net/cxgbe/cxgbe_main.c | 1 - drivers/net/ring/rte_eth_ring.c| 1 - lib/librte_ether/rte_ethdev.h | 73 -- lib/librte_ether/rte_ethdev_pci.h

[dpdk-dev] [PATCH v2 38/42] ethdev: remove unused ethdev PCI probe/remove

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck This removes the now unused rte_eth_dev_pci_probe() and rte_eth_dev_pci_remove() functions. Signed-off-by: Jan Blunck --- lib/librte_ether/rte_ethdev.c | 97 -- lib/librte_ether/rte_ethdev.h | 15 -- lib/librte_ether/rte_et

[dpdk-dev] [PATCH v2 37/42] net/liquidio: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- drivers/net/liquidio/lio_ethdev.c | 44 +-- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c index df91659..4edb0d1 100644 --- a/drivers/net/li

[dpdk-dev] [PATCH v2 33/42] net/szedata2: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/szedata2/rte_eth_szedata2.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/drivers/net/szedata2/rte_eth_szedata2.c b/drivers/net/szedata2/rte_eth_szedata2.c index fe7a6b3..54212b7 10

[dpdk-dev] [PATCH v2 36/42] net/avp: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- drivers/net/avp/avp_ethdev.c | 43 --- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/drivers/net/avp/avp_ethdev.c b/drivers/net/avp/avp_ethdev.c index 7f2ab47..9ca2786 100644 --- a/drivers/net/avp/avp_ethdev

[dpdk-dev] [PATCH v2 35/42] net/vmxnet3: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index ae3efaa..0e8eb75 100644 ---

[dpdk-dev] [PATCH v2 34/42] net/thunderx: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/thunderx/nicvf_ethdev.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/drivers/net/thunderx/nicvf_ethdev.c b/drivers/net/thunderx/nicvf_ethdev.c index 6c3670a..b0b9c3b 100644 --- a/d

[dpdk-dev] [PATCH v2 32/42] net/sfc: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/sfc/sfc_ethdev.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/drivers/net/sfc/sfc_ethdev.c b/drivers/net/sfc/sfc_ethdev.c index 4f7b640..7620080 100644 --- a/drivers/net/sfc/sf

[dpdk-dev] [PATCH v2 23/42] net/ena: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/ena/ena_ethdev.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index 5dd44d7..f5f748f 100644 --- a/drivers/net/ena/ena_eth

[dpdk-dev] [PATCH v2 24/42] net/enic: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/enic/enic_ethdev.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index 2c2e29e..7579696 100644 --- a/drivers/net/enic/

[dpdk-dev] [PATCH v2 31/42] net/qede: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/qede/qede_ethdev.c | 60 +- drivers/net/qede/qede_ethdev.h | 1 + 2 files changed, 37 insertions(+), 24 deletions(-) diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c

[dpdk-dev] [PATCH v2 29/42] net/mlx: Don't reference eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck The eth_driver concept is unused in the mlx drivers so don't reference it. Signed-off-by: Jan Blunck --- drivers/net/mlx4/mlx4.c | 24 +++- drivers/net/mlx5/mlx5.c | 24 +++- 2 files changed, 22 insertions(+), 26 deletions(-) diff --git

[dpdk-dev] [PATCH v2 30/42] net/nfp: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/nfp/nfp_net.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index d06b10a..eda87a5 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/

[dpdk-dev] [PATCH v2 28/42] net/ixgbe: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/ixgbe/ixgbe_ethdev.c | 66 1 file changed, 40 insertions(+), 26 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 1462324..ef781ca 100644 --- a/

[dpdk-dev] [PATCH v2 27/42] net/i40evf: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/i40e/i40e_ethdev_vf.c | 31 --- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 7e48fea..cd9e51f 100644 --- a/drive

[dpdk-dev] [PATCH v2 26/42] net/i40e: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/i40e/i40e_ethdev.c | 36 ++-- drivers/net/i40e/i40e_fdir.c | 2 +- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index

[dpdk-dev] [PATCH v2 25/42] net/fm10k: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/fm10k/fm10k_ethdev.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index de0352e..94b4d40 100644 --- a/drivers/ne

[dpdk-dev] [PATCH v2 22/42] net/igb: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/e1000/igb_ethdev.c | 60 ++ 1 file changed, 38 insertions(+), 22 deletions(-) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index cc2c244..2bda4b3 100644 --- a/driv

[dpdk-dev] [PATCH v2 20/42] net/cxgbe: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/cxgbe/cxgbe_ethdev.c | 29 +++-- drivers/net/cxgbe/sge.c | 6 +++--- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/drivers/net/cxgbe/cxgbe_ethdev.c b/drivers/net/cxgbe/cxgbe_ethdev.c

[dpdk-dev] [PATCH v2 21/42] net/em: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/e1000/em_ethdev.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index ecefa56..599b9e0 100644 --- a/drivers/net/e1000/e

[dpdk-dev] [PATCH v2 19/42] net/bnxt: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/bnxt/bnxt_ethdev.c | 36 +++- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 6167443..5dc3ff0 100644 --- a/drivers/ne

[dpdk-dev] [PATCH v2 17/42] net/virtio: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/virtio/virtio_ethdev.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 78cb3e8..f0a0219 100644 --- a

[dpdk-dev] [PATCH v2 18/42] net/bnx2x: Don't use eth_driver

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/bnx2x/bnx2x_ethdev.c | 64 +++- drivers/net/bnx2x/bnx2x_rxtx.c | 2 +- 2 files changed, 45 insertions(+), 21 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_et

[dpdk-dev] [PATCH v2 15/42] net/pcap: use ethdev allocation helper for virtual devices

2017-04-11 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- drivers/net/pcap/rte_eth_pcap.c | 62 ++--- 1 file changed, 27 insertions(+), 35 deletions(-) diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c index 05cbd47..defb3b4 100644 --- a/drivers/net/pcap/rt

[dpdk-dev] [PATCH v2 16/42] ethdev: add PCI driver helpers

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck This adds the following helper intended to be used by rte_pci_driver implementations working with ethdev: - rte_eth_dev_pci_allocate - rte_eth_dev_pci_release - rte_eth_dev_pci_generic_probe - rte_eth_dev_pci_generic_remove Signed-off-by: Jan Blunck --- lib/librte_ether/Makef

[dpdk-dev] [PATCH v2 14/42] net/kni: use ethdev allocation helper for virtual devices

2017-04-11 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- drivers/net/kni/rte_eth_kni.c | 39 +++ 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/drivers/net/kni/rte_eth_kni.c b/drivers/net/kni/rte_eth_kni.c index e3ce572..8f90034 100644 --- a/drivers/net/kni/rte_eth_kni

[dpdk-dev] [PATCH v2 13/42] net/bonding: use ethdev allocation helper for virtual devices

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/bonding/rte_eth_bond_pmd.c | 20 +++- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index 2b1db0b..2ddcd07 100644 --- a/dr

[dpdk-dev] [PATCH v2 11/42] net/null: use ethdev allocation helper for virtual devices

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/null/rte_eth_null.c | 50 ++--- 1 file changed, 17 insertions(+), 33 deletions(-) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index 863fcc7..abf3ec7 100644 --- a/dr

[dpdk-dev] [PATCH v2 12/42] net/bonding: make bonding API call through EAL on create/free

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck To properly embed the generic rte_device into the rte_eth_dev this reworks the bonding API to call through rte_eal_vdev_init(). Signed-off-by: Jan Blunck --- drivers/net/bonding/rte_eth_bond_api.c | 171 +-- drivers/net/bonding/rte_eth_bond_args.c

[dpdk-dev] [PATCH v2 10/42] net/null: internalize eth_dev_null_create()

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck There is no need to export this API. Remaining users should use the rte_eal_vdev_init() function instead. Signed-off-by: Jan Blunck --- drivers/net/null/Makefile | 7 +- drivers/net/null/rte_eth_null.c | 4 +--- drivers/net/null/rte_eth_null.h

[dpdk-dev] [PATCH v2 09/42] app/test: don't short-circuit null device creation

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck A virtual device should get initialized through the rte_eal_vdev_init() function to properly initialize the driver. Signed-off-by: Jan Blunck --- drivers/net/null/rte_eth_null.c | 1 + test/test/test_link_bonding_rssconf.c | 3 ++- 2 files changed, 3 insertions(+), 1 del

[dpdk-dev] [PATCH v2 07/42] net/virtio: use ethdev allocation helper for virtual devices

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/virtio/virtio_user_ethdev.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c index 46276ee..361841a 100644 --- a

[dpdk-dev] [PATCH v2 08/42] net/af_packet: use ethdev allocation helper for virtual devices

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/af_packet/rte_eth_af_packet.c | 42 ++- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c index 77536e8..6f

[dpdk-dev] [PATCH v2 06/42] net/vhost: use ethdev allocation helper for virtual devices

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/vhost/rte_eth_vhost.c | 54 +++ 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index cdd8c31..9663e55 100644 ---

[dpdk-dev] [PATCH v2 05/42] net/tap: use ethdev allocation helper for virtual devices

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck --- drivers/net/tap/rte_eth_tap.c | 38 +- 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 698e14b..206a0d6 100644 --- a/drivers/net

[dpdk-dev] [PATCH v2 04/42] ether: add allocation helper for virtual drivers

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck This helper should be used by ethdev drivers supporting virtual devices to help allocating a new ethdev and properly filling the default fields. Signed-off-by: Jan Blunck --- lib/librte_ether/Makefile | 1 + lib/librte_ether/rte_ethdev_vdev.h | 85 +++

[dpdk-dev] [PATCH v2 03/42] net/nfp: use library function for DMA zone reserve

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck This driver can use the library function rte_eth_dma_zone_reserve() instead of duplicating the code. Signed-off-by: Jan Blunck --- drivers/net/nfp/nfp_net.c | 30 ++ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/drivers/net/nfp/nfp_

[dpdk-dev] [PATCH v2 02/42] eal: parse "driver" device argument before probing drivers

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck In some cases the virtual device name should be totally different than the driver being used for the device. Therefore lets parse the devargs for the "driver" argument before probing drivers in vdev_probe_all_drivers(). Signed-off-by: Jan Blunck --- lib/librte_eal/common/eal_c

[dpdk-dev] [PATCH v2 01/42] eal: add name field to generic device

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck This adds a name field to the generic struct rte_device. The EAL is checking for the name being populated when registering a device but doesn't enforce global unique names as this is left to the bus implementations. Signed-off-by: Jan Blunck --- lib/librte_eal/bsdapp/eal/eal_p

[dpdk-dev] [PATCH v5 12/12] event: use generic vdev for probe and remove

2017-04-11 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- drivers/event/octeontx/ssovf_evdev.c | 11 +++ drivers/event/skeleton/skeleton_eventdev.c | 10 -- drivers/event/sw/sw_evdev.c| 11 +-- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/drivers/event/octeo

[dpdk-dev] [PATCH v2 00/42] Remove struct eth_driver

2017-04-11 Thread Gaetan Rivet
I rebased the following work of Jan: This series is removing the PCI specific struct eth_driver from rte_ether. The PCI drivers are changed to use the newly introduced header-only helpers instead. Although the virtual drivers did not make use of the ethdev's driver field they are converted to use

[dpdk-dev] [PATCH v5 11/12] crypto: use generic vdev for probe and remove

2017-04-11 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 20 ++-- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 21 ++--- drivers/crypto/armv8/rte_armv8_pmd.c | 21 ++--- drivers/crypto/kasumi/rte_kasumi_pmd.c | 22 +

[dpdk-dev] [PATCH v5 10/12] net/kni: use generic vdev for probe and remove

2017-04-11 Thread Gaetan Rivet
Signed-off-by: Gaetan Rivet --- drivers/net/kni/rte_eth_kni.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/net/kni/rte_eth_kni.c b/drivers/net/kni/rte_eth_kni.c index 59205e7..e3ce572 100644 --- a/drivers/net/kni/rte_eth_kni.c +++ b/drivers/net/kni/rte_

[dpdk-dev] [PATCH v5 08/12] eal: make virtual bus use rte_vdev_device

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck This allows the virtual bus to be rescanned and probed by tracking the creation of rte_vdev_device. Signed-off-by: Jan Blunck Tested-by: Ferruh Yigit Acked-by: Shreyansh Jain --- lib/librte_eal/common/eal_common_vdev.c | 195 +--- 1 file changed,

[dpdk-dev] [PATCH v5 09/12] eal: make virtual driver probe and remove take rte_vdev_device

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck This is a preparation to embed the generic rte_device into the rte_eth_dev also for virtual devices. Signed-off-by: Jan Blunck --- drivers/crypto/null/null_crypto_pmd.c | 18 -- drivers/net/af_packet/rte_eth_af_packet.c | 11 ++- drivers/net/bonding

[dpdk-dev] [PATCH v5 06/12] eal: add virtual device name helper function

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck This adds the rte_vdev_device_name() helper function to retrieve the rte_vdev_device name which makes moving the name of the low-level device into struct rte_device easier in the future. Signed-off-by: Jan Blunck Acked-by: Shreyansh Jain --- lib/librte_eal/common/include/rte_

[dpdk-dev] [PATCH v5 07/12] eal: add virtual device arguments helper function

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck This adds the rte_vdev_device_args() helper function to prepare for changing the virtual drivers probe() functions take a rte_vdev_device pointer instead of the name+args strings. Signed-off-by: Jan Blunck --- lib/librte_eal/common/include/rte_vdev.h | 8 1 file chang

[dpdk-dev] [PATCH v5 05/12] eal: add struct rte_vdev_device

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck This adds the rte_vdev_device structure which embeds a generic rte_device. Signed-off-by: Jan Blunck Tested-by: Ferruh Yigit Acked-by: Shreyansh Jain --- lib/librte_eal/common/eal_common_vdev.c | 5 + lib/librte_eal/common/include/rte_vdev.h | 5 + 2 files changed,

[dpdk-dev] [PATCH v5 04/12] eal: Refactor vdev driver probe/remove

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck This is a preparation for the introduction of the struct rte_vdev_device. Signed-off-by: Jan Blunck Tested-by: Ferruh Yigit Acked-by: Shreyansh Jain --- lib/librte_eal/common/eal_common_vdev.c | 44 - 1 file changed, 33 insertions(+), 11 delet

[dpdk-dev] [PATCH v5 03/12] eal: remove unused rte_eal_dev_init()

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Signed-off-by: Jan Blunck Tested-by: Ferruh Yigit Acked-by: Shreyansh Jain --- lib/librte_eal/bsdapp/eal/eal.c | 3 --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 - lib/librte_eal/common/eal_common_dev.c | 6 -- lib/librte_eal/common/inc

[dpdk-dev] [PATCH v5 01/12] eal: probe new virtual bus after other bus devices

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck Also see commit f4ce209a8ce5 ("eal: postpone vdev initialization"). Signed-off-by: Jan Blunck --- lib/librte_eal/common/eal_common_bus.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_common_bus.c b/lib/librte_ea

[dpdk-dev] [PATCH v5 00/12] Rework vdev probing to use rte_bus infrastructure

2017-04-11 Thread Gaetan Rivet
I have rebased the work done by Jan to introduce the virtual device subsystem using the new rte_bus API. I also fixed a few outstanding compilation issues, related to PMDs introduced during this release. Additionally, a few virtual devices had not been ported to use the new rte_vdev_device that had

[dpdk-dev] [PATCH v5 02/12] eal: move virtual device probing into a bus

2017-04-11 Thread Gaetan Rivet
From: Jan Blunck This is a refactoring of the virtual device probing which moves into into a proper bus structure. Signed-off-by: Jan Blunck Tested-by: Ferruh Yigit Acked-by: Shreyansh Jain --- lib/librte_eal/common/eal_common_dev.c | 25 +- lib/librte_eal/common/eal_common_vdev

Re: [dpdk-dev] [PATCH] net/tap: add support for fixed mac addresses

2017-04-11 Thread Wiles, Keith
> On Apr 11, 2017, at 10:09 AM, Pascal Mazon wrote: > > Support for a fixed MAC address for testing with the last octet > incrementing by one for each interface defined with the new 'mac=fixed' > string on the --vdev option. The default option is still to randomize > the MAC address for each tap

[dpdk-dev] [PATCH v2 2/2] net/ark: report hardware status during PMD init

2017-04-11 Thread Ed Czeck
Expose additional fpga status registers. Report hardware status during PMD init. Signed-off-by: Ed Czeck --- drivers/net/ark/ark_ethdev.c | 9 + drivers/net/ark/ark_rqp.c| 6 ++ drivers/net/ark/ark_rqp.h| 4 +++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/

[dpdk-dev] [PATCH v2 1/2] net/ark: update packet Rx path to set mbuf time stamp field

2017-04-11 Thread Ed Czeck
Time stamp was carried in the packet meta data, but not place in the mbuf. The new time stamp field is the proper destination. Remove the setting of data offset since this is done by rte_pktmbuf_free() Signed-off-by: Ed Czeck --- drivers/net/ark/ark_ethdev_rx.c | 3 ++- 1 file changed, 2 insert

Re: [dpdk-dev] [PATCH] net/tap: add support for fixed mac addresses

2017-04-11 Thread Wiles, Keith
> On Apr 11, 2017, at 10:09 AM, Pascal Mazon wrote: > > Support for a fixed MAC address for testing with the last octet > incrementing by one for each interface defined with the new 'mac=fixed' > string on the --vdev option. The default option is still to randomize > the MAC address for each tap

Re: [dpdk-dev] [PATCH 2/2] net/ark: report hardware status during PMD init

2017-04-11 Thread Ed Czeck
On Mon, Apr 10, 2017 at 11:01 AM, Ferruh Yigit wrote: > On 4/10/2017 1:26 PM, Ed Czeck wrote: > > Expose additional fpga status registers and report > > conditions during PMD init > > > > > + if (ark->sysctrl.t32[3] != 0) { > > + if (ark_rqp_lasped(ark->rqpacing)) > > +

[dpdk-dev] [PATCH 2/2] net/mlx5: panic when destroying a queue in use

2017-04-11 Thread Nelio Laranjeiro
Since the queue release API does not allow failures (return value is void) and the flow API does not allow a queue to be released as long as a flow rule depends on it, the only rational decision to avoid undefined behavior is to panic in this situation. Signed-off-by: Nelio Laranjeiro Acked-by: A

[dpdk-dev] [PATCH 1/2] net/mlx5: fix flow queues array allocation

2017-04-11 Thread Nelio Laranjeiro
Flow queues array offset is not properly computed causing all sorts of issues. Address it by making the rte_flow structure less complex. Fixes: 360663e1df46 ("net/mlx5: prepare support for RSS action rule") Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_f

[dpdk-dev] [PATCH] net/ixgbe: fix duplicated check

2017-04-11 Thread Ferruh Yigit
Same check duplicated, updated check according what commend states. Coverity issue: 1407507 Fixes: 11777435c727 ("net/ixgbe: parse flow director filter") Signed-off-by: Ferruh Yigit --- drivers/net/ixgbe/ixgbe_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ne

[dpdk-dev] [PATCH] net/tap: add support for fixed mac addresses

2017-04-11 Thread Pascal Mazon
Support for a fixed MAC address for testing with the last octet incrementing by one for each interface defined with the new 'mac=fixed' string on the --vdev option. The default option is still to randomize the MAC address for each tap interface. Signed-off-by: Keith Wiles Signed-off-by: Pascal Ma

[dpdk-dev] [PATCH] net/i40e: fix to ensure vector mode is not used

2017-04-11 Thread Bernard Iremonger
In rx vector mode, the QinQ VLAN tag is not stripped. When hw_vlan_extend is set for QinQ ensure that rx vector mode is not selected. Fixes: ca74903b75cf ("net/i40e: extract non-x86 specific code from vector driver") Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_rxtx_vec_common.h

Re: [dpdk-dev] [PATCH] doc: fix build error in DPAA2 PMD guide

2017-04-11 Thread Ferruh Yigit
On 4/10/2017 5:54 AM, Shreyansh Jain wrote: > Signed-off-by: Shreyansh Jain > --- > doc/guides/nics/dpaa2.rst | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/doc/guides/nics/dpaa2.rst b/doc/guides/nics/dpaa2.rst > index 7d7a6c5..46225b6 100644 > --- a/doc/guides/nics/d

Re: [dpdk-dev] [PATCH] net/enic: remove initialization of some mbuf fields

2017-04-11 Thread Ferruh Yigit
On 4/11/2017 2:37 AM, John Daley wrote: > Remove initialization of next and nb_segs mbuf fields in the Rx path > since they are now initialized in the mbuf pool. > > See commit 8f094a9ac5d7 ("mbuf: set mbuf fields while in pool"). > > Signed-off-by: John Daley Applied to dpdk-next-net/master, t

Re: [dpdk-dev] [PATCH] net/mlx5: remove extra check on Rx

2017-04-11 Thread Ferruh Yigit
On 4/11/2017 1:46 PM, Nelio Laranjeiro wrote: > Removing this check improves performance as VLAN and CRC stripping are > enabled most of the time. > > Convert MLX5_CQE_VLAN_STRIPPED to network order to speed up the check > instead of doing it on the completion queue entry field. > > Signed-off-by

  1   2   3   >