Re: [dpdk-dev] [PATCH 2/3] net/cxgbe: remove unused variable usage

2017-01-25 Thread Rahul Lakkireddy
On Wednesday, January 01/25/17, 2017 at 17:43:57 +0530, Ferruh Yigit wrote: > On 1/24/2017 8:48 PM, Emmanuel Roullit wrote: > > Found with clang static analysis: > > drivers/net/cxgbe/sge.c:900:3: warning: > > Value stored to 'in_use' is never read > > in_use += q->size; > > ^

[dpdk-dev] [PATCH] net/virtio-user: check value returned from malloc

2017-01-25 Thread Jianfeng Tan
Value returned from malloc is not checked for errors before being used. This patch fixes following coverity issue. static struct vhost_memory_kernel * prepare_vhost_memory_kernel(void) { ... vm = malloc(sizeof(struct vhost_memory_kernel) + max_region

Re: [dpdk-dev] [PATCH v4 1/6] eventdev: introduce event driven programming model

2017-01-25 Thread Eads, Gage
> -Original Message- > From: Eads, Gage > Sent: Wednesday, January 25, 2017 10:54 AM > To: Richardson, Bruce ; Jerin Jacob > ; dev@dpdk.org > Cc: thomas.monja...@6wind.com; hemant.agra...@nxp.com; Van Haaren, > Harry ; McDaniel, Timothy > > Subject: RE: [dpdk-dev] [PATCH v4 1/6]

Re: [dpdk-dev] rte_ring features in use (or not)

2017-01-25 Thread Wiles, Keith
> On Jan 25, 2017, at 9:57 AM, Richardson, Bruce > wrote: > > On Wed, Jan 25, 2017 at 03:59:55PM +, Wiles, Keith wrote: >> >> >> Sent from my iPhone >> >>> On Jan 25, 2017, at 7:48 AM, Bruce Richardson >>> wrote: >>> On Wed, Jan 25, 2017 at 01:54:04PM +, Bruce Richardson wrot

Re: [dpdk-dev] [RFC 00/23] Refactor eal_init to remove panic() calls

2017-01-25 Thread Aaron Conole
Thomas Monjalon writes: > Hi Aaron, > > 2016-12-30 10:25, Aaron Conole: >> In many cases, it's enough to simply let the application know that the >> call to initialize DPDK has failed. A complete halt can then be >> decided by the application based on error returned (and the app could >> even at

Re: [dpdk-dev] [PATCH v2] mk: suppress error for reference of packed members

2017-01-25 Thread Emmanuel Roullit
Hi Thomas, Thanks for the hints. I will improve the patch and resubmit. Comments are present inline. Regards, - Emmanuel On Wed, Jan 25, 2017 at 11:08 AM, Thomas Monjalon wrote: > 2017-01-24 22:04, Emmanuel Roullit: > > Found with clang build: > > error: taking address of packed member 'mlock

Re: [dpdk-dev] [PATCH v6 2/2] kni: Use bulk functions to allocate and free mbufs

2017-01-25 Thread Ferruh Yigit
On 1/19/2017 4:46 AM, Sergey Vyazmitinov wrote: > Optimized kni_allocate_mbufs and kni_free_mbufs by using mbuf > bulk functions. This can improve performance more than two times. > > Signed-off-by: Sergey Vyazmitinov > --- > v5: > * use rte_pktmbuf_free_bulk for removing packets which was not >

Re: [dpdk-dev] [PATCH v6 0/2] kni: use bulk functions to allocate and free mbufs

2017-01-25 Thread Ferruh Yigit
On 1/19/2017 4:46 AM, Sergey Vyazmitinov wrote: > Optimized kni_allocate_mbufs and kni_free_mbufs by using mbuf bulk functions Hi Sergey, Although I found this patch and its idea useful, performance test result is showing a performance lose after this patch. In my test setup [1] the performance

Re: [dpdk-dev] rte_ring features in use (or not)

2017-01-25 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Bruce Richardson > Sent: Wednesday, January 25, 2017 4:58 PM > To: Wiles, Keith > Cc: Olivier MATZ ; dev@dpdk.org > Subject: Re: [dpdk-dev] rte_ring features in use (or not) > > On Wed, Jan 25, 2017 at 03:59:55P

Re: [dpdk-dev] rte_ring features in use (or not)

2017-01-25 Thread Bruce Richardson
On Wed, Jan 25, 2017 at 03:59:55PM +, Wiles, Keith wrote: > > > Sent from my iPhone > > > On Jan 25, 2017, at 7:48 AM, Bruce Richardson > > wrote: > > > >> On Wed, Jan 25, 2017 at 01:54:04PM +, Bruce Richardson wrote: > >>> On Wed, Jan 25, 2017 at 02:20:52PM +0100, Olivier MATZ wrote:

Re: [dpdk-dev] [PATCH v4 1/6] eventdev: introduce event driven programming model

2017-01-25 Thread Eads, Gage
> -Original Message- > From: Richardson, Bruce > Sent: Wednesday, January 25, 2017 10:36 AM > To: Eads, Gage ; Jerin Jacob > ; dev@dpdk.org > Cc: thomas.monja...@6wind.com; hemant.agra...@nxp.com; Van Haaren, > Harry ; McDaniel, Timothy > > Subject: RE: [dpdk-dev] [PATCH v4 1/6]

Re: [dpdk-dev] rte_ring features in use (or not)

2017-01-25 Thread Stephen Hemminger
On Wed, 25 Jan 2017 14:20:52 +0100 Olivier MATZ wrote: > > * Who uses the watermarks feature as is? I know we have a sample app > > that uses it, but there are better ways I think to achieve the same > > goal while simplifying the ring implementation. Rather than have a > > set watermark on e

Re: [dpdk-dev] [PATCH v4 1/6] eventdev: introduce event driven programming model

2017-01-25 Thread Richardson, Bruce
> -Original Message- > From: Eads, Gage > Sent: Wednesday, January 25, 2017 4:32 PM > To: Jerin Jacob ; dev@dpdk.org > Cc: thomas.monja...@6wind.com; Richardson, Bruce > ; hemant.agra...@nxp.com; Van Haaren, Harry > ; McDaniel, Timothy > > Subject: RE: [dpdk-dev] [PATCH v4 1/6] eventdev:

Re: [dpdk-dev] [PATCH v4 1/6] eventdev: introduce event driven programming model

2017-01-25 Thread Eads, Gage
Hi Jerin, See the bottom of this email for a proposed tweak to the rte_event_enqueue_burst() return value. > -Original Message- > From: Jerin Jacob [mailto:jerin.ja...@caviumnetworks.com] > Sent: Wednesday, December 21, 2016 3:25 AM > To: dev@dpdk.org > Cc: thomas.monja...@6wind.com

Re: [dpdk-dev] rte_ring features in use (or not)

2017-01-25 Thread Wiles, Keith
Sent from my iPhone > On Jan 25, 2017, at 7:48 AM, Bruce Richardson > wrote: > >> On Wed, Jan 25, 2017 at 01:54:04PM +, Bruce Richardson wrote: >>> On Wed, Jan 25, 2017 at 02:20:52PM +0100, Olivier MATZ wrote: >>> On Wed, 25 Jan 2017 12:14:56 +, Bruce Richardson >>> wrote: Hi al

Re: [dpdk-dev] [PATCH v4 0/4] Introduce new performance test application

2017-01-25 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Slawomir > Mrozowicz > Sent: Wednesday, January 25, 2017 4:28 PM > To: dev@dpdk.org > Cc: Mrozowicz, SlawomirX > Subject: [dpdk-dev] [PATCH v4 0/4] Introduce new performance test > application > ... > > Declan D

Re: [dpdk-dev] [PATCHv6 16/33] drivers/pool/dpaa2: adding hw offloaded mempool

2017-01-25 Thread Ferruh Yigit
On 1/25/2017 3:29 PM, Ferruh Yigit wrote: > On 1/24/2017 5:28 PM, Thomas Monjalon wrote: >> 2017-01-24 20:07, Hemant Agrawal: >>> On 1/24/2017 4:19 PM, Ferruh Yigit wrote: On 1/24/2017 9:12 AM, Shreyansh Jain wrote: > On Monday 23 January 2017 11:04 PM, Ferruh Yigit wrote: >> On 1/23/2

Re: [dpdk-dev] [PATCHv6 16/33] drivers/pool/dpaa2: adding hw offloaded mempool

2017-01-25 Thread Ferruh Yigit
On 1/24/2017 5:28 PM, Thomas Monjalon wrote: > 2017-01-24 20:07, Hemant Agrawal: >> On 1/24/2017 4:19 PM, Ferruh Yigit wrote: >>> On 1/24/2017 9:12 AM, Shreyansh Jain wrote: On Monday 23 January 2017 11:04 PM, Ferruh Yigit wrote: > On 1/23/2017 11:59 AM, Hemant Agrawal wrote: >> +# lib

Re: [dpdk-dev] [PATCHv6 16/33] drivers/pool/dpaa2: adding hw offloaded mempool

2017-01-25 Thread Neil Horman
On Wed, Jan 25, 2017 at 01:34:47PM +, Shreyansh Jain wrote: > > > > -Original Message- > > From: Neil Horman [mailto:nhor...@tuxdriver.com] > > Sent: Wednesday, January 25, 2017 5:53 PM > > To: Thomas Monjalon > > Cc: Hemant Agrawal ; Ferruh Yigit > > ; Shreyansh Jain ; > > dev@dpdk.

Re: [dpdk-dev] Understanding of Acked-By

2017-01-25 Thread Thomas Monjalon
2017-01-25 13:53, Van Haaren, Harry: > There was an idea (from Thomas) to better document the Acked-by and > Reviewed-By in the above thread, which I think is worth doing to make the > process clearer. I'll kick off a thread*, and offer to submit a patch for the > documentation when a consensus

Re: [dpdk-dev] rte_ring features in use (or not)

2017-01-25 Thread Bruce Richardson
On Wed, Jan 25, 2017 at 01:54:04PM +, Bruce Richardson wrote: > On Wed, Jan 25, 2017 at 02:20:52PM +0100, Olivier MATZ wrote: > > On Wed, 25 Jan 2017 12:14:56 +, Bruce Richardson > > wrote: > > > Hi all, > > > > > > while looking at the rte_ring code, I'm wondering if we can simplify > >

Re: [dpdk-dev] [PATCH v3] net/ixgbe:fix max packet length in ixgbevf

2017-01-25 Thread Ferruh Yigit
On 1/25/2017 1:42 AM, Dai, Wei wrote: >> -Original Message- >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Dai, Wei >> Sent: Wednesday, January 25, 2017 9:40 AM >> To: Yuanhan Liu ; Yi Zhang >> >> Cc: Zhang, Helin ; Ananyev, Konstantin >> ; dev@dpdk.org; Lu, Wenzhuo >> >> Subject

Re: [dpdk-dev] [PATCH v2] ethdev: fix multi-process NULL dereference crashes

2017-01-25 Thread Remy Horton
On 25/01/2017 14:31, Thomas Monjalon wrote: 2017-01-25 14:02, Remy Horton: [..] Self-NAK: Condition is now tautology on code path that was causing crashes What do you mean exactly? There is an if(rte_eal_process_type() == RTE_PROC_PRIMARY) in a calling function, so the one my patch was in

[dpdk-dev] [PATCH v5 3/3] app/testpmd: fix port stop

2017-01-25 Thread Bernard Iremonger
The rte_eth_dev_stop function is not called if the port_status is not RTE_PORT_STARTED. This can happen if the rte_eth_dev_start function is called directly, ie not through the start_port function. Make sure rte_eth_dev_stop is always called in stop_port function. Fixes: ce8d561418d4 ("app/testpm

[dpdk-dev] [PATCH v5 1/3] net/i40e: fix segmentation fault in close

2017-01-25 Thread Bernard Iremonger
Change the order of releasing the vsi's. Release the vmdq vsi's first, then release the main vsi. Fixes: 4861cde46116 ("i40e: new poll mode driver") CC: sta...@dpdk.org Signed-off-by: Bernard Iremonger Acked-by: Jingjing Wu --- drivers/net/i40e/i40e_ethdev.c | 14 -- 1 file change

[dpdk-dev] [PATCH v5 2/3] app/testpmd: add command to configure VMDq

2017-01-25 Thread Bernard Iremonger
Add the following command to configure VMDq: port config vmdq Add the following command to set number of pools: set nbpool Add new commands to testpmd user guide. Signed-off-by: Bernard Iremonger --- app/test-pmd/cmdline.c | 72 - app/test-pmd/config.c

[dpdk-dev] [PATCH v5 0/3] net/i40e: fix segmentation fault

2017-01-25 Thread Bernard Iremonger
Changes in v5: Rebase to latest dpdk-next-net Reworked init_port_vmdq_config() function in testpmd. Added patch 3, fix to stop_port() function in testpmd. Changes in v4: Rebase to latest dpdk-next-net Replaced I40E_ERR_BAD_PTR with -EFAULT. Changes in v3 Fix checkpatch warning in testpmd.c Tidy

[dpdk-dev] [PATCH v4 4/4] doc: describe new performance test application

2017-01-25 Thread Slawomir Mrozowicz
Add documentation to describe using the new performance test application. Signed-off-by: Slawomir Mrozowicz Signed-off-by: Piotr Azarewicz --- v4 changes: - split the documentation to separate patch --- doc/guides/rel_notes/release_17_02.rst | 5 + doc/guides/tools/cryptoperf.rst| 397

[dpdk-dev] [PATCH v4 3/4] app/crypto-perf: add test vectors files

2017-01-25 Thread Slawomir Mrozowicz
Add test vectors example files to the performance test application. Signed-off-by: Marcin Kerlin --- v4 changes: - split the test vectors files to separate patch --- app/test-crypto-perf/data/aes_cbc_128_sha.data | 503 app/test-crypto-perf/data/aes_cbc_192_sha.data | 50

Re: [dpdk-dev] [PATCH v2] ethdev: fix multi-process NULL dereference crashes

2017-01-25 Thread Thomas Monjalon
2017-01-25 14:02, Remy Horton: > > On 24/01/2017 15:01, Remy Horton wrote: > > Secondary processes were blanket zeroing ethernet device memory, > > resulting in NULL dereference crashes in multi-process setups. > > > > Fixes: 7f95f78a8aea ("ethdev: clear data when allocating device") > > > > Signe

[dpdk-dev] [PATCH v4 1/4] cryptodev: add functions to retrieve device info

2017-01-25 Thread Slawomir Mrozowicz
This patch adds helper functions for new performance application which provide identifiers and number of crypto device and provide and check capabilities available for defined device and algorithm. The performance application can be used to measure throughput and latency of cryptography operation p

[dpdk-dev] [PATCH v4 0/4] Introduce new performance test application

2017-01-25 Thread Slawomir Mrozowicz
This patchset introduce new application which allows measuring performance parameters of PMDs available in crypto tree. The goal of this application is to replace existing performance tests in app/test. Parameters available are: throughput (--ptest throughput) and latency (--ptest latency). User ca

Re: [dpdk-dev] [PATCH v7 00/11] crypto/scheduler: add driver for scheduler crypto pmd

2017-01-25 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of De Lara Guarch, > Pablo > Sent: Tuesday, January 24, 2017 4:30 PM > To: Zhang, Roy Fan; dev@dpdk.org > Cc: Doherty, Declan > Subject: Re: [dpdk-dev] [PATCH v7 00/11] crypto/scheduler: add driver for > scheduler cr

Re: [dpdk-dev] [PATCH v2] maintainers: add crypto scheduler PMD maintainer

2017-01-25 Thread De Lara Guarch, Pablo
> -Original Message- > From: Zhang, Roy Fan > Sent: Wednesday, January 25, 2017 10:59 AM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo > Subject: [PATCH v2] maintainers: add crypto scheduler PMD maintainer > > Signed-off-by: Fan Zhang Applied to dpdk-next-crypto. Thanks, Pablo

Re: [dpdk-dev] [PATCH v2] ethdev: fix multi-process NULL dereference crashes

2017-01-25 Thread Remy Horton
On 24/01/2017 15:01, Remy Horton wrote: Secondary processes were blanket zeroing ethernet device memory, resulting in NULL dereference crashes in multi-process setups. Fixes: 7f95f78a8aea ("ethdev: clear data when allocating device") Signed-off-by: Remy Horton Self-NAK: Condition is now tau

Re: [dpdk-dev] [PATCH v2] net/i40e: fix x86 vPMD Rx checksum flag

2017-01-25 Thread Ferruh Yigit
On 1/24/2017 7:06 PM, Qi Zhang wrote: > When no error reported in Rx descriptor, we should set > CKSUM_GOOD flag before return. > > Fixes: 9966a00a0688 ("net/i40e: enable bad checksum flags in vector Rx") > > Signed-off-by: Qi Zhang Cc: sta...@dpdk.org Applied to dpdk-next-net/master, thanks.

Re: [dpdk-dev] rte_ring features in use (or not)

2017-01-25 Thread Bruce Richardson
On Wed, Jan 25, 2017 at 02:20:52PM +0100, Olivier MATZ wrote: > On Wed, 25 Jan 2017 12:14:56 +, Bruce Richardson > wrote: > > Hi all, > > > > while looking at the rte_ring code, I'm wondering if we can simplify > > that a bit by removing some of the code it in that may not be used. > > Specif

[dpdk-dev] Understanding of Acked-By

2017-01-25 Thread Van Haaren, Harry
( Was [dpdk-dev] [PATCH v4] ethdev: fix MAC address replay, CC-ed are participants of that thread http://dpdk.org/ml/archives/dev/2017-January/056278.html ) Hi All, There was an idea (from Thomas) to better document the Acked-by and Reviewed-By in the above thread, which I think is worth doi

Re: [dpdk-dev] [PATCHv6 16/33] drivers/pool/dpaa2: adding hw offloaded mempool

2017-01-25 Thread Jerin Jacob
On Wed, Jan 25, 2017 at 01:34:47PM +, Shreyansh Jain wrote: > > > > -Original Message- > > From: Neil Horman [mailto:nhor...@tuxdriver.com] > > Sent: Wednesday, January 25, 2017 5:53 PM > > To: Thomas Monjalon > > Cc: Hemant Agrawal ; Ferruh Yigit > > ; Shreyansh Jain ; > > dev@dpdk.

Re: [dpdk-dev] [PATCHv6 16/33] drivers/pool/dpaa2: adding hw offloaded mempool

2017-01-25 Thread Shreyansh Jain
> -Original Message- > From: Neil Horman [mailto:nhor...@tuxdriver.com] > Sent: Wednesday, January 25, 2017 5:53 PM > To: Thomas Monjalon > Cc: Hemant Agrawal ; Ferruh Yigit > ; Shreyansh Jain ; > dev@dpdk.org; bruce.richard...@intel.com; john.mcnam...@intel.com; > jerin.ja...@caviumnetw

Re: [dpdk-dev] rte_ring features in use (or not)

2017-01-25 Thread Olivier MATZ
On Wed, 25 Jan 2017 12:14:56 +, Bruce Richardson wrote: > Hi all, > > while looking at the rte_ring code, I'm wondering if we can simplify > that a bit by removing some of the code it in that may not be used. > Specifically: > > * Does anyone use the NIC stats functionality for debugging? I'

Re: [dpdk-dev] NXP DPAA2: Symbol renaming issue: Request for Suggestions

2017-01-25 Thread Shreyansh Jain
On Wednesday 25 January 2017 06:07 PM, Neil Horman wrote: On Tue, Jan 24, 2017 at 02:39:56PM +, Shreyansh Jain wrote: Hello, We are facing a peculiar problem with respect to symbol namespace in DPDK. I think Ferruh and Thomas would have fair idea about it as they have already reviewed and c

[dpdk-dev] [PATCH] net/mlx5: fix link status is always inconsist

2017-01-25 Thread Shahaf Shuler
Query the link status can ends up in an inconsist state where the port is down but it is reporting speed. For that another query is sceduled for a later time. A race condition is possible between the scheduled call and the next link status interrupt from the device. On some sceraios it will cause t

[dpdk-dev] [PATCH 1/2] net/mlx5: fix link status query

2017-01-25 Thread Shahaf Shuler
Trying to query the link status through new kernel ioctl API ETHTOOL_GLINKSETTINGS was always failing due to kernel bug. The bug was fixed on version 4.9 this patch uses the legacy ioctl API for lower kernels. Fixes: 188408719888 ("net/mlx5: fix support for newer link speeds") CC: sta...@dpdk.org

Re: [dpdk-dev] NXP DPAA2: Symbol renaming issue: Request for Suggestions

2017-01-25 Thread Neil Horman
On Tue, Jan 24, 2017 at 02:39:56PM +, Shreyansh Jain wrote: > Hello, > > We are facing a peculiar problem with respect to symbol namespace in DPDK. I > think Ferruh and Thomas would have fair idea about it as they have already > reviewed and commented on it. I was hoping to get some input to t

Re: [dpdk-dev] [PATCHv6 16/33] drivers/pool/dpaa2: adding hw offloaded mempool

2017-01-25 Thread Neil Horman
On Tue, Jan 24, 2017 at 06:28:59PM +0100, Thomas Monjalon wrote: > 2017-01-24 20:07, Hemant Agrawal: > > On 1/24/2017 4:19 PM, Ferruh Yigit wrote: > > > On 1/24/2017 9:12 AM, Shreyansh Jain wrote: > > >> On Monday 23 January 2017 11:04 PM, Ferruh Yigit wrote: > > >>> On 1/23/2017 11:59 AM, Hemant A

Re: [dpdk-dev] [PATCH v6 14/18] net/ixgbe: parse L2 tunnel filter

2017-01-25 Thread Ferruh Yigit
On 1/18/2017 5:49 PM, Ferruh Yigit wrote: <...> >>> >> >> OK for these definitions, however API documentation >> (doc/guides/prog_guide/rte_flow.rst) must be kept up to date, and it >> would be great if testpmd support for these new items was added >> simultaneously (change

Re: [dpdk-dev] rte_ring features in use (or not)

2017-01-25 Thread Bruce Richardson
On Wed, Jan 25, 2017 at 12:14:56PM +, Bruce Richardson wrote: > Hi all, > > while looking at the rte_ring code, I'm wondering if we can simplify > that a bit by removing some of the code it in that may not be used. > Specifically: > > * Does anyone use the NIC stats functionality for debuggin

Re: [dpdk-dev] [PATCH 3/3] net/cxgbe: remove unused variable

2017-01-25 Thread Ferruh Yigit
On 1/24/2017 8:48 PM, Emmanuel Roullit wrote: > Fixes: c167acb61278 ("net/cxgbe: use I/O device memory read/write API") > > Signed-off-by: Emmanuel Roullit > --- > drivers/net/cxgbe/sge.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/cxgbe/sge.c b/drivers/

[dpdk-dev] rte_ring features in use (or not)

2017-01-25 Thread Bruce Richardson
Hi all, while looking at the rte_ring code, I'm wondering if we can simplify that a bit by removing some of the code it in that may not be used. Specifically: * Does anyone use the NIC stats functionality for debugging? I've certainly never seen it used, and it's presence makes the rest less

Re: [dpdk-dev] [PATCH 2/3] net/cxgbe: remove unused variable usage

2017-01-25 Thread Ferruh Yigit
On 1/24/2017 8:48 PM, Emmanuel Roullit wrote: > Found with clang static analysis: > drivers/net/cxgbe/sge.c:900:3: warning: > Value stored to 'in_use' is never read > in_use += q->size; > ^ ~~~ > > Fixes: c167acb61278 ("net/cxgbe: use I/O device memory read/write API")

Re: [dpdk-dev] [PATCH v2] ethdev: fix multi-process NULL dereference crashes

2017-01-25 Thread Remy Horton
On 25/01/2017 11:56, Thomas Monjalon wrote: [..] It does not describe exactly the use-case it is fixing (same in commit message). I guess you saw an issue when creating a vdev in the primary process and another one in a secondary process, erasing the data of the first one. In my use-case the s

Re: [dpdk-dev] [PATCH] net/bonding: remove useless assignment

2017-01-25 Thread Ferruh Yigit
On 1/24/2017 9:15 PM, Emmanuel Roullit wrote: > Found with clang static analysis: > drivers/net/bonding/rte_eth_bond_pmd.c:903:3: > warning: Value stored to 'num_not_send' is never read > num_not_send += slave_bufs_pkts[RTE_MAX_ETHPORTS] - num_send; > ^ ~~~

Re: [dpdk-dev] [PATCH 1/3] net/cxgbe: init data value before reading seeprom

2017-01-25 Thread Ferruh Yigit
On 1/24/2017 8:48 PM, Emmanuel Roullit wrote: > data value could have been garbage if VPD access timed out for VPD read > request could not been issued. > > Found with clang static analysis: > drivers/net/cxgbe/base/t4_hw.c:1577:22: > warning: The left operand of '&' is a garbage value > }

Re: [dpdk-dev] [PATCH v2] ethdev: fix multi-process NULL dereference crashes

2017-01-25 Thread Thomas Monjalon
2017-01-24 15:01, Remy Horton: > Secondary processes were blanket zeroing ethernet device memory, > resulting in NULL dereference crashes in multi-process setups. > > Fixes: 7f95f78a8aea ("ethdev: clear data when allocating device") > > Signed-off-by: Remy Horton > --- > doc/guides/rel_notes/re

Re: [dpdk-dev] NXP DPAA2: Symbol renaming issue: Request for Suggestions

2017-01-25 Thread Shreyansh Jain
Hello Ferruh, On Tuesday 24 January 2017 09:54 PM, Ferruh Yigit wrote: On 1/24/2017 2:39 PM, Shreyansh Jain wrote: Hello, We are facing a peculiar problem with respect to symbol namespace in DPDK. I think Ferruh and Thomas would have fair idea about it as they have already reviewed and comment

[dpdk-dev] [PATCH] app/test: fix overflow in EFD test

2017-01-25 Thread Pablo de Lara
When RTE_EFD_VALUE_NUM_BITS is 32, there was a compilation issue because of an overflow: app/test/test_efd.c:157:55: error: overflow in expression; result is 2147483647 with type 'int' [-Werror,-Winteger-overflow] data[0] = mrand48() & ((1 << RTE_EFD_VALUE_NUM_BITS) - 1); This commit fixe

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-25 Thread Thomas Monjalon
2017-01-23 13:06, Ananyev, Konstantin: > > > -Original Message- > > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > > Sent: Monday, January 23, 2017 12:53 PM > > To: Ananyev, Konstantin > > Cc: Yigit, Ferruh ; dev@dpdk.org; Thomas Monjalon > > ; Horton, Remy > > > > Subject: Re

[dpdk-dev] [PATCH v2] maintainers: add crypto scheduler PMD maintainer

2017-01-25 Thread Fan Zhang
Signed-off-by: Fan Zhang --- v2: Changed the name of the PMD in the MAINTAINERS file MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f071138..5881bcd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -469,6 +469,11 @@ M: Declan Doherty F: driver

Re: [dpdk-dev] [PATCH v4] ethdev: fix MAC address replay

2017-01-25 Thread Thomas Monjalon
2017-01-24 13:21, Ferruh Yigit: > On 1/24/2017 10:09 AM, Igor Ryzhov wrote: > > Thank you Steve. > > > > > I never did it before and I don't know if I have rights for that, but: > > > > Acked-by: Igor Ryzhov mailto:iryz...@nfware.com>> > > Unrelated to the patch itself, but since it has been me

Re: [dpdk-dev] [PATCH v2] mk: suppress error for reference of packed members

2017-01-25 Thread Thomas Monjalon
2017-01-24 22:04, Emmanuel Roullit: > Found with clang build: > error: taking address of packed member 'mlock' of class or structure > 'rte_mem_config' may result in an unaligned pointer value > [-Werror,-Waddress-of-packed-member] > > Fixes: 29361d4c91ed ("mk: fix build with clang < 3.5") > Fixes

Re: [dpdk-dev] [RFC] Add GRO support in DPDK

2017-01-25 Thread Ananyev, Konstantin
> -Original Message- > From: Wiles, Keith > Sent: Wednesday, January 25, 2017 3:40 AM > To: Stephen Hemminger > Cc: Ananyev, Konstantin ; Hu, Jiayu > ; dev@dpdk.org; Kinsella, Ray > ; Gilmore, Walter E ; > Venkatesan, Venky ; > yuanhan@linux.intel.com > Subject: Re: [dpdk-dev] [RFC

Re: [dpdk-dev] [PATCH] cryptodev: decouple from PCI device

2017-01-25 Thread De Lara Guarch, Pablo
> -Original Message- > From: Shreyansh Jain [mailto:shreyansh.j...@nxp.com] > Sent: Wednesday, January 25, 2017 4:48 AM > To: dev@dpdk.org > Cc: Hemant Agrawal; thomas.monja...@6wind.com; Doherty, Declan; De > Lara Guarch, Pablo; jblu...@infradead.org > Subject: Re: [PATCH] cryptodev: dec