Re: [dpdk-dev] [PATCH 2/2] net/mlx5: add Rx and Tx tuning parameters

2018-04-30 Thread Nélio Laranjeiro
On Sun, Apr 29, 2018 at 09:03:08PM +0300, Shahaf Shuler wrote: > A new ethdev API was exposed by > commit 3be82f5cc5e3 ("ethdev: support PMD-tuned Tx/Rx parameters") > > Enabling the PMD to provide default parameters in case no strict request > from application in order to improve the out of the b

Re: [dpdk-dev] [PATCH 1/2] net/mlx5: fix ethtool link setting call order

2018-04-30 Thread Nélio Laranjeiro
On Sun, Apr 29, 2018 at 09:03:07PM +0300, Shahaf Shuler wrote: > According to ethtool_link_setting API recommendation ETHTOOL_GLINKSETTINGS > should be called before ETHTOOL_GSET as the later one deprecated. > > Fixes: f47ba80080ab ("net/mlx5: remove kernel version check") > Cc: nelio.laranje...@6

Re: [dpdk-dev] [PATCH 0/4] support for write combining

2018-04-30 Thread Rafał Kozik
Hello Bruce, It should work because decision about kind of mapping is made in patch 3 based on PMD request. ENA use only one BAR in wc mode and two other without caching, therefore not making remap in igb_uio rather not spoil anything. I added patch 1 because this variable is provided also outsi

Re: [dpdk-dev] [PATCH v3 2/2] mem: revert to using flock() and add per-segment lockfiles

2018-04-30 Thread Burakov, Anatoly
On 28-Apr-18 10:38 AM, Andrew Rybchenko wrote: On 04/25/2018 01:36 PM, Anatoly Burakov wrote: The original implementation used flock() locks, but was later switched to using fcntl() locks for page locking, because fcntl() locks allow locking parts of a file, which is useful for single-file segme

Re: [dpdk-dev] [PATCH 0/4] support for write combining

2018-04-30 Thread Bruce Richardson
On Mon, Apr 30, 2018 at 10:07:07AM +0200, Rafał Kozik wrote: > Hello Bruce, > > It should work because decision about kind of mapping is made in patch > 3 based on PMD request. > > ENA use only one BAR in wc mode and two other without caching, > therefore not making remap in igb_uio rather not sp

Re: [dpdk-dev] [PATCH v4 3/9] mem: fix potential double close

2018-04-30 Thread Bruce Richardson
On Fri, Apr 27, 2018 at 06:07:04PM +0100, Anatoly Burakov wrote: > We were closing descriptor before checking if mapping has > failed, but if it did, we did a second close afterwards. Fix > it by moving closing descriptor to after we've done all error > checks. > > Coverity issue: 272560 > > Fixe

[dpdk-dev] [PATCH 1/2] examples/vhost: fix header copy to discontiguous desc buffer

2018-04-30 Thread Maxime Coquelin
In the loop to copy virtio-net header to the descriptor buffer, destination pointer was incremented instead of the source pointer. Coverity issue: 277240 Fixes: 82c93a567d3b ("examples/vhost: move to safe GPA translation API") Signed-off-by: Maxime Coquelin --- examples/vhost/virtio_net.c | 2 +

[dpdk-dev] [PATCH 0/2] Fix enqueueing vnet header in discontiguous decs buffer

2018-04-30 Thread Maxime Coquelin
This series fixes copying virtio net header to discontiguous descriptor buffer in VA space. The issue was spotted by Coverity for examples/vhost, but same issue was present in vhost-user library. Maxime Coquelin (2): examples/vhost: fix header copy to discontiguous desc buffer vhost: fix head

[dpdk-dev] [PATCH 2/2] vhost: fix header copy to discontiguous desc buffer

2018-04-30 Thread Maxime Coquelin
In the loop to copy virtio-net header to the descriptor buffer, destination pointer was incremented instead of the source pointer. Fixes: fb3815cc614d ("vhost: handle virtually non-contiguous buffers in Rx-mrg") Fixes: 6727f5a739b6 ("vhost: handle virtually non-contiguous buffers in Rx") Cc: sta.

[dpdk-dev] [PATCH] eal: check if hugedir write lock is already being held

2018-04-30 Thread Anatoly Burakov
At hugepage info initialization, EAL takes out a write lock on hugetlbfs directories, and drops it after the memory init is finished. However, in non-legacy mode, if "-m" or "--socket-mem" switches are passed, this leads to a deadlock because EAL tries to allocate pages (and thus take out a write l

[dpdk-dev] [PATCH] vhost/crypto: fix incorrect bracket location

2018-04-30 Thread Fan Zhang
Coverity issue: 277232 Coverity issue: 277237 Fixes: 3bb595ecd682 ("vhost/crypto: add request handler") Signed-off-by: Fan Zhang --- lib/librte_vhost/vhost_crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_cr

[dpdk-dev] [PATCH] vhost/crypto: fix bracket

2018-04-30 Thread Fan Zhang
Coverity issue: 233232 Coverity issue: 233237 Fixes: 3bb595ecd682 ("vhost/crypto: add request handler") Signed-off-by: Fan Zhang --- lib/librte_vhost/vhost_crypto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_cryp

Re: [dpdk-dev] [PATCH] vhost/crypto: fix bracket

2018-04-30 Thread Maxime Coquelin
On 04/30/2018 12:36 PM, Fan Zhang wrote: Coverity issue: 233232 Coverity issue: 233237 Fixes: 3bb595ecd682 ("vhost/crypto: add request handler") Signed-off-by: Fan Zhang --- lib/librte_vhost/vhost_crypto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Maxime Coque

Re: [dpdk-dev] [PATCH] vhost/crypto: fix incorrect bracket location

2018-04-30 Thread Maxime Coquelin
On 04/30/2018 12:31 PM, Fan Zhang wrote: Coverity issue: 277232 Coverity issue: 277237 Fixes: 3bb595ecd682 ("vhost/crypto: add request handler") Signed-off-by: Fan Zhang --- lib/librte_vhost/vhost_crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Maxime Coqu

Re: [dpdk-dev] [dpdk-web] [PATCH v2] update stable releases roadmap

2018-04-30 Thread Thomas Monjalon
25/04/2018 12:03, Luca Boccassi: > On Wed, 2018-04-25 at 09:33 +0100, Ferruh Yigit wrote: > > On 4/20/2018 4:52 PM, Aaron Conole wrote: > > > Kevin Traynor writes: > > > > On 04/18/2018 02:28 PM, Thomas Monjalon wrote: > > > > > 18/04/2018 14:28, Ferruh Yigit: > > > > > > On 4/18/2018 10:14 AM, Th

Re: [dpdk-dev] [v2, 2/6] eventdev: add APIs and PMD callbacks for crypto adapter

2018-04-30 Thread Gujjar, Abhinandan S
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Sunday, April 29, 2018 9:44 PM > To: Gujjar, Abhinandan S > Cc: hemant.agra...@nxp.com; akhil.go...@nxp.com; dev@dpdk.org; Vangati, > Narender ; Rao, Nikhil ; > Eads, Gage > Subject: Re: [v2,2/6] ev

Re: [dpdk-dev] [v2, 3/6] eventdev: add crypto adapter implementation

2018-04-30 Thread Gujjar, Abhinandan S
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Sunday, April 29, 2018 9:53 PM > To: Gujjar, Abhinandan S > Cc: hemant.agra...@nxp.com; akhil.go...@nxp.com; dev@dpdk.org; Vangati, > Narender ; Rao, Nikhil ; > Eads, Gage > Subject: Re: [v2,3/6] ev

Re: [dpdk-dev] [v2, 5/6] eventdev: add event crypto adapter to meson build system

2018-04-30 Thread Gujjar, Abhinandan S
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Sunday, April 29, 2018 9:55 PM > To: Gujjar, Abhinandan S > Cc: hemant.agra...@nxp.com; akhil.go...@nxp.com; dev@dpdk.org; Vangati, > Narender ; Rao, Nikhil ; > Eads, Gage > Subject: Re: [v2,5/6] ev

[dpdk-dev] [PATCH v2 1/2] mem: check if allocation size is too big

2018-04-30 Thread Anatoly Burakov
Mapping size is a 64-bit integer, but mmap() will accept size_t for size mappings. A user could request a mapping with an alignment, which would have overflown size_t, so check if (size + alignment) will overflow size_t. Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/eal_common_memory.

[dpdk-dev] [PATCH v2 2/2] mem: unmap unneeded space

2018-04-30 Thread Anatoly Burakov
When we ask to reserve virtual areas, we usually include alignment in the mapping size, and that memory ends up being wasted. Wasting a gigabyte of VA space while trying to reserve one gigabyte is pretty expensive on 32-bit, so after we're done mapping, unmap unneeded space. Signed-off-by: Anatoly

Re: [dpdk-dev] [v2, 5/6] eventdev: add event crypto adapter to meson build system

2018-04-30 Thread Jerin Jacob
-Original Message- > Date: Mon, 30 Apr 2018 11:21:38 + > From: "Gujjar, Abhinandan S" > To: Jerin Jacob > CC: "hemant.agra...@nxp.com" , > "akhil.go...@nxp.com" , "dev@dpdk.org" > , "Vangati, Narender" , "Rao, > Nikhil" , "Eads, Gage" > Subject: RE: [v2,5/6] eventdev: add event cr

Re: [dpdk-dev] [PATCH v3 2/2] mem: revert to using flock() and add per-segment lockfiles

2018-04-30 Thread Burakov, Anatoly
On 28-Apr-18 10:38 AM, Andrew Rybchenko wrote: On 04/25/2018 01:36 PM, Anatoly Burakov wrote: The original implementation used flock() locks, but was later switched to using fcntl() locks for page locking, because fcntl() locks allow locking parts of a file, which is useful for single-file segme

Re: [dpdk-dev] [v2, 6/6] doc: add event crypto adapter documentation

2018-04-30 Thread Gujjar, Abhinandan S
> -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Sunday, April 29, 2018 10:01 PM > To: Gujjar, Abhinandan S > Cc: hemant.agra...@nxp.com; akhil.go...@nxp.com; dev@dpdk.org; Vangati, > Narender ; Rao, Nikhil ; > Eads, Gage > Subject: Re: [v2,6/6] d

Re: [dpdk-dev] [PATCH v3 2/2] mem: revert to using flock() and add per-segment lockfiles

2018-04-30 Thread Maxime Coquelin
On 04/30/2018 01:31 PM, Burakov, Anatoly wrote: On 28-Apr-18 10:38 AM, Andrew Rybchenko wrote: On 04/25/2018 01:36 PM, Anatoly Burakov wrote: The original implementation used flock() locks, but was later switched to using fcntl() locks for page locking, because fcntl() locks allow locking par

[dpdk-dev] [PATCH v2 0/4] Clean up EAL runtime data paths

2018-04-30 Thread Anatoly Burakov
As has been suggested [1], all DPDK runtime paths should be put into a single place. This patchset accomplishes exactly that. If running as root, all files will be put under /var/run/dpdk/, otherwise they will be put under $XDG_RUNTIME_PATH/dpdk/, or, if that environment variable is not defined, a

[dpdk-dev] [PATCH v2 3/4] eal: add directory for DPDK runtime data

2018-04-30 Thread Anatoly Burakov
Currently, during runtime, DPDK will store a bunch of files here and there (in /var/run, /tmp or in $HOME). Fix it by creating a DPDK-specific runtime directory, under which all runtime data will be placed. The template for creating this runtime directory is the following: /dpdk// Where is set

[dpdk-dev] [PATCH v2 2/4] eal: rename function returning hugepage data path

2018-04-30 Thread Anatoly Burakov
The original name for this path was not too descriptive and confusing. Rename it to a more appropriate and descriptive name: it stores data about hugepages, so name it eal_hugepage_data_path(). Signed-off-by: Anatoly Burakov --- lib/librte_eal/common/eal_filesystem.h | 2 +- lib/librte_eal/li

[dpdk-dev] [PATCH v2 4/4] eal: move all runtime data into DPDK runtime dir

2018-04-30 Thread Anatoly Burakov
Fix all calls to functions in eal_filesystem to produce paths residing inside dedicated DPDK runtime directory. Signed-off-by: Anatoly Burakov --- lib/librte_eal/bsdapp/eal/eal.c| 2 + lib/librte_eal/common/eal_filesystem.h | 71 +- lib/librte_eal/linuxap

[dpdk-dev] [PATCH v2 1/4] eal: remove unused define

2018-04-30 Thread Anatoly Burakov
The define was a leftover from IVSHMEM library. Fixes: c711ccb30987 ("ivshmem: remove library and its EAL integration") Cc: david.march...@6wind.com Cc: sta...@dpdk.org Signed-off-by: Anatoly Burakov Reviewed-by: David Marchand --- lib/librte_eal/common/eal_filesystem.h | 2 -- 1 file changed,

[dpdk-dev] [PATCH v1] net/mlx4: fix CRC stripping capability report

2018-04-30 Thread Ophir Munk
There are two capabilities related to CRC stripping: 1. mlx4 HW capability to perform CRC stripping on a recieved packet. This capability is built in mlx4 HW. It should be returned by the API call mlx4_get_rx_queue_offloads(). 2. mlx4 driver capability to enable/disable HW CRC stripping. This capab

Re: [dpdk-dev] [PATCH 5/8 v4] raw/dpaa2_qdma: introduce the DPAA2 QDMA driver

2018-04-30 Thread Thomas Monjalon
24/04/2018 13:49, Nipun Gupta: > drivers/raw/dpaa2_qdma/dpaa2_qdma.c| 294 > + > drivers/raw/dpaa2_qdma/dpaa2_qdma.h| 66 + > drivers/raw/dpaa2_qdma/dpaa2_qdma_logs.h | 46 [...] > +install_headers('rte_pmd_dpaa2_qdma.h') I

Re: [dpdk-dev] [PATCH] eal: check if hugedir write lock is already being held

2018-04-30 Thread Shahaf Shuler
Monday, April 30, 2018 1:38 PM, Anatoly Burakov: > Cc: arybche...@solarflare.com; anatoly.bura...@intel.com > Subject: [dpdk-dev] [PATCH] eal: check if hugedir write lock is already being > held > > At hugepage info initialization, EAL takes out a write lock on hugetlbfs > directories, and drops i

Re: [dpdk-dev] [PATCH v2 1/2] mem: check if allocation size is too big

2018-04-30 Thread Bruce Richardson
On Mon, Apr 30, 2018 at 12:21:42PM +0100, Anatoly Burakov wrote: > Mapping size is a 64-bit integer, but mmap() will accept size_t for > size mappings. A user could request a mapping with an alignment, which > would have overflown size_t, so check if (size + alignment) will > overflow size_t. > >

Re: [dpdk-dev] [PATCH v2 2/2] mem: unmap unneeded space

2018-04-30 Thread Bruce Richardson
On Mon, Apr 30, 2018 at 12:21:43PM +0100, Anatoly Burakov wrote: > When we ask to reserve virtual areas, we usually include > alignment in the mapping size, and that memory ends up > being wasted. Wasting a gigabyte of VA space while trying to > reserve one gigabyte is pretty expensive on 32-bit, s

Re: [dpdk-dev] [PATCH] vhost/crypto: fix bracket

2018-04-30 Thread Thomas Monjalon
30/04/2018 12:36, Fan Zhang: > Coverity issue: 233232 > Coverity issue: 233237 > Fixes: 3bb595ecd682 ("vhost/crypto: add request handler") > > Signed-off-by: Fan Zhang 2 comments, Fan: 1/ I think it the v2 of a previous commit. Please update the patchwork status (superseded), use -v option for

[dpdk-dev] New RC needed for stablility?

2018-04-30 Thread Bruce Richardson
Hi Thomas, Ferruh, all, Initial testing on RC1 from our System Test and Validation shows a lot of defects/issues, and from the list it appears others may be seeing issues too. These issues, as well as causing test failures are blocking other tests from being run. We are also seeing some serious pe

Re: [dpdk-dev] New RC needed for stablility?

2018-04-30 Thread Thomas Monjalon
30/04/2018 14:57, Bruce Richardson: > Hi Thomas, Ferruh, all, > > Initial testing on RC1 from our System Test and Validation shows a lot of > defects/issues, and from the list it appears others may be seeing issues > too. These issues, as well as causing test failures are blocking other > tests fr

Re: [dpdk-dev] [PATCH] eal: check if hugedir write lock is already being held

2018-04-30 Thread Andrew Rybchenko
On 04/30/2018 01:38 PM, Anatoly Burakov wrote: At hugepage info initialization, EAL takes out a write lock on hugetlbfs directories, and drops it after the memory init is finished. However, in non-legacy mode, if "-m" or "--socket-mem" switches are passed, this leads to a deadlock because EAL tri

Re: [dpdk-dev] [PATCH v3 2/2] mem: revert to using flock() and add per-segment lockfiles

2018-04-30 Thread Andrew Rybchenko
On 04/30/2018 02:31 PM, Burakov, Anatoly wrote: On 28-Apr-18 10:38 AM, Andrew Rybchenko wrote: On 04/25/2018 01:36 PM, Anatoly Burakov wrote: The original implementation used flock() locks, but was later switched to using fcntl() locks for page locking, because fcntl() locks allow locking parts

Re: [dpdk-dev] [PATCH 1/2] eal: fix build with glibc < 2.16

2018-04-30 Thread Aaron Conole
Thomas Monjalon writes: > The fake getauxval function does not use its parameter. > So the compiler raised this error: > lib/librte_eal/common/eal_common_cpuflags.c:25:25: error: > unused parameter 'type' > > Fixes: 2ed9bf330709 ("eal: abstract away the auxiliary vector") > Cc: acon..

Re: [dpdk-dev] [PATCH 2/2] eal: fix build on FreeBSD

2018-04-30 Thread Aaron Conole
Thomas Monjalon writes: > The auxiliary vector read is implemented only for Linux. > It could be done with procstat_getauxv() for FreeBSD. > > Since the commit below, the auxiliary vector functions > are compiled for every architectures, including x86 > which is tested with FreeBSD. > > This patc

Re: [dpdk-dev] [PATCH] eal: check if hugedir write lock is already being held

2018-04-30 Thread Thomas Monjalon
30/04/2018 15:07, Andrew Rybchenko: > On 04/30/2018 01:38 PM, Anatoly Burakov wrote: > > At hugepage info initialization, EAL takes out a write lock on > > hugetlbfs directories, and drops it after the memory init is > > finished. However, in non-legacy mode, if "-m" or "--socket-mem" > > switches

Re: [dpdk-dev] [PATCH] mem: fix heap size not set on init

2018-04-30 Thread Thomas Monjalon
25/04/2018 15:42, Anatoly Burakov: > When heap initializes, we need to add already allocated segments > onto the heap. However, in doing that, we never increased total > heap size. Fix it by adding segment length to total heap length > when initializing the heap. > > Fixes: 66cc45e293ed ("mem: rep

[dpdk-dev] [PATCH] examples/flow_classify: fix failure in port_init function

2018-04-30 Thread Bernard Iremonger
The port_init function calls the rte_eth_dev_is_valid_port function. This function now returns 1 if the port state is attached. A return value of 1 now means a valid port. Fixes: a9dbe1802226 ("fix ethdev port id validation") Signed-off-by: Bernard Iremonger --- examples/flow_classify/flow_class

Re: [dpdk-dev] [PATCH] examples/flow_classify: fix failure in port_init function

2018-04-30 Thread Thomas Monjalon
30/04/2018 15:43, Bernard Iremonger: > The port_init function calls the rte_eth_dev_is_valid_port function. > This function now returns 1 if the port state is attached. > A return value of 1 now means a valid port. > > Fixes: a9dbe1802226 ("fix ethdev port id validation") > Signed-off-by: Bernard

Re: [dpdk-dev] [PATCH] eal/service: remove experimental tags

2018-04-30 Thread Alejandro Lucero
I just wanted to say I'm using the functionality for debugging NFP firmware and getting some useful information from the device. I did not plan to have this upstream, but after this patch for removing the experimental tag, I think it would be a good idea. Thanks! On Wed, Apr 25, 2018 at 1:58 PM,

Re: [dpdk-dev] [PATCH v5 0/4] ethdev additions to support tunnel encap/decap

2018-04-30 Thread Thomas Monjalon
24/04/2018 18:26, Thomas Monjalon: > Hi, > > > Declan Doherty (4): > > ethdev: Add tunnel encap/decap actions > > ethdev: Add group JUMP action > > ethdev: add mark flow item to rte_flow_item_types > > ethdev: add shared counter support to rte_flow > > No specific comment. > > It is only

Re: [dpdk-dev] [PATCH] net/vhost: Initialise vid to -1

2018-04-30 Thread Loftus, Ciara
> > On 04/27/2018 04:19 PM, Ciara Loftus wrote: > > rte_eth_vhost_get_vid_from_port_id returns a value of 0 if called before > > the first call to the new_device callback. A vid value >=0 suggests the > > device is active which is not the case in this instance. Initialise vid > > to a negative val

[dpdk-dev] nfp doing its own pci_read_config

2018-04-30 Thread Stephen Hemminger
Why is Netronome driver using its own version of existing rte_pci_read_config? And hard coding magic numbers for offsets. This shows up as Coverity error *** CID 277243: Error handling issues

[dpdk-dev] [PATCH] net/i40e: revert default PF PMD device name

2018-04-30 Thread Declan Doherty
Changes introduced by e0cb96204b71 modified the default name generated for the i40e PF PMD, this patch reverts the default name to the original PCI BDBF. Fixes: e0cb96204b71 ("net/i40e: add support for representor ports") Signed-off-by: Declan Doherty --- drivers/net/i40e/i40e_ethdev.c | 8 +++--

[dpdk-dev] [PATCH 2/3] net/ixgbe: initialise nb_representor_ports value

2018-04-30 Thread Declan Doherty
Initialise rte_ethdev_args nb_representor_ports to zero to handle the case where no devargs are passed to the IXGBE PF on device probe, so that there is no invalid attempts to create representor ports. Coverity Issue: 277231 Fixes: cf80ba6e2038 ("net/ixgbe: add support for representor ports") Sig

[dpdk-dev] [PATCH 1/3] net/ixgbe: revert default PF PMD device name

2018-04-30 Thread Declan Doherty
Changes introduced by cf80ba6e2038 modified the default name generated for the IXGBE PF PMD, this patch reverts the default name to the original PCI BDBF. Fixes: cf80ba6e2038 ("net/ixgbe: add support for representor ports") Signed-off-by: Declan Doherty --- drivers/net/ixgbe/ixgbe_ethdev.c | 8 +

[dpdk-dev] [PATCH 3/3] net/ixgbe: add null pointer check for pf_ethdev

2018-04-30 Thread Declan Doherty
Add NULL parameter check for rte_eth_dev_allocated() API call to eth_ixgbe_pci_probe(). Coverity Issue: 277216 Fixes: cf80ba6e2038 ("net/ixgbe: add support for representor ports") Signed-off-by: Declan Doherty --- drivers/net/ixgbe/ixgbe_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff -

[dpdk-dev] pthread_barrier_deadlock in -rc1 (was: "Re: [PATCH v3 0/5] fix control thread affinities")

2018-04-30 Thread Maxime Coquelin
Hi Olivier, On 04/24/2018 04:46 PM, Olivier Matz wrote: Some parts of dpdk use their own management threads. Most of the time, the affinity of the thread is not properly set: it should not be scheduled on the dataplane cores, because interrupting them can cause packet losses. This patchset intr

[dpdk-dev] [PATCH] vhost: improve dirty pages logging performance

2018-04-30 Thread Maxime Coquelin
This patch caches all dirty pages logging until the used ring index is updated. These dirty pages won't be accessed by the guest as long as the host doesn't give them back to it by updating the index. The goal of this optimization is to fix a performance regression introduced when the vhost librar

Re: [dpdk-dev] pthread_barrier_deadlock in -rc1 (was: "Re: [PATCH v3 0/5] fix control thread affinities")

2018-04-30 Thread Olivier Matz
Hi Maxime, Le 30 avril 2018 17:45:52 GMT+02:00, Maxime Coquelin a écrit : >Hi Olivier, > >On 04/24/2018 04:46 PM, Olivier Matz wrote: >> Some parts of dpdk use their own management threads. Most of the >time, >> the affinity of the thread is not properly set: it should not be >scheduled >> on th

[dpdk-dev] [PATCH] net/vmxnet3: convert to new rx offload api

2018-04-30 Thread Louis Luo
Ethdev RX offloads API has changed since: commit ce17eddefc20 ("ethdev: introduce Rx queue offloads API") This patch adopts the new RX Offload API in vmxnet3 driver. Signed-off-by: Louis Luo --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 61 ++-- 1 file changed, 45 i

Re: [dpdk-dev] [PATCH] net/vmxnet3: convert to new rx offload api

2018-04-30 Thread Yong Wang
> -Original Message- > From: Louis Luo [mailto:llo...@vmware.com] > Sent: Monday, April 30, 2018 3:21 PM > To: Yong Wang > Cc: dev@dpdk.org; Louis Luo > Subject: [PATCH] net/vmxnet3: convert to new rx offload api > > Ethdev RX offloads API has changed since: commit ce17eddefc20 > ("ethde

[dpdk-dev] [PATCH 03/12] net/bnxt: rename driver version from Cumulus to NetXtreme

2018-04-30 Thread Ajit Khaparde
From: Scott Branden Rename driver version from "Broadcom Cumulus driver" to "Broadcom NetXtreme driver" to reflect this driver is applicable to NetXtreme family beyond Cumulus. Signed-off-by: Scott Branden Reviewed-by: Ajit Kumar Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 2 +- 1 file chan

[dpdk-dev] [PATCH 04/12] net/bnxt: return EINVAL instead of ENOSPC on invalid max ring

2018-04-30 Thread Ajit Khaparde
From: Jay Ding Return EINVAL instead of ENOSPC when invalid queue_idx passed in during rx and tx queue_setup_op routines. Signed-off-by: Jay Ding Signed-off-by: Scott Branden Reviewed-by: Ray Jui Reviewed-by: Ajit Kumar Khaparde --- drivers/net/bnxt/bnxt_rxq.c | 2 +- drivers/net/bnxt/bnxt_

[dpdk-dev] [PATCH 01/12] net/bnxt: add support for lsc interrupt event

2018-04-30 Thread Ajit Khaparde
From: Qingmin Liu Add support to bnxt driver to register RTE_ETH_EVENT_INTR_LSC event and monitor physical link status. Signed-off-by: Qingmin Liu Signed-off-by: Scott Branden Signed-off-by: Ajit Kumar Khaparde Reviewed-by: Randy Schacher --- drivers/net/bnxt/bnxt_ethdev.c | 5 + 1 file

[dpdk-dev] [PATCH 02/12] net/bnxt: rename function checking MAC address

2018-04-30 Thread Ajit Khaparde
From: Scott Branden rename check_zero_bytes to bnxt_check_zero_bytes to match proper prefix. Signed-off-by: Scott Branden Signed-off-by: Ajit Kumar Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 2 +- drivers/net/bnxt/bnxt_filter.c | 8 +--- drivers/net/bnxt/bnxt_filter.h | 2 +- 3 files c

[dpdk-dev] [PATCH 06/12] net/bnxt: set MTU in dev config for jumbo packets

2018-04-30 Thread Ajit Khaparde
From: Qingmin Liu MTU setting does not take effect after rte_eth_dev_configure is called with jumbo enable unless it is configured using the set_mtu dev_op. Fixes: daef48efe5e5 ("net/bnxt: support set MTU") Cc: sta...@dpdk.org Signed-off-by: Qingmin Liu Signed-off-by: Scott Branden Reviewed-b

[dpdk-dev] [PATCH 05/12] net/bnxt: Validate structs and pointers before use

2018-04-30 Thread Ajit Khaparde
From: Rahul Gupta Validate pointers aren't pointing to uninitialized areas including txq and rxq before using them to avoid bnxt driver from crashing. Signed-off-by: Rahul Gupta Signed-off-by: Jay Ding Signed-off-by: Scott Branden Reviewed-by: Ray Jui Reviewed-by: Ajit Kumar Khaparde Review

[dpdk-dev] [PATCH 07/12] net/bnxt: fix MTU calculation

2018-04-30 Thread Ajit Khaparde
We were not considering the case of nested VLANs while calculating MTU. This patch takes care of the same. Fixes: daef48efe5e5 ("net/bnxt: support set MTU") Cc: sta...@dpdk.org Signed-off-by: Qingmin Liu Signed-off-by: Scott Branden Reviewed-by: Jay Ding Reviewed-by: Ajit Kumar Khaparde Revie

[dpdk-dev] [PATCH 08/12] net/bnxt: return error if init is not complete before accessing stats

2018-04-30 Thread Ajit Khaparde
From: Jay Ding return error if init is not complete before accessing stats. Fixes: ed2ced6fe927 ("net/bnxt: check initialization before accessing stats") Cc: sta...@dpdk.org Signed-off-by: Jay Ding Signed-off-by: Scott Branden Reviewed-by: Ajit Kumar Khaparde Reviewed-by: Randy Schacher Sig

[dpdk-dev] [PATCH 00/12] bnxt patchset

2018-04-30 Thread Ajit Khaparde
Patchset against dpdk-next-net. Please apply. Ajit Khaparde (3): net/bnxt: fix MTU calculation net/bnxt: fix to reset status of initialization net/bnxt: fix usage of vnic id Jay Ding (2): net/bnxt: return EINVAL instead of ENOSPC on invalid max ring net/bnxt: return error if init is not

[dpdk-dev] [PATCH 10/12] net/bnxt: fix rx mbuf and agg ring leak in dev stop

2018-04-30 Thread Ajit Khaparde
From: Xiaoxin Peng In the start/stop_op operation, mbufs allocated for rings were not freed 1) add bnxt_free_tx_mbuf/bnxt_free_rx_mbuf in bnxt_dev_stop_op to free MBUF before freeing the rings. 2) MBUF allocation and free routines were not in sync. Allocation uses the ring->ring_size inclu

[dpdk-dev] [PATCH 09/12] net/bnxt: fix to reset status of initialization

2018-04-30 Thread Ajit Khaparde
clear flag on stop at proper location to avoid race conditions. Fixes: ed2ced6fe927 ("net/bnxt: check initialization before accessing stats") Cc: sta...@dpdk.org Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[dpdk-dev] [PATCH 12/12] net/bnxt: clear HWRM sniffer list for PFs

2018-04-30 Thread Ajit Khaparde
From: Randy Schacher Clear HWRM sniffer list for DPDK PFs so that VFs on DPDK PFs initialize successfully. DPDK PF driver does not handle HWRM commands from VFs. Signed-off-by: Randy Schacher Signed-off-by: Scott Branden Reviewed-by: Ajit Kumar Khaparde --- drivers/net/bnxt/bnxt_hwrm.c | 9 +

[dpdk-dev] [PATCH 11/12] net/bnxt: fix usage of vnic id

2018-04-30 Thread Ajit Khaparde
VNIC ID returned by the FW is a 16-bit field. We are incorrectly using it as a 32-bit value in few places. This patch corrects that. Fixes: daef48efe5e5 ("net/bnxt: support set MTU") Cc: sta...@dpdk.org Signed-off-by: Ajit Khaparde Signed-off-by: Scott Branden Reviewed-by: Michael Wildt Review

Re: [dpdk-dev] [PATCH 5/8 v4] raw/dpaa2_qdma: introduce the DPAA2 QDMA driver

2018-04-30 Thread Nipun Gupta
> -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Monday, April 30, 2018 6:05 PM > To: Nipun Gupta > Cc: dev@dpdk.org; Shreyansh Jain ; Hemant > Agrawal > Subject: Re: [dpdk-dev] [PATCH 5/8 v4] raw/dpaa2_qdma: introduce the > DPAA2 QDMA driver > > 24/04/

Re: [dpdk-dev] [PATCH 5/8 v4] raw/dpaa2_qdma: introduce the DPAA2 QDMA driver

2018-04-30 Thread Nipun Gupta
> -Original Message- > From: Nipun Gupta > Sent: Tuesday, May 1, 2018 11:44 AM > To: 'Thomas Monjalon' > Cc: dev@dpdk.org; Shreyansh Jain ; Hemant > Agrawal > Subject: RE: [dpdk-dev] [PATCH 5/8 v4] raw/dpaa2_qdma: introduce the > DPAA2 QDMA driver > > > > > -Original Message-