Re: [dpdk-dev] [PATCH 0/2] fixes for bonding

2020-03-27 Thread Wei Hu (Xavier)
Are there any comments on this series? Thanks. Xavier On 2020/2/25 17:29, Wei Hu (Xavier) wrote: This series include two fixes patches for bonding PMD driver. Wei Hu (Xavier) (2): net/bonding: fix MAC address when switching active port net/bonding: fix MAC address when one port resets

Re: [dpdk-dev] Impossible to build external application if user build DPDK with "make config"

2020-03-27 Thread Thomas Monjalon
27/03/2020 16:53, Tom Barbette: > Le 27/03/2020 à 16:06, Thomas Monjalon a écrit : > > 27/03/2020 15:24, Tom Barbette: > >> Le 27/03/2020 à 14:55, Thomas Monjalon a écrit : > >>> 27/03/2020 13:35, Tom Barbette: > Le 27/03/2020 à 11:35, Thomas Monjalon a écrit : > > 27/03/2020 10:14, Tom Ba

Re: [dpdk-dev] [EXT] Re: [PATCH v4] net/octeontx2: add devargs to lock Rx/Tx ctx

2020-03-27 Thread Pavan Nikhilesh Bhagavatula
>> fail: >> return rc; > >Pavan - sorry for being so ... finicky :) >I've said 'replace all "goto fail" with "return rc"' and I meant that. >So not only the "goto fail" in you changes but all "goto fail" in that >function. Ah, sure I will send a v5. > >Apart from that: >Reviewed-by: Andrze

Re: [dpdk-dev] [PATCH v2 2/8] build: rename ppc sub-directories

2020-03-27 Thread David Christensen
On 3/26/20 6:15 PM, Thomas Monjalon wrote: The directories ppc_64 are renamed as ppc in - config/ - lib/librte_eal/common/arch/ - lib/librte_eal/common/include/arch/ The EAL directories are not really renamed, but symbolically linked, because they will be moved with th

Re: [dpdk-dev] [PATCH v2 4/8] eal: move arch-specific header files

2020-03-27 Thread David Christensen
On 3/26/20 6:15 PM, Thomas Monjalon wrote: The arch-specific directories arm, ppc and x86 in common/include/arch/ are moved as include/ sub-directories of respective arch directories: - arm/include/ - ppc/include/ - x86/include/ Signed-off-by: Thomas Monjalon Review

Re: [dpdk-dev] [PATCH v2 3/8] eal: move arch-specific C files

2020-03-27 Thread David Christensen
On 3/26/20 6:15 PM, Thomas Monjalon wrote: The arch-specific directories arm, ppc and x86 in common/arch/ are moved at the same level as the OS-specific directories. It makes more clear that EAL is covering a matrix combining OS and arch. Signed-off-by: Thomas Monjalon Reviewed-by: David C

[dpdk-dev] [PATCH] net/mlx5: fix link state update

2020-03-27 Thread Benoît Ganne
mlx5 PMD refuses to update link state if link speed is defined but status is down or if link speed is undefined but status is up, even if the ioctl() succeeded. This prevents application to detect link up/down event, especially when the link speed is not correctly detected. As link speed is nice to

Re: [dpdk-dev] [dpdk-stable] [PATCH v2 0/3] kvargs fixes

2020-03-27 Thread David Marchand
On Fri, Mar 27, 2020 at 4:16 PM David Marchand wrote: > > On Fri, Mar 27, 2020 at 9:10 AM Olivier Matz wrote: > > > > This patchset fixes a buffer overflow in kvargs when parsing an invalid > > string, and fixes the kvargs unit tests. > > > > Olivier Matz (2): > > tests/kvargs: fix to consider

Re: [dpdk-dev] [PATCH v4] net/octeontx2: add devargs to lock Rx/Tx ctx

2020-03-27 Thread Andrzej Ostruszka
On 3/27/20 10:53 AM, pbhagavat...@marvell.com wrote: > From: Pavan Nikhilesh > > Add device arguments to lock Rx/Tx contexts. > Application can either choose to lock Rx or Tx contexts by using > 'lock_rx_ctx' or 'lock_tx_ctx' respectively per each port. > > Example: > -w 0002:02:00.0,lock_

Re: [dpdk-dev] Impossible to build external application if user build DPDK with "make config"

2020-03-27 Thread Tom Barbette
Le 27/03/2020 à 16:06, Thomas Monjalon a écrit : 27/03/2020 15:24, Tom Barbette: Le 27/03/2020 à 14:55, Thomas Monjalon a écrit : 27/03/2020 13:35, Tom Barbette: Le 27/03/2020 à 11:35, Thomas Monjalon a écrit : 27/03/2020 10:14, Tom Barbette: CC'ing original participants as I don't see a

Re: [dpdk-dev] [PATCH v6 0/7] add Intel DCF PMD support

2020-03-27 Thread Ye Xiaolong
On 03/27, Haiyue Wang wrote: >A DCF (Device Config Function) based approach is proposed where a device >bound to the device's VF0 can act as a sole controlling entity to exercise >advance functionality (such as switch, ACL) for rest of the VFs. > >The DCF works as a standalone PMD to support this f

Re: [dpdk-dev] [PATCH v2] eal/cpuflags: add x86 based cpu flags

2020-03-27 Thread Thomas Monjalon
27/03/2020 15:36, Ray Kinsella: > On 27/03/2020 14:32, Van Haaren, Harry wrote: > > From: Thomas Monjalon > >> 27/03/2020 14:44, Neil Horman: > >>> On Fri, Mar 27, 2020 at 01:24:12PM +0100, David Marchand wrote: > On Wed, Mar 25, 2020 at 12:11 PM Kevin Laatz > >> wrote: > > --- a/lib/lib

Re: [dpdk-dev] [dpdk-stable] [PATCH v2 0/3] kvargs fixes

2020-03-27 Thread David Marchand
On Fri, Mar 27, 2020 at 9:10 AM Olivier Matz wrote: > > This patchset fixes a buffer overflow in kvargs when parsing an invalid > string, and fixes the kvargs unit tests. > > Olivier Matz (2): > tests/kvargs: fix to consider empty elements as valid > tests/kvargs: fix check of invalid cases >

Re: [dpdk-dev] [PATCH v2 0/8] eal: reorganize directories layout

2020-03-27 Thread Thomas Monjalon
27/03/2020 15:47, Stephen Hemminger: > On Fri, 27 Mar 2020 02:15:32 +0100 > Thomas Monjalon wrote: > > v2: > > - add missing meson and make files in the include/ directory > > - fix ppc build > > - cosmetic improvements in meson files > > - split single patch into 8 pieces > > > > > > Th

Re: [dpdk-dev] Impossible to build external application if user build DPDK with "make config"

2020-03-27 Thread Thomas Monjalon
27/03/2020 15:24, Tom Barbette: > > Le 27/03/2020 à 14:55, Thomas Monjalon a écrit : > > 27/03/2020 13:35, Tom Barbette: > >> Le 27/03/2020 à 11:35, Thomas Monjalon a écrit : > >>> 27/03/2020 10:14, Tom Barbette: > CC'ing original participants as I don't see a way out of this. > > L

Re: [dpdk-dev] [PATCH v2] eal/cpuflags: add x86 based cpu flags

2020-03-27 Thread David Marchand
On Fri, Mar 27, 2020 at 2:18 PM Van Haaren, Harry wrote: > > > -Original Message- > > From: David Marchand > > Sent: Friday, March 27, 2020 12:24 PM > > To: Laatz, Kevin > > Cc: dev ; Richardson, Bruce ; Van > > Haaren, Harry ; Neil Horman > > ; Thomas Monjalon ; Honnappa > > Nagarahalli

Re: [dpdk-dev] [PATCH 02/29] net/ena/base: make allocation macros thread-safe

2020-03-27 Thread Stephen Hemminger
On Fri, 27 Mar 2020 11:17:56 +0100 Michal Krawczyk wrote: > From: Igor Chauskin > > Memory allocation region id could possibly be non-unique > due to non-atomic increment, causing allocation failure. > > Fixes: 9ba7981ec992 ("ena: add communication layer for DPDK") > Cc: sta...@dpdk.org > > S

Re: [dpdk-dev] rte_flow: Different devices have different field indianess?

2020-03-27 Thread Tom Barbette
Le 27/03/2020 à 15:44, Andrew Rybchenko a écrit : On 3/27/20 5:29 PM, Tom Barbette wrote: Hi all, It seems rte_flow_item_eth takes its ethertype in host byte order with i40e, but in network byte order with mlx5. If so, it is definitely bug in i40e, since struct rte_flow_item_eth defines type

Re: [dpdk-dev] [PATCH 01/29] net/ena: check if size of buffer is at least 1400B

2020-03-27 Thread Stephen Hemminger
On Fri, 27 Mar 2020 11:17:55 +0100 Michal Krawczyk wrote: > + /* ENA isn't supporting buffers smaller than 1400 bytes */ > + buffer_size = mp->elt_size - sizeof(struct rte_mbuf) - > + RTE_PKTMBUF_HEADROOM; This should use rte_pktmbuf_data_room_size(mp) - RTE_PKTMBUF_HEADROOM

Re: [dpdk-dev] [PATCH v3 00/12] generic rte atomic APIs deprecate proposal

2020-03-27 Thread Van Haaren, Harry
> -Original Message- > From: Honnappa Nagarahalli > Sent: Friday, March 20, 2020 6:32 PM > To: Van Haaren, Harry ; Phil Yang > ; tho...@monjalon.net; Ananyev, Konstantin > ; step...@networkplumber.org; > maxime.coque...@redhat.com; dev@dpdk.org > Cc: david.march...@redhat.com; jer...@marve

Re: [dpdk-dev] [PATCH v2 0/8] eal: reorganize directories layout

2020-03-27 Thread Stephen Hemminger
On Fri, 27 Mar 2020 02:15:32 +0100 Thomas Monjalon wrote: > Some clean-up is done in EAL sub-directories. > The goal is to make organization easier to understand, > and to prepare moving some files from common to Unix-only place. > > Since the kernel modules are moved to kernel/ directory, > the

Re: [dpdk-dev] rte_flow: Different devices have different field indianess?

2020-03-27 Thread Andrew Rybchenko
On 3/27/20 5:29 PM, Tom Barbette wrote: > Hi all, > > It seems rte_flow_item_eth takes its ethertype in host byte order with > i40e, but in network byte order with mlx5. If so, it is definitely bug in i40e, since struct rte_flow_item_eth defines type as rte_be16_t type. > Wouldn't it be nice to

Re: [dpdk-dev] [PATCH v2] eal/cpuflags: add x86 based cpu flags

2020-03-27 Thread Ray Kinsella
On 27/03/2020 14:32, Van Haaren, Harry wrote: >> -Original Message- >> From: Thomas Monjalon >> Sent: Friday, March 27, 2020 2:16 PM >> To: Neil Horman ; Dodji Seketeli ; >> m...@ashroe.eu >> Cc: David Marchand ; Laatz, Kevin >> ; dev ; Richardson, Bruce >> ; Van Haaren, Harry ; >> Honn

Re: [dpdk-dev] [PATCH v2] eal/cpuflags: add x86 based cpu flags

2020-03-27 Thread Van Haaren, Harry
> -Original Message- > From: Thomas Monjalon > Sent: Friday, March 27, 2020 2:16 PM > To: Neil Horman ; Dodji Seketeli ; > m...@ashroe.eu > Cc: David Marchand ; Laatz, Kevin > ; dev ; Richardson, Bruce > ; Van Haaren, Harry ; > Honnappa Nagarahalli > Subject: Re: [dpdk-dev] [PATCH v2] eal

[dpdk-dev] rte_flow: Different devices have different field indianess?

2020-03-27 Thread Tom Barbette
Hi all, It seems rte_flow_item_eth takes its ethertype in host byte order with i40e, but in network byte order with mlx5. Wouldn't it be nice to unify that? Else is there a way to know in which byte order the spec should be given? I guess that expands to all fields, but I only compared the e

Re: [dpdk-dev] Impossible to build external application if user build DPDK with "make config"

2020-03-27 Thread Tom Barbette
Le 27/03/2020 à 14:55, Thomas Monjalon a écrit : 27/03/2020 13:35, Tom Barbette: Le 27/03/2020 à 11:35, Thomas Monjalon a écrit : 27/03/2020 10:14, Tom Barbette: CC'ing original participants as I don't see a way out of this. Le 12/03/2020 à 13:04, Tom Barbette a écrit : Hi all, If the us

Re: [dpdk-dev] [PATCH v2] eal/cpuflags: add x86 based cpu flags

2020-03-27 Thread Thomas Monjalon
27/03/2020 14:44, Neil Horman: > On Fri, Mar 27, 2020 at 01:24:12PM +0100, David Marchand wrote: > > On Wed, Mar 25, 2020 at 12:11 PM Kevin Laatz wrote: > > > --- a/lib/librte_eal/common/include/arch/x86/rte_cpuflags.h > > > +++ b/lib/librte_eal/common/include/arch/x86/rte_cpuflags.h > > > @@ -113

Re: [dpdk-dev] [PATCH 0/4] fixes for hns3 PMD driver

2020-03-27 Thread Andrew Rybchenko
On 3/26/20 10:14 AM, Wei Hu (Xavier) wrote: > This series are fixes for hns3 PMD driver. > > Chengwen Feng (1): > net/hns3: fix the return value of setting VLAN offload > > Lijun Ou (2): > net/hns3: fix RSS indirection table configuration > net/hns3: fix configuring RSS hash when rules are

Re: [dpdk-dev] Impossible to build external application if user build DPDK with "make config"

2020-03-27 Thread Thomas Monjalon
27/03/2020 13:35, Tom Barbette: > Le 27/03/2020 à 11:35, Thomas Monjalon a écrit : > > 27/03/2020 10:14, Tom Barbette: > >> CC'ing original participants as I don't see a way out of this. > >> > >> Le 12/03/2020 à 13:04, Tom Barbette a écrit : > >>> Hi all, > >>> > >>> If the user follows the quick

Re: [dpdk-dev] [PATCH v2] eal/cpuflags: add x86 based cpu flags

2020-03-27 Thread Neil Horman
On Fri, Mar 27, 2020 at 01:24:12PM +0100, David Marchand wrote: > On Wed, Mar 25, 2020 at 12:11 PM Kevin Laatz wrote: > > > > This patch adds CPU flags which will enable the detection of ISA > > features available on more recent x86 based CPUs. > > > > The CPUID leaf information can be found in Se

[dpdk-dev] [PATCH v3 2/2] crypto/nitrox: fix array out of bounds access

2020-03-27 Thread Nagadheeraj Rottela
In nitrox_sym_pmd_create() the name array will overflow if the pci device name is greater than 57 bytes. To fix this issue subtract pci device name length from array length while appending substring to the name. Coverity issue: 349926 Fixes: 9fdef0cc2385 ("crypto/nitrox: create symmetric cryptode

[dpdk-dev] [PATCH v3 1/2] crypto/nitrox: fix invalid CSR register address generation

2020-03-27 Thread Nagadheeraj Rottela
If the NPS_PKT ring/port is greater than 8191 the NPS_PKT*() macros will evaluate to incorrect values due to unintended sign extension from int to unsigned long. To fix this, add UL suffix to the constants in these macros. The same problem is with AQMQ_QSZX() macro also. Coverity issue: 349899, 34

Re: [dpdk-dev] [PATCH v2] eal/cpuflags: add x86 based cpu flags

2020-03-27 Thread Van Haaren, Harry
> -Original Message- > From: David Marchand > Sent: Friday, March 27, 2020 12:24 PM > To: Laatz, Kevin > Cc: dev ; Richardson, Bruce ; Van > Haaren, Harry ; Neil Horman > ; Thomas Monjalon ; Honnappa > Nagarahalli ; Dodji Seketeli > Subject: Re: [dpdk-dev] [PATCH v2] eal/cpuflags: add x8

Re: [dpdk-dev] [PATCH v5] net/i40e: implement hash function in rte flow API

2020-03-27 Thread Xing, Beilei
> -Original Message- > From: Di, ChenxuX > Sent: Tuesday, March 24, 2020 4:18 PM > To: dev@dpdk.org > Cc: Yang, Qiming ; Xing, Beilei > ; Zhao1, Wei ; Di, ChenxuX > > Subject: [PATCH v5] net/i40e: implement hash function in rte flow API > > implement set hash global configurations, se

Re: [dpdk-dev] Impossible to build external application if user build DPDK with "make config"

2020-03-27 Thread Tom Barbette
Le 27/03/2020 à 11:35, Thomas Monjalon a écrit : 27/03/2020 10:14, Tom Barbette: CC'ing original participants as I don't see a way out of this. Le 12/03/2020 à 13:04, Tom Barbette a écrit : Hi all, If the user follows the quick guide (http://core.dpdk.org/doc/quick-start/) DPDK will be compil

Re: [dpdk-dev] [PATCH v2] eal/cpuflags: add x86 based cpu flags

2020-03-27 Thread David Marchand
On Wed, Mar 25, 2020 at 12:11 PM Kevin Laatz wrote: > > This patch adds CPU flags which will enable the detection of ISA > features available on more recent x86 based CPUs. > > The CPUID leaf information can be found in Section 1.7 of this > document: > https://software.intel.com/sites/default/fil

Re: [dpdk-dev] [PATCH v2] net/i40e: enable MAC address as FDIR input set

2020-03-27 Thread Xing, Beilei
> -Original Message- > From: Cui, LunyuanX > Sent: Wednesday, March 18, 2020 11:15 AM > To: dev@dpdk.org > Cc: Xing, Beilei ; Zhang, Qi Z ; > Wu, Jingjing ; Cui, LunyuanX > > Subject: [PATCH v2] net/i40e: enable MAC address as FDIR input set > > FVL enable both src MAC address and dst

Re: [dpdk-dev] [PATCH v2 1/8] eal: remove useless makefiles

2020-03-27 Thread Bruce Richardson
On Fri, Mar 27, 2020 at 02:15:33AM +0100, Thomas Monjalon wrote: > When moving files to the directory kernel/, > the file BSDmakefile.meson was left in eal/. > > Also the intermediate makefiles in linux/ and freebsd/ became useless. > > Fixes: acaa9ee991b5 ("move kernel modules directories") > Cc

Re: [dpdk-dev] [PATCH v5 08/10] test-bbdev: support for LDPC interrupt test

2020-03-27 Thread Dave Burley
Acked-by: Dave Burley On 26/03/2020 03:27, Nicolas Chautru wrote: From: Nic Chautru Adding missing implementation for the interrupt tests for LDPC encoder and decoders. Signed-off-by: Nic Chautru --- app/test-bbdev/test_bbdev_perf.c | 202 ++- 1 file c

Re: [dpdk-dev] [PATCH v5 09/10] test-bbdev: support for offload test for LDPC

2020-03-27 Thread Dave Burley
Acked-by: Dave Burley On 26/03/2020 03:27, Nicolas Chautru wrote: From: Nic Chautru Adding support for the offload latency tests when using the LDPC encoder and decoder operations. Signed-off-by: Nic Chautru --- app/test-bbdev/test_bbdev_perf.c | 26 +++--- 1 file cha

Re: [dpdk-dev] [PATCH v5 07/10] test-bbdev: support for performance tests

2020-03-27 Thread Dave Burley
Acked-by: Dave Burley On 26/03/2020 03:27, Nicolas Chautru wrote: From: Nic Chautru Includes support for BLER (Block Error Rate) wireless performance test with new arguments for SNR and number of iterations for 5G. This generates LLRs for a given SNR level then measures the ratio of code bloc

Re: [dpdk-dev] [PATCH v5 06/10] test-bbdev: support HARQ validation

2020-03-27 Thread Dave Burley
Acked-by: Dave Burley On 26/03/2020 03:27, Nicolas Chautru wrote: From: Nic Chautru Adding functionality to validate HARQ for different devices implementation. Adding capacity to fetch HARQ data when required as part of this validation. Signed-off-by: Nic Chautru --- app/test-bbdev/test_b

Re: [dpdk-dev] [PATCH v5 05/10] test-bbdev: rename FPGA LTE macros to be more explicit

2020-03-27 Thread Dave Burley
Acked-by: Dave Burley On 26/03/2020 03:27, Nicolas Chautru wrote: From: Nic Chautru Self-contained and cosmetic renaming of macro so that to be more explicit for future extension. Signed-off-by: Nic Chautru --- app/test-bbdev/test_bbdev_perf.c | 51 +++-

Re: [dpdk-dev] [PATCH v5 02/10] bbdev: expose device HARQ buffer size at device level

2020-03-27 Thread Dave Burley
Acked-by: Dave Burley On 26/03/2020 03:27, Nicolas Chautru wrote: From: Nic Chautru This exposes the HARQ buffer size at the device driver level instead of using the capability of a specific operation. This is currently not yet used by a device until future commit. Signed-off-by: Nic Chautr

Re: [dpdk-dev] [PATCH v5 04/10] baseband/turbo_sw: support large size code block

2020-03-27 Thread Dave Burley
Acked-by: Dave Burley On 26/03/2020 03:27, Nicolas Chautru wrote: From: Nic Chautru This is to support cases when the input data for decoding a code block is larger than 64kB and would not fit as a contiguous block of data into one mbuf. In that case the length from the operation supersedes t

Re: [dpdk-dev] [PATCH v5 03/10] baseband/turbo_sw: fix the exposed LLR decimals assumption

2020-03-27 Thread Dave Burley
Acked-by: Dave Burley On 26/03/2020 03:27, Nicolas Chautru wrote: From: Nic Chautru The actual LLR representation was incorrectly assumed to be 2 instead of 4. This would impact wireless performance but is not critical to be back ported on LTS branches. Fixes: c769c711757a ("baseband/turbo_s

Re: [dpdk-dev] [PATCH v5 01/10] bbdev: add capability flag for filler bits inclusion in HARQ

2020-03-27 Thread Dave Burley
Acked-by: Dave Burley On 26/03/2020 03:27, Nicolas Chautru wrote: From: Nic Chautru Adding capability flag for device variants when HARQ buffer may or may not include the filler bits. Minor cosmetic changes in same file. Signed-off-by: Nic Chautru --- lib/librte_bbdev/rte_bbdev.h| 2

Re: [dpdk-dev] [PATCH v5 00/10] bbdev new features

2020-03-27 Thread Dave Burley
Acked-by: Dave Burley On 26/03/2020 03:27, Nicolas Chautru wrote: v5: cosmetic change v4: Changes based on review comments from Akhil. Also taking the new PMD out of this serie to be pushed in separate serie. v3: squash the release notes updates into the related commits v2: including release n

Re: [dpdk-dev] [PATCH 26/29] net/ena: reuse 0 length Rx descriptor

2020-03-27 Thread Andrew Rybchenko
On 3/27/20 1:18 PM, Michal Krawczyk wrote: > Some ENA devices can pass to the driver descriptor with length 0. To > avoid extra allocation, the descriptor can be reused by simply putting > it back to the device. > > Signed-off-by: Michal Krawczyk > Reviewed-by: Igor Chauskin > Reviewed-by: Guy T

Re: [dpdk-dev] [PATCH 17/29] net/ena: add support for large LLQ headers

2020-03-27 Thread Andrew Rybchenko
On 3/27/20 1:18 PM, Michal Krawczyk wrote: > If the device supports larger LLQ (Low Latency Queue) headers, the user > can activate them by enabling CONFIG_RTE_LIBRTE_ENA_LARGE_LLQ_HEADERS > flag in the configuration file. > > If the device isn't supporting this feature, the default value will be

Re: [dpdk-dev] [PATCH 04/29] net/ena/base: set default hash key

2020-03-27 Thread Andrew Rybchenko
On 3/27/20 1:17 PM, Michal Krawczyk wrote: > The RSS hash key was present in the device, but it wasn't exposed to > the user. The other key still cannot be set, but now it can be accessed > if one needs to do that. > > By default, the random hash key is used and it is generated only once > when re

Re: [dpdk-dev] [PATCH 01/29] net/ena: check if size of buffer is at least 1400B

2020-03-27 Thread Andrew Rybchenko
On 3/27/20 1:17 PM, Michal Krawczyk wrote: > Some of the ENA devices can't handle buffers which are smaller than a > 1400B. Because of this limitation, size of the buffer is being checked > and limited during the Rx queue setup. > > If it's below the allowed value, PMD won't finish it's configurat

Re: [dpdk-dev] [PATCH v2 00/28] graph: introduce graph subsystem

2020-03-27 Thread Thomas Monjalon
27/03/2020 07:49, Jerin Jacob: > In case if someone interested to know the steps to host DPDK > documentation for free in netlify. > > 1) Create a DPDK repo with your code(documentation files) in GitHub > > 2) Open https://app.netlify.com/ URL > > 3) Sign in netlify with GitHub account > > 4)

Re: [dpdk-dev] Impossible to build external application if user build DPDK with "make config"

2020-03-27 Thread Thomas Monjalon
27/03/2020 10:14, Tom Barbette: > CC'ing original participants as I don't see a way out of this. > > Le 12/03/2020 à 13:04, Tom Barbette a écrit : > > Hi all, > > > > If the user follows the quick guide > > (http://core.dpdk.org/doc/quick-start/) DPDK will be compiled in the > > "build" folder.

[dpdk-dev] [PATCH 28/29] net/ena: update copyright date

2020-03-27 Thread Michal Krawczyk
The v2.1.0 making changes in the ena_ethdev files were done this year, so the copyright notice should be updated. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- drivers/net/ena/base/ena_plat_dpdk.h | 2 +- drivers/net/ena/ena_ethdev.c | 2 +- driv

[dpdk-dev] [PATCH 29/29] net/ena: update version of the driver to v2.1.0

2020-03-27 Thread Michal Krawczyk
The v2.1.0 is refactoring Tx and Rx paths, including few bug fixes and is also adding a new features which are going to be available with the newest hardware: * Accelerated LLQ mode * Disabling meta descriptor caching is required for that * Handling Rx descriptor which length is 0 * Tx drops are

[dpdk-dev] [PATCH 26/29] net/ena: reuse 0 length Rx descriptor

2020-03-27 Thread Michal Krawczyk
Some ENA devices can pass to the driver descriptor with length 0. To avoid extra allocation, the descriptor can be reused by simply putting it back to the device. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- drivers/net/ena/ena_ethdev.c | 74 +++

[dpdk-dev] [PATCH 27/29] doc: add notes on ENA usage on metal instances

2020-03-27 Thread Michal Krawczyk
As AWS metal instances are supporting IOMMU, the usage of igb_uio or vfio-pci can lead to a problems (when to use which module), especially that the vfio-pci isn't supporting SMMU on arm64. To clear up the problem of using those modules in various setup conditions (with or without IOMMU) on metal

[dpdk-dev] [PATCH 20/29] net/ena: disable meta caching

2020-03-27 Thread Michal Krawczyk
In the LLQ mode, the device can indicate that meta data descriptor caching is disabled. In that case the driver should send valid meta descriptor on every Tx packet. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- drivers/net/ena/ena_ethdev.c | 28

[dpdk-dev] [PATCH 21/29] net/ena: refactor Rx path

2020-03-27 Thread Michal Krawczyk
* Split main Rx function into multiple ones - the body of the main was very big and further there were 2 nested loops, which were making the code hard to read * Rework how the Rx mbuf chains are being created - Instead of having while loop which has conditional check if it's first segment, ha

[dpdk-dev] [PATCH 17/29] net/ena: add support for large LLQ headers

2020-03-27 Thread Michal Krawczyk
If the device supports larger LLQ (Low Latency Queue) headers, the user can activate them by enabling CONFIG_RTE_LIBRTE_ENA_LARGE_LLQ_HEADERS flag in the configuration file. If the device isn't supporting this feature, the default value will be used. Signed-off-by: Michal Krawczyk Reviewed-by: I

[dpdk-dev] [PATCH 19/29] net/ena: add Tx drops statistic

2020-03-27 Thread Michal Krawczyk
ENA device can report in the AENQ handler amount of Tx packets that were dropped and not sent. This statistic is showing global value for the device and because rte_eth_stats is missing field that could indicate this value (it isn't the Tx error), it is being presented as a extended statistic. As

[dpdk-dev] [PATCH 18/29] net/ena: remove memory barriers before doorbells

2020-03-27 Thread Michal Krawczyk
The doorbell code is already issuing the doorbell by using rte_write. Because of that, there is no need to do that before calling the function. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- drivers/net/ena/ena_ethdev.c | 9 + 1 file changed, 1 in

[dpdk-dev] [PATCH 14/29] net/ena/base: update gen date and commit

2020-03-27 Thread Michal Krawczyk
The current ena_com version was generated on 25.09.2019. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- drivers/net/ena/base/ena_defs/ena_gen_info.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ena/base/ena_defs/en

[dpdk-dev] [PATCH 13/29] net/ena/base: fix indentation of multiple defines

2020-03-27 Thread Michal Krawczyk
As the alignemnt of the defines wasn't valid, it was removed at all, so instead of using multiple spaces or tabs, the single space after define name is being used. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- drivers/net/ena/base/ena_com.h | 8

[dpdk-dev] [PATCH 16/29] net/ena: refactor getting IO queues capabilities

2020-03-27 Thread Michal Krawczyk
Reading values from the device is about the maximum capabilities of the device. Because of that, the names of the fields storing those values, functions and temporary variables, should be more descriptive in order to improve self documentation fo the code. In connection with this, the way of getti

[dpdk-dev] [PATCH 11/29] net/ena/base: use 48-bit memory addresses in ena_com

2020-03-27 Thread Michal Krawczyk
ENA device is using 48-bit memory for IO. because of that, the upper limit had to be updated. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- drivers/net/ena/base/ena_com.c | 2 +- drivers/net/ena/base/ena_defs/ena_common_defs.h | 6 +-

[dpdk-dev] [PATCH 10/29] net/ena/base: add error logs when preparing Tx

2020-03-27 Thread Michal Krawczyk
To make the debugging easier, the error logs were added in the Tx path. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- drivers/net/ena/base/ena_eth_com.c | 24 +++- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/drivers

[dpdk-dev] [PATCH 12/29] net/ena/base: fix types for printing timestamps

2020-03-27 Thread Michal Krawczyk
Because ena_com is being used by multiple platforms which are using different C versions, PRIu64 cannot be used directly and must be defined in the platform file. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- drivers/net/ena/base/ena_com.c | 2 +-

[dpdk-dev] [PATCH 15/29] net/ena: set IO ring size to the valid value

2020-03-27 Thread Michal Krawczyk
IO rings were configured with the maximum allowed size for the Tx/Rx rings. However, the application could decide to create smaller rings. This patch is using value stored in the ring instead of the value from the adapter which is indicating the maximum allowed value. Fixes: df238f84c0a2 ("net/en

[dpdk-dev] [PATCH 07/29] net/ena/base: add accelerated LLQ mode

2020-03-27 Thread Michal Krawczyk
In order to use the accelerated LLQ, the driver must limit the Tx burst and be aware that the device has the meta caching disabled. In that situation, the meta descriptor must be valid on each Tx packet. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- driv

[dpdk-dev] [PATCH 05/29] net/ena/base: rework interrupt moderation

2020-03-27 Thread Michal Krawczyk
This feature allows for adaptive interrupt moderation. It's not used by the DPDK PMD, but is a part of the newest HAL version. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- drivers/net/ena/base/ena_com.c | 171 +-- drivers/n

[dpdk-dev] [PATCH 06/29] net/ena/base: remove extra properties strings

2020-03-27 Thread Michal Krawczyk
This buffer was never used by the ENA PMD. It could be used for debugging, but it's presence is redundant now. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- drivers/net/ena/base/ena_com.c | 56 -- drivers/net/ena/base/ena_

[dpdk-dev] [PATCH 08/29] net/ena/base: fix documentation of the functions

2020-03-27 Thread Michal Krawczyk
The documentation format was aligned and few typos were fixed. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- drivers/net/ena/base/ena_com.h | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/net/ena/bas

[dpdk-dev] [PATCH 09/29] net/ena/base: fix indentation in cq polling

2020-03-27 Thread Michal Krawczyk
The spaces instead of tabs were used for the indent. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Guy Tzalik --- drivers/net/ena/base/ena_com.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ena/base/ena_com.c b/drivers/net/ena

[dpdk-dev] [PATCH 04/29] net/ena/base: set default hash key

2020-03-27 Thread Michal Krawczyk
The RSS hash key was present in the device, but it wasn't exposed to the user. The other key still cannot be set, but now it can be accessed if one needs to do that. By default, the random hash key is used and it is generated only once when requested for the first time. Signed-off-by: Michal Kraw

[dpdk-dev] [PATCH 00/29] Update ENA driver to v2.1.0

2020-03-27 Thread Michal Krawczyk
Hi, This patchset is including severeal changes, including: * ena_com (HAL) update * Support for upcoming device features * Refactor of the IO path * Documentation update about ENA usage on metal instances Igor Chauskin (2): net/ena/base: make allocation macros thread-safe net/ena/base: preve

[dpdk-dev] [PATCH 03/29] net/ena/base: prevent allocation of 0-sized memory

2020-03-27 Thread Michal Krawczyk
From: Igor Chauskin rte_memzone_reserve() will reserve the biggest contiguous memzone available if received 0 as size param. Fixes: 9ba7981ec992 ("ena: add communication layer for DPDK") Cc: sta...@dpdk.org Signed-off-by: Igor Chauskin Reviewed-by: Michal Krawczyk Reviewed-by: Guy Tzalik ---

[dpdk-dev] [PATCH 02/29] net/ena/base: make allocation macros thread-safe

2020-03-27 Thread Michal Krawczyk
From: Igor Chauskin Memory allocation region id could possibly be non-unique due to non-atomic increment, causing allocation failure. Fixes: 9ba7981ec992 ("ena: add communication layer for DPDK") Cc: sta...@dpdk.org Signed-off-by: Igor Chauskin Reviewed-by: Michal Krawczyk Reviewed-by: Guy Tz

[dpdk-dev] [PATCH 01/29] net/ena: check if size of buffer is at least 1400B

2020-03-27 Thread Michal Krawczyk
Some of the ENA devices can't handle buffers which are smaller than a 1400B. Because of this limitation, size of the buffer is being checked and limited during the Rx queue setup. If it's below the allowed value, PMD won't finish it's configuration successfully.. Signed-off-by: Michal Krawczyk R

Re: [dpdk-dev] [PATCH v3] log: add API to check if a logtype can log in a given level

2020-03-27 Thread David Marchand
On Fri, Mar 13, 2020 at 3:52 PM Ferruh Yigit wrote: > > This is a helper function in case components would like to do more work > than just logging a message based on log level, like for example > collecting some stats if the log type is DEBUG etc.. > > A few existing relevant usage converted to t

Re: [dpdk-dev] [dpdk-stable] [PATCH v3] eal/mem: preallocate VA space in no-huge mode

2020-03-27 Thread David Marchand
On Wed, Mar 25, 2020 at 3:39 PM David Marchand wrote: > > On Fri, Feb 7, 2020 at 12:11 PM Anatoly Burakov > wrote: > > > > When --no-huge mode is used, the memory is currently allocated with > > mmap(NULL, ...). This is fine in most cases, but can fail in cases > > where DPDK is run on a machine

Re: [dpdk-dev] [PATCH] vfio: map contiguous areas in one go

2020-03-27 Thread David Marchand
On Tue, Feb 25, 2020 at 2:25 PM Anatoly Burakov wrote: > > Currently, when we are creating DMA mappings for memory that's > either external or is backed by hugepages in IOVA as PA mode, we > assume that each page is necessarily discontiguous. This may not > actually be the case, especially for ext

[dpdk-dev] [PATCH v4] net/octeontx2: add devargs to lock Rx/Tx ctx

2020-03-27 Thread pbhagavatula
From: Pavan Nikhilesh Add device arguments to lock Rx/Tx contexts. Application can either choose to lock Rx or Tx contexts by using 'lock_rx_ctx' or 'lock_tx_ctx' respectively per each port. Example: -w 0002:02:00.0,lock_rx_ctx=1 -w 0002:03:00.0,lock_tx_ctx=1 Signed-off-by: Pavan Nikhil

[dpdk-dev] [PATCH v2 6/7] net/virtio: add election for vectorized datapath

2020-03-27 Thread Marvin Liu
Packed ring vectorized datapath will be selected when requirements are fulfilled. 1. AVX512 is allowed in config file and supported by compiler 2. Host cpu support AVX512F 3. ring size is power of two 4. virtio VERSION_1 and in_order features are negotiated 5. LRO and mergeable feature disabled in

[dpdk-dev] [PATCH v2 7/7] doc: add packed vectorized datapath

2020-03-27 Thread Marvin Liu
Document packed virtqueue vectorized datapath selection logic in virtio net PMD. Add packed virtqueue vectorized datapath features to new ini file. Signed-off-by: Marvin Liu diff --git a/doc/guides/nics/features/virtio-packed_vec.ini b/doc/guides/nics/features/virtio-packed_vec.ini new file mod

[dpdk-dev] [PATCH v2 4/7] net/virtio: reuse packed ring xmit functions

2020-03-27 Thread Marvin Liu
Move xmit offload and packed ring xmit enqueue function to header file. These functions will be reused by packed ring vectorized Tx function. Signed-off-by: Marvin Liu diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c index ac417232b..b8b4d3c25 100644 --- a/drivers

[dpdk-dev] [PATCH v2 0/7] add packed ring vectorized datapath

2020-03-27 Thread Marvin Liu
This patch set introduced vectorized datapath for packed ring. The size of packed ring descriptor is 16Bytes. Four batched descriptors are just placed into one cacheline. AVX512 instructions can well handle this kind of data. Packed ring TX datapath can fully transformed into vectorized datapath.

[dpdk-dev] [PATCH v2 3/7] net/virtio: add vectorized packed ring Rx function

2020-03-27 Thread Marvin Liu
Optimize packed ring Rx datapath when AVX512 enabled and mergeable buffer/Rx LRO offloading are not required. Solution of optimization is pretty like vhost, is that split datapath into batch and single functions. Batch function is further optimized by vector instructions. Also pad desc extra struct

[dpdk-dev] [PATCH v2 5/7] net/virtio: add vectorized packed ring Tx datapath

2020-03-27 Thread Marvin Liu
Optimize packed ring Tx datapath alike Rx datapath. Split Tx datapath into batch and single Tx functions. Batch function further optimized by vector instructions. Signed-off-by: Marvin Liu diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h index 10e39670e..c9aa

[dpdk-dev] [PATCH v2 1/7] net/virtio: add Rx free threshold setting

2020-03-27 Thread Marvin Liu
Introduce free threshold setting in Rx queue, default value of it is 32. Limiated threshold size to multiple of four as only vectorized packed Rx function will utilize it. Virtio driver will rearm Rx queue when more than rx_free_thresh descs were dequeued. Signed-off-by: Marvin Liu diff --git a/

[dpdk-dev] [PATCH v2 2/7] net/virtio-user: add vectorized packed ring parameter

2020-03-27 Thread Marvin Liu
Add new parameter "packed_vec" which can disable vectorized packed ring datapath explicitly. When "packed_vec" option is on, driver will check packed ring vectorized datapath prerequisites. If any one of them not matched, vectorized datapath won't be selected. Signed-off-by: Marvin Liu diff --gi

Re: [dpdk-dev] Impossible to build external application if user build DPDK with "make config"

2020-03-27 Thread Tom Barbette
CC'ing original participants as I don't see a way out of this. Le 12/03/2020 à 13:04, Tom Barbette a écrit : Hi all, If the user follows the quick guide (http://core.dpdk.org/doc/quick-start/) DPDK will be compiled in the "build" folder. However, external applications will always fail to bu

[dpdk-dev] [PATCH] event/octeontx2: use c11 atomics for statistics

2020-03-27 Thread pbhagavatula
From: Pavan Nikhilesh Use c11 atomics with RELAXED ordering instead of rte_atomic ops which enforce unnessary barries on arm64. Signed-off-by: Pavan Nikhilesh --- drivers/event/octeontx2/otx2_tim_evdev.c | 5 +++-- drivers/event/octeontx2/otx2_tim_evdev.h | 2 +- drivers/event/octeontx2/otx2

Re: [dpdk-dev] [PATCH v2 20/28] node: ipv4 lookup for x86

2020-03-27 Thread Jerin Jacob
On Thu, Mar 26, 2020 at 10:30 PM wrote: > > From: Pavan Nikhilesh > > Add IPv4 lookup process function for ip4_lookup > rte_node. This node performs LPM lookup using x86_64 > vector supported RTE_LPM API on every packet received > and forwards it to a next node that is identified by > lookup resu

Re: [dpdk-dev] [PATCH] examples/vmdq: fix RSS configuration

2020-03-27 Thread Han, YingyaX
Tested-by: Han,YingyaX BRs, Yingya -Original Message- From: stable On Behalf Of Li, Xiaoyun Sent: Thursday, March 5, 2020 10:03 AM To: Jiang, JunyuX ; dev@dpdk.org Cc: Yang, Qiming ; sta...@dpdk.org Subject: Re: [dpdk-stable] [PATCH] examples/vmdq: fix RSS configuration > -Original

[dpdk-dev] app/testpmd: fix PPPOES flow API

2020-03-27 Thread Xiao Zhang
The command line to create RTE flow for specific proto_id of PPPOES is not correct. This patch is to fix this issue. Fixes: 226c6e60c35b ("ethdev: add PPPoE to flow API") Cc: sta...@dpdk.org Signed-off-by: Xiao Zhang --- app/test-pmd/cmdline_flow.c | 13 +++-- 1 file changed, 3 insertio

Re: [dpdk-dev] [PATCH v2] mbuf: optimize memory loads during mbuf freeing

2020-03-27 Thread Olivier Matz
Hi, On Fri, Mar 20, 2020 at 03:55:15PM +, Alexander Kozyrev wrote: > Introduction of pinned external buffers doubled memory loads in the > rte_pktmbuf_prefree_seg() function. Analysis of the generated assembly > code shows unnecessary load of the pool field of the rte_mbuf structure. > Here is

[dpdk-dev] [PATCH v2 3/3] kvargs: fix a heap buffer overflow when parsing list

2020-03-27 Thread Olivier Matz
From: Yunjian Wang When the input string is "key=[", the ending '\0' is replaced by a ',', leading to a heap buffer overflow. Check the content of ctx1 to avoid this problem. Fixes: cc0579f2339a ("kvargs: support list value") Cc: sta...@dpdk.org Signed-off-by: Yunjian Wang Signed-off-by: Oliv

[dpdk-dev] [PATCH v2 2/3] tests/kvargs: fix check of invalid cases

2020-03-27 Thread Olivier Matz
The return was not properly placed, and only the first test case was validated. Fixes: e495f5435524 ("kvargs: add test case in app/test") Cc: sta...@dpdk.org Signed-off-by: Olivier Matz --- app/test/test_kvargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_

  1   2   >