[dpdk-dev] [PATCH] net/iavf: fix FDIR ID parsing issue after queue reconfigured

2020-05-19 Thread Leyi Rong
FDIR ID parsing will not be handled correctly after queue reconfigured, enable FDIR ID parsing per Q regardless of fdir_ref_cnt to fix it. Fixes: f71dbf852d46 ("net/iavf: add flow director enabled switch value") Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.h | 4 ++-- 1 file changed,

Re: [dpdk-dev] [PATCH] net/ice: fix tunnel type match word handling

2020-05-19 Thread Ye Xiaolong
On 05/18, Qi Zhang wrote: >Use a common function when selecting the proper word and mask match for >a tunnel type when programming switch rules. > >Store switch recipe field mask as little endian, which avoids needing to >convert back to big endian after reading recipe from FW. > >Obtain word mask

[dpdk-dev] [PATCH] doc: update for ice

2020-05-19 Thread Xiaolong Ye
Update the description and limitation about ice PMD according to the product release strategy. Signed-off-by: Xiaolong Ye --- doc/guides/nics/ice.rst | 29 + 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.r

Re: [dpdk-dev] [PATCH] net/i40e: fix flow FDIR enable issue

2020-05-19 Thread Zhao1, Wei
> -Original Message- > From: Xing, Beilei > Sent: Wednesday, May 20, 2020 12:14 PM > To: Zhao1, Wei ; dev@dpdk.org > Cc: sta...@dpdk.org; Guo, Jia > Subject: RE: [PATCH] net/i40e: fix flow FDIR enable issue > > > > > -Original Message- > > From: Zhao1, Wei > > Sent: Tuesday

Re: [dpdk-dev] [PATCH] net/i40e: fix flow FDIR enable issue

2020-05-19 Thread Xing, Beilei
> -Original Message- > From: Zhao1, Wei > Sent: Tuesday, May 19, 2020 3:17 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Xing, Beilei ; Guo, Jia > ; Zhao1, Wei > Subject: [PATCH] net/i40e: fix flow FDIR enable issue > > When we flush flow FDIR, all queues are disabled for FDIR. > If FD

Re: [dpdk-dev] [PATCH] net/i40e: fix flow FDIR enable issue

2020-05-19 Thread Zhao1, Wei
Hi, guojia > -Original Message- > From: Guo, Jia > Sent: Wednesday, May 20, 2020 11:19 AM > To: Zhao1, Wei ; dev@dpdk.org > Cc: sta...@dpdk.org; Xing, Beilei > Subject: Re: [PATCH] net/i40e: fix flow FDIR enable issue > > hi, zhaowei > > On 5/19/2020 3:16 PM, Wei Zhao wrote: > > When

[dpdk-dev] [PATCH v3 1/2] doc: add cycles per packet in testpmd user guide

2020-05-19 Thread Dharmik Thakkar
Update documentation for 'show fwd' testpmd runtime function to show CPU cycles/packet example. Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Phil Yang --- v3: - Keep existing stats and add a note providing CPU cycles/packet example (Ferruh) - Remove platfor

[dpdk-dev] [PATCH v3 2/2] doc: include config options in testpmd user guide

2020-05-19 Thread Dharmik Thakkar
Update testpmd documentation to include RECORD configuration options, CONFIG_RTE_TEST_PMD_RECORD_CORE_CYCLES and CONFIG_RTE_TEST_PMD_RECORD_BURST_STATS. Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Phil Yang --- v3: - Replace config/common_base with build/.conf

Re: [dpdk-dev] [PATCH] net/i40e: fix flow FDIR enable issue

2020-05-19 Thread Jeff Guo
hi, zhaowei On 5/19/2020 3:16 PM, Wei Zhao wrote: When we flush flow FDIR, all queues are disabled for FDIR. If FDIR rule is created again, then the flow list is empty, as it is the first time to create rule after flush fdir filter, so we need to enable FDRI for all queues. And also, disable FDI

[dpdk-dev] 【BUG REPORT】l3fwd-power can not exit by ctrl+c

2020-05-19 Thread oulijun
Hi, David Marchand && guys I am using 20.05-rc2 version to test based on HNS3 NIC hardware, and found that after starting l3fwd-power, using ctrl+c cannot force quit. But I revert the patch(33666b4 service: fix crash on exit) and it is ok. the log as follows: Initializing rx queues on l

Re: [dpdk-dev] [PATCH] net/ice: fix tunnel type match word handling

2020-05-19 Thread Yang, Qiming
Acked-by: Qiming Yang > -Original Message- > From: Zhang, Qi Z > Sent: Monday, May 18, 2020 12:24 > To: Yang, Qiming > Cc: dev@dpdk.org; Ye, Xiaolong ; Zhang, Qi Z > ; sta...@dpdk.org; Nowlin, Dan > > Subject: [PATCH] net/ice: fix tunnel type match word handling > > Use a common funct

[dpdk-dev] [PATCH dpdk-dev] net/mlx5: check the reg available for metadata action

2020-05-19 Thread xiangxia . m . yue
From: Tonghao Zhang If user don't set the dv_xmeta_en to 1 or 2, in the flow_dv_convert_action_set_meta function: * flow_dv_get_metadata_reg may return the REG_NONE, when MLX5_METADATA_FDB enabled for metadata set action. * reg_to_field(REG_NONE) return MLX5_MODI_OUT_NONE which is invalid.

Re: [dpdk-dev] [PATCH v2 4/5] doc: include config options in testpmd user guide

2020-05-19 Thread Dharmik Thakkar
> On May 19, 2020, at 2:42 AM, Thomas Monjalon wrote: > >>> Update testpmd documentation to include RECORD configuration options, >>> CONFIG_RTE_TEST_PMD_RECORD_CORE_CYCLES and >>> CONFIG_RTE_TEST_PMD_RECORD_BURST_STATS. >>> >>> Signed-off-by: Dharmik Thakkar >>> Reviewed-by: Honnappa Nagarah

Re: [dpdk-dev] [PATCH] mbuf: align rte_mbuf for Windows

2020-05-19 Thread Ranjit Menon
On 5/19/2020 1:18 PM, Thomas Monjalon wrote: 19/05/2020 21:57, Dmitry Kozlyuk: On Tue, 19 May 2020 20:49:50 +0200 Thomas Monjalon wrote: +Cc more maintainers 19/05/2020 20:41, tal...@mellanox.com: From: Tal Shnaiderman Using uint32_t type bit-fields in Windows will pads the 'L2/L3/L4 and

Re: [dpdk-dev] [PATCH] mbuf: align rte_mbuf for Windows

2020-05-19 Thread Thomas Monjalon
19/05/2020 21:57, Dmitry Kozlyuk: > On Tue, 19 May 2020 20:49:50 +0200 > Thomas Monjalon wrote: > > > +Cc more maintainers > > > > 19/05/2020 20:41, tal...@mellanox.com: > > > From: Tal Shnaiderman > > > > > > Using uint32_t type bit-fields in Windows will pads the > > > 'L2/L3/L4 and tunnel i

Re: [dpdk-dev] [PATCH] mbuf: align rte_mbuf for Windows

2020-05-19 Thread Dmitry Kozlyuk
On Tue, 19 May 2020 20:49:50 +0200 Thomas Monjalon wrote: > +Cc more maintainers > > 19/05/2020 20:41, tal...@mellanox.com: > > From: Tal Shnaiderman > > > > Using uint32_t type bit-fields in Windows will pads the > > 'L2/L3/L4 and tunnel information' union with additional bits. > > > > This

[dpdk-dev] [dpdk-announce] release candidate 20.05-rc3

2020-05-19 Thread Thomas Monjalon
A new DPDK release candidate is ready for testing: https://git.dpdk.org/dpdk/tag/?id=v20.05-rc3 There are 144 new patches in this snapshot. Release notes: http://doc.dpdk.org/guides/rel_notes/release_20_05.html Some deprecation notices might be added if reviewed on time. The -rc4

Re: [dpdk-dev] [PATCH] mbuf: align rte_mbuf for Windows

2020-05-19 Thread Thomas Monjalon
+Cc more maintainers 19/05/2020 20:41, tal...@mellanox.com: > From: Tal Shnaiderman > > Using uint32_t type bit-fields in Windows will pads the > 'L2/L3/L4 and tunnel information' union with additional bits. > > This padding causes rte_mbuf size misalignment and the total size > increases to 3

[dpdk-dev] [PATCH] mbuf: align rte_mbuf for Windows

2020-05-19 Thread talshn
From: Tal Shnaiderman Using uint32_t type bit-fields in Windows will pads the 'L2/L3/L4 and tunnel information' union with additional bits. This padding causes rte_mbuf size misalignment and the total size increases to 3 cache-lines. Changed packet_type bit-fields types from uint32_t to uint8_t

[dpdk-dev] mlx5 & pdump: convert HW timestamps to nanoseconds

2020-05-19 Thread PATRICK KEROULAS
Hello, I'm trying to build an accurate capture device based on Mellanox Connect-X5 with following requirements: - capture every incoming packets with hardware timestamps - output: pcap with timestamps in nanoseconds My problem is that the packets forwarded to `dpdk-pdump` carry raw timestamps from

Re: [dpdk-dev] [dpdk-stable] [PATCH] app/test-fib: fix unchecked return value

2020-05-19 Thread Thomas Monjalon
11/05/2020 11:22, Vladimir Medvedkin: > Check returned value after strtok() > CID 355674 (#1 of 1): Dereference null return value (NULL_RETURNS) > 4. dereference: Dereferencing a pointer that might be NULL s when > calling inet_pton > > Fixes: 103809d032cd ("app/test-fib: add test application for

Re: [dpdk-dev] [PATCH] examples/l3fwd-graph: fix unchecked function return values

2020-05-19 Thread Thomas Monjalon
14/05/2020 12:39, Nithin Dabilpuram: > On Thu, May 14, 2020 at 01:52:17AM +0530, pbhagavat...@marvell.com wrote: > > From: Pavan Nikhilesh > > > > Fix unchecked return values reported by coverity. > > > > Coverity issue: 350601 > > Fixes: ef853f1fd979 ("examples/l3fwd-graph: add ethdev configura

Re: [dpdk-dev] [PATCH v1 1/2] devtools: add internal ABI version check

2020-05-19 Thread David Marchand
On Tue, May 19, 2020 at 5:35 PM David Marchand wrote: > > On Thu, Apr 30, 2020 at 7:54 AM Haiyue Wang wrote: > > > > INTERNAL is new introduced version, update the shell script that checks > > whether built libraries are versioned with expected ABI (current ABI, > > current ABI + 1, EXPERIMENTAL,

[dpdk-dev] [PATCH v3 5/7] net/netvsc: don't query VF link state

2020-05-19 Thread Stephen Hemminger
When the primary device link state is queried, there is no need to query the VF state as well. The application only sees the state of the synthetic device. Fixes: dc7680e8597c ("net/netvsc: support integrated VF") Signed-off-by: Stephen Hemminger --- drivers/net/netvsc/hn_ethdev.c | 4 +- drive

[dpdk-dev] [PATCH v3 6/7] net/netvsc: process link change messages in alarm

2020-05-19 Thread Stephen Hemminger
The original code would deadlock itself if a link change event happened with link state interrupt enabled. The problem is that the link state changed message would be seen while reading the host to guest ring (under lock) and then the driver would send a query to the host to see the new link state.

[dpdk-dev] [PATCH v3 7/7] net/netvsc: do not spin forever waiting for reply

2020-05-19 Thread Stephen Hemminger
Because of bugs in driver or host a reply to a request might never occur. Better to give an error than spin forever. Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") Signed-off-by: Stephen Hemminger --- drivers/net/netvsc/hn_rndis.c | 30 -- 1 file chang

[dpdk-dev] [PATCH v3 4/7] net/netvsc: fix warning when VF is removed

2020-05-19 Thread Stephen Hemminger
The code to unset owner of VF device was changing port to invalid value before calling unset. Fixes: 4a9efcddaddd ("net/netvsc: fix VF support with secondary process") Signed-off-by: Stephen Hemminger --- drivers/net/netvsc/hn_vf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) dif

[dpdk-dev] [PATCH v3 2/7] net/netvsc: implement rx/tx descriptor status functions

2020-05-19 Thread Stephen Hemminger
These functions are useful for applications and debugging. The netvsc PMD also transparently handles the rx/tx descriptor functions for underlying VF device. Signed-off-by: Stephen Hemminger --- drivers/net/netvsc/hn_ethdev.c | 3 ++ drivers/net/netvsc/hn_rxtx.c | 57 +

[dpdk-dev] [PATCH v3 3/7] net/netvsc: change tx/rx logging

2020-05-19 Thread Stephen Hemminger
The PMD_TX_LOG and PMD_RX_LOG can hide errors since this debug log is typically disabled. Change the code to use PMD_DRV_LOG for errors. Under load, the ring buffer to the host can fill. Add some statistics to estimate the impact and see other errors. Signed-off-by: Stephen Hemminger --- driver

[dpdk-dev] [PATCH v3 0/7] net/netvsc: VF bug fix and diagnostic support

2020-05-19 Thread Stephen Hemminger
This set of patches includes bugfixes for races in VF handling and implements the queue and descriptor status functions in netvsc PMD. This patch set is likely to cause merge warnings for the automated tools because it is based on top of my previous netvsc PMD patches already in net-next branch.

[dpdk-dev] [PATCH v3 1/7] net/netvsc: support per-queue info requests

2020-05-19 Thread Stephen Hemminger
There is not a lot of info here from this driver. But worth supporting these additional info queries. Signed-off-by: Stephen Hemminger --- drivers/net/netvsc/hn_ethdev.c | 2 ++ drivers/net/netvsc/hn_rxtx.c | 20 drivers/net/netvsc/hn_var.h| 2 ++ 3 files changed, 24

Re: [dpdk-dev] [PATCH] examples/l3fwd: fix unchecked function return values

2020-05-19 Thread Thomas Monjalon
13/05/2020 22:20, pbhagavat...@marvell.com: > From: Pavan Nikhilesh > > Fix unchecked return values reported by coverity. > > Coverity issue: 354235 > Fixes: 8bd537e9c6cf ("examples/l3fwd: add service core setup based on caps") > > Signed-off-by: Pavan Nikhilesh Applied, thanks

Re: [dpdk-dev] [PATCH] app/testpmd: fix error detection in MTU command

2020-05-19 Thread Shy Shyman
Hi Thank you for the feedback. While I'm ok with the fix you suggested, the warning was placed in order to let the user understand that his/her MTU settings may not impact DPDK. After all in this case(no JUMBO) we are not doing anything besides changing the dev->data->mtu. I think there is som

Re: [dpdk-dev] [PATCH v2 2/2] examples/kni: fix MTU change to setup Tx queue

2020-05-19 Thread Thomas Monjalon
15/05/2020 13:29, Ferruh Yigit: > On 5/14/2020 5:09 AM, Rasesh Mody wrote: > > This patch adds a fix to setup Tx queue when changing KNI interface MTU. > > It ensures device can safely start txq post MTU change operation. > > > > Fixes: fc9ee41b7016 ("examples/kni: convert to new ethdev offloads A

Re: [dpdk-dev] [PATCH v5] mempool/octeontx2: add devargs to lock ctx in cache

2020-05-19 Thread Thomas Monjalon
11/05/2020 12:07, pbhagavat...@marvell.com: > From: Pavan Nikhilesh > > Add device arguments to lock NPA aura and pool contexts in NDC cache. > The device args take hexadecimal bitmask where each bit represent the > corresponding aura/pool id. > Example: > -w 0002:02:00.0,npa_lock_mask=0xf

Re: [dpdk-dev] [PATCH v2] build: add note about make system deprecation

2020-05-19 Thread Thomas Monjalon
27/04/2020 17:04, Ferruh Yigit: > On 4/27/2020 3:25 PM, Bruce Richardson wrote: > > When anyone uses the make build system, they are to be informed > > about upcoming plans to deprecate and subsequently remove that > > system and to use meson and ninja instead. > > > > Signed-off-by: Bruce Richard

Re: [dpdk-dev] [PATCH 2/2] ring: empty optimization

2020-05-19 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Stephen Hemminger > Sent: Tuesday, May 19, 2020 5:52 PM > > On Tue, 19 May 2020 15:27:25 + > Morten Brørup wrote: > > > diff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h > > index 9078e7c24..f67141482 100644 > > --- a/

Re: [dpdk-dev] [PATCH] meson: error out on failed kernel module builds

2020-05-19 Thread Thomas Monjalon
11/05/2020 12:27, Bruce Richardson: > On Mon, May 11, 2020 at 11:25:13AM +0100, Anatoly Burakov wrote: > > Now that kernel modules aren't built by default, we can be more > > strict with their build process, and fail the build if they were > > requested to be built, but weren't. > > > > Signed-off

Re: [dpdk-dev] [PATCH 2/2] ring: empty optimization

2020-05-19 Thread Stephen Hemminger
On Tue, 19 May 2020 15:27:25 + Morten Brørup wrote: > diff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h > index 9078e7c24..f67141482 100644 > --- a/lib/librte_ring/rte_ring.h > +++ b/lib/librte_ring/rte_ring.h > @@ -733,7 +733,9 @@ rte_ring_full(const struct rte_ring *r) >

Re: [dpdk-dev] [PATCH v1 1/2] devtools: add internal ABI version check

2020-05-19 Thread David Marchand
On Thu, Apr 30, 2020 at 7:54 AM Haiyue Wang wrote: > > INTERNAL is new introduced version, update the shell script that checks > whether built libraries are versioned with expected ABI (current ABI, > current ABI + 1, EXPERIMENTAL, or INTERNAL). > > Signed-off-by: Haiyue Wang > --- > devtools/ch

[dpdk-dev] [PATCH 2/2] ring: empty optimization

2020-05-19 Thread Morten Brørup
Testing if the ring is empty is as simple as comparing the producer and consumer pointers. In theory, this optimization reduces the number of potential cache misses from 3 to 2 by not having to read r->mask in rte_ring_count(). The modification of this function were also discussed in the RFC here

[dpdk-dev] [PATCH 1/2] ring: coding style cleanup

2020-05-19 Thread Morten Brørup
Fix coding style violations that checkpatch will complain about. Add missing "int" after "unsigned". Add missing spaces around "+=" and "+". Remove superfluous type cast of numerical constant. Suggested-by: Konstantin Ananyev Signed-off-by: Morten Brørup --- lib/librte_ring/rte_ring.c |

[dpdk-dev] [PATCH 0/2] ring: empty optimization

2020-05-19 Thread Morten Brørup
Testing if the ring is empty is as simple as comparing the producer and consumer pointers. Checkpatch complains about existing coding style violations, so the first part of the patch fixes those, and contains no functional changes. Morten Brørup (2): ring: coding style cleanup ring: empty opt

Re: [dpdk-dev] [PATCH v2 2/2] test: support cleanup in bitrate and latency test

2020-05-19 Thread Stephen Hemminger
On Tue, 19 May 2020 16:22:58 +0530 Hemant Agrawal wrote: > +/* To test free the resources from bitrate_reg test */ > +static int > +test_stats_bitrate_free(void) > +{ > + int ret = 0; > + > + ret = rte_metrics_deinit(); Coverity will complain about extra initialization like this

[dpdk-dev] DPDK techboard minutes of May 6

2020-05-19 Thread Jerin Kollanukkaran
Meeting notes for the DPDK technical board meeting held on 2020-05-06 Attendees: - Bruce Richardson - Ferruh Yigit - Hemant Agrawal - Jerin Jacob (Chair) - Kevin Traynor - Konstantin Ananyev - Olivier Matz - Stephen Hemminger

Re: [dpdk-dev] [PATCH v2 1/2] lib/metrics: fix to reset the init flag

2020-05-19 Thread Stephen Hemminger
On Tue, 19 May 2020 16:22:57 +0530 Hemant Agrawal wrote: > diff --git a/lib/librte_metrics/rte_metrics.c > b/lib/librte_metrics/rte_metrics.c > index e07670219f..dba6409c27 100644 > --- a/lib/librte_metrics/rte_metrics.c > +++ b/lib/librte_metrics/rte_metrics.c > @@ -85,6 +85,7 @@ rte_metrics_de

Re: [dpdk-dev] [PATCHv2 1/2] bitratestats: add support for free

2020-05-19 Thread Stephen Hemminger
On Thu, 14 May 2020 15:00:00 +0530 Hemant Agrawal wrote: > > +int > +rte_stats_bitrate_free(struct rte_stats_bitrates *bitrate_data) > +{ > + if (bitrate_data) > + rte_free(bitrate_data); > + return 0; > +} rte_free of NULL is allowed, the test is not needed. Should be voi

Re: [dpdk-dev] [PATCH v1 2/2] devtools: updating internal symbols ABI version

2020-05-19 Thread David Marchand
On Thu, Apr 30, 2020 at 7:54 AM Haiyue Wang wrote: > > INTERNAL is new introduced version, update the script that automatically > leaving internal section exactly as it is. > > Signed-off-by: Haiyue Wang > --- > devtools/update_version_map_abi.py | 37 +++--- > 1 file cha

Re: [dpdk-dev] [PATCH] app/testpmd: fix error detection in MTU command

2020-05-19 Thread Ferruh Yigit
On 5/18/2020 10:27 AM, Shy Shyman wrote: > MTU is used in testpmd to set the maximum payload size for packets. > According to testpmd, the setting influnce RX only. > In rte_ethdev there's no relation between MTU setting and JUMBO offload or > rx_max_pkt_len. > > The previous fix in patch referenc

Re: [dpdk-dev] [PATCH v2] build: don't parse build configs of explicitly disabled drivers

2020-05-19 Thread Thomas Monjalon
07/05/2020 12:13, Darek Stojaczyk: > Even when a PMD was disabled with meson's disable_drivers option > its config file was still being parsed. Some of the PMD configs > attempt to find a library they depend on and parse its header files > with certain assumptions. If the library is found, but it's

Re: [dpdk-dev] [PATCH v6] meter: provide experimental alias of API for old apps

2020-05-19 Thread Thomas Monjalon
19/05/2020 15:26, Dumitrescu, Cristian: > From: Yigit, Ferruh > > > > On v20.02 some meter APIs have been matured and symbols moved from > > EXPERIMENTAL to DPDK_20.0.1 block. > > > > This can break the applications that were using these mentioned APIs on > > v19.11. Although there is no modific

Re: [dpdk-dev] [PATCH v6] meter: provide experimental alias of API for old apps

2020-05-19 Thread Ray Kinsella
On 19/05/2020 13:16, Ferruh Yigit wrote: > On v20.02 some meter APIs have been matured and symbols moved from > EXPERIMENTAL to DPDK_20.0.1 block. > > This can break the applications that were using these mentioned APIs on > v19.11. Although there is no modification on the APIs and the action i

[dpdk-dev] [PATCH v4 8/8] bus/pci: support Windows with bifurcated drivers

2020-05-19 Thread talshn
From: Tal Shnaiderman Uses SetupAPI.h functions to scan PCI tree. Uses DEVPKEY_Device_Numa_Node to get the PCI NUMA node. Uses SPDRP_BUSNUMBER and SPDRP_BUSNUMBER to get the BDF. scanning currently supports types RTE_KDRV_NONE. Signed-off-by: Tal Shnaiderman --- drivers/bus/pci/windows/pci.c

[dpdk-dev] [PATCH v4 6/8] drivers: fix incorrect meson import folder for Windows

2020-05-19 Thread talshn
From: Tal Shnaiderman import library (/IMPLIB) in meson.build should use the 'drivers' and not 'libs' folder. The error is: fatal error LNK1149: output filename matches input filename. The fix uses the correct folder. Fixes: 5ed3766981 ("drivers: process shared link dependencies as for libs")

[dpdk-dev] [PATCH v4 5/8] drivers: ignore pmdinfogen generation for Windows

2020-05-19 Thread talshn
From: Tal Shnaiderman pmdinfogen generation is currently unsupported for Windows. The relevant part in meson.build is skipped. Signed-off-by: Tal Shnaiderman --- drivers/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/meson.build b/drivers/meson.build

[dpdk-dev] [PATCH v4 4/8] pci: fix format warning on Windows

2020-05-19 Thread talshn
From: Tal Shnaiderman the struct rte_pci_addr defines domain as uint32_t variable however the PCI_PRI_FMT macro used for logging the struct sets the format of domain to uint16_t. The mismatch causes the following warning messages in Windows clang build: format specifies type 'unsigned short' bu

[dpdk-dev] [PATCH v4 2/8] pci: use OS generic memory mapping functions

2020-05-19 Thread talshn
From: Tal Shnaiderman Changing all of PCIs Unix memory mapping to the new memory allocation API wrapper. Change all of PCI mapping function usage in bus/pci to support the new API. Signed-off-by: Tal Shnaiderman --- drivers/bus/pci/bsd/pci.c| 2 +- drivers/bus/pci/linux/pci_uio.c |

[dpdk-dev] [PATCH v4 7/8] bus/pci: introduce Windows support with stubs

2020-05-19 Thread talshn
From: Tal Shnaiderman Addition of stub eal and bus/pci functions to compile bus/pci for Windows. Signed-off-by: Tal Shnaiderman --- drivers/baseband/meson.build | 4 + drivers/bus/ifpga/meson.build | 6 ++ drivers/bus/pci/meson.build| 14 ++- drivers/bus/pci/pci_common.

[dpdk-dev] [PATCH v4 1/8] eal: move OS common functions to single file

2020-05-19 Thread talshn
From: Tal Shnaiderman Move common functions between Unix and Windows to eal_common_config.c. Those simple functions are getter functions for IOVA, configuration, Multi-process. Move rte_config and runtime_dir to be defined in a common file. Signed-off-by: Tal Shnaiderman --- lib/librte_eal/c

[dpdk-dev] [PATCH v4 0/8] Windows bus/pci support

2020-05-19 Thread talshn
From: Tal Shnaiderman This patchset implements the EAL and PCI functions needed for probing PMDs using RTE_KDRV_NONE on Windows. Depends-on: series-9713 ("Windows basic memory management") v4: * Fixed various warnings and naming conventions(DmitryK). * Fixed broken mingw-64 bui

[dpdk-dev] [PATCH v4 3/8] pci: build on Windows

2020-05-19 Thread talshn
From: Tal Shnaiderman Added in Windows header file includes to include off_t type since it is needed by PCI. export per_lcore__rte_errno from eal since it is needed by PCI. Signed-off-by: Tal Shnaiderman --- lib/librte_eal/rte_eal_exports.def | 1 + lib/librte_eal/rte_eal_version.map

Re: [dpdk-dev] [PATCH] app/testpmd: fix error detection in MTU command

2020-05-19 Thread Iremonger, Bernard
Hi Shy > -Original Message- > From: Shy Shyman > Sent: Monday, May 18, 2020 10:27 AM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Xing, Beilei > ; Iremonger, Bernard > ; xavier.hu...@huawei.com > Subject: [PATCH] app/testpmd: fix error detection in MTU command > > MTU is used in testpmd to set

Re: [dpdk-dev] [PATCH v6] abi: provide experimental alias of API for old apps

2020-05-19 Thread Ray Kinsella
On 18/05/2020 18:18, Thomas Monjalon wrote: > 16/05/2020 13:53, Neil Horman: >> On Fri, May 15, 2020 at 04:01:53PM +0100, Ray Kinsella wrote: >>> From: Ferruh Yigit >>> >>> On v20.02 some APIs matured and symbols moved from EXPERIMENTAL to >>> DPDK_20.0.1 block. >>> >>> This had the affect of b

Re: [dpdk-dev] [PATCH v6] abi: provide experimental alias of API for old apps

2020-05-19 Thread Ray Kinsella
On 18/05/2020 19:32, Ferruh Yigit wrote: > On 5/18/2020 6:51 PM, Thomas Monjalon wrote: >> 18/05/2020 19:34, Ferruh Yigit: >>> On 5/18/2020 6:18 PM, Thomas Monjalon wrote: 16/05/2020 13:53, Neil Horman: > On Fri, May 15, 2020 at 04:01:53PM +0100, Ray Kinsella wrote: >> From: Ferruh

Re: [dpdk-dev] [PATCH] doc: add link to stable roadmap

2020-05-19 Thread Thomas Monjalon
19/03/2020 09:33, David Marchand: > On Fri, Mar 13, 2020 at 8:55 PM Kevin Traynor wrote: > > > > The versions currently listed as maintained have gone stale. > > > > Rather than having to keep updating this doc, point to the > > dpdk.org stable roadmap. > > > > Signed-off-by: Kevin Traynor > > A

Re: [dpdk-dev] [PATCH v3] doc: use glob terminology

2020-05-19 Thread Thomas Monjalon
04/05/2020 15:45, jer...@marvell.com: > From: Jerin Jacob > > Glob is the terminology used in fnmatch man page. > Use glob terminology across DPDK for shell pattern. > > Signed-off-by: Jerin Jacob > --- > > v3: > - Address Thomas's comments > http://patches.dpdk.org/patch/68225/ Acked-by: Tho

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] removing typing error of word 'through' in multiple places

2020-05-19 Thread Thomas Monjalon
15/05/2020 18:50, Muhammad Bilal: > Removed the typing error in doc/guides/eventdevs/index.rst, > drivers/net/mlx5/mlx5.c and in lib/librte_vhost/rte_vhost.h > > Cc: dev@dpdk.org > Cc: sta...@dpdk.org > Cc: jer...@marvell.com > Cc: ma...@mellanox.com > Cc: shah...@mellanox.com > Cc: maxime.coque..

Re: [dpdk-dev] [PATCH v8 00/13] NXP DPAAx: move internal symbols to INTERNAL

2020-05-19 Thread David Marchand
On Fri, May 15, 2020 at 11:50 AM Hemant Agrawal wrote: > This patchset moves the internal symbol to the INTERNAL sections > > This patch also change some of the shared variables to function > calls. (Mostly control path used variables). > > Hemant Agrawal (13): > common/dpaax: move internal symb

Re: [dpdk-dev] [PATCH] maintainers: update for ice

2020-05-19 Thread Ferruh Yigit
On 5/13/2020 6:07 AM, Lu, Wenzhuo wrote: > >> -Original Message- >> From: Zhang, Qi Z >> Sent: Thursday, April 30, 2020 5:28 PM >> To: Ye, Xiaolong >> Cc: Lu, Wenzhuo ; Yang, Qiming >> ; Yigit, Ferruh ; >> dev@dpdk.org; Zhang, Qi Z >> Subject: [PATCH] maintainers: update for ice >> >> R

Re: [dpdk-dev] [PATCH v2] vhost: fix zero-copy cannot be enabled

2020-05-19 Thread Ferruh Yigit
On 5/19/2020 8:13 AM, Ye Xiaolong wrote: > Hi, Maxime & Ferruh > > This patch is used to fix the regression caused by commit > 715070ea10e6 ("vhost: prevent zero-copy with incompatible client mode") which > was introduced in RC2, I think we should get it in this release. +1, v4 of the patch appl

Re: [dpdk-dev] [PATCH v4] vhost: fix zero-copy cannot be enabled

2020-05-19 Thread Ferruh Yigit
On 5/19/2020 11:15 AM, Xuan Ding wrote: > This patch fixes the situation where vhost-user cannot start as server with > dequeue_zero_copy enabled. > > Using flag instead of vsocket->is_server to determine whether vhost-user is > in client mode. Because vsocket->is_server is not ready at this time.

Re: [dpdk-dev] [PATCH v6] meter: provide experimental alias of API for old apps

2020-05-19 Thread Dumitrescu, Cristian
> -Original Message- > From: Yigit, Ferruh > Sent: Tuesday, May 19, 2020 1:16 PM > To: Dumitrescu, Cristian ; Ray Kinsella > ; Neil Horman ; Eelco > Chaudron > Cc: dev@dpdk.org; Yigit, Ferruh ; Thomas Monjalon > ; David Marchand ; > sta...@dpdk.org; Luca Boccassi ; Richardson, Bruce >

Re: [dpdk-dev] [PATCH v3 0/8] fib: implement AVX512 vector lookup

2020-05-19 Thread David Marchand
On Tue, May 19, 2020 at 2:57 PM Medvedkin, Vladimir wrote: > > Hi, > > On 19/05/2020 13:23, David Marchand wrote: > > On Tue, May 19, 2020 at 2:15 PM Vladimir Medvedkin > > wrote: > >> This patch series implements vectorized lookup using AVX512 for > >> ipv4 dir24_8 and ipv6 trie algorithms. > >>

Re: [dpdk-dev] [PATCH v3 0/8] fib: implement AVX512 vector lookup

2020-05-19 Thread Medvedkin, Vladimir
Hi, On 19/05/2020 13:23, David Marchand wrote: On Tue, May 19, 2020 at 2:15 PM Vladimir Medvedkin wrote: This patch series implements vectorized lookup using AVX512 for ipv4 dir24_8 and ipv6 trie algorithms. Also introduced rte_fib_set_lookup_fn() to change lookup function type. Added option t

Re: [dpdk-dev] incorrect vlan_tci in rte mbuf

2020-05-19 Thread Zhang, Qi Z
Hi Xiaoping: According to i40e datasheet, for packet with multiple buffer, the L2TAG should only be valid on last Rx descriptor. So it is identical with what you observed and it looks like a bug in the vector path. Could you try if below change can fix the issue? --- a/d

Re: [dpdk-dev] [PATCH 0/5] small fixes for telemetry rework.

2020-05-19 Thread Thomas Monjalon
12/05/2020 17:28, Ciara Power: > > Ciara Power (5): > telemetry: keep telemetry threads separate from data plane > telemetry: fix error checking for strchr function > telemetry: fix closing socket fd on error > telemetry: fix checking error return for socket creation > telemetry: fix buf

Re: [dpdk-dev] incorrect vlan_tci in rte mbuf

2020-05-19 Thread Jeff Guo
hi, xiaoping Base on the HW behaviors, either i40e normal recv or i40e vector recv should use the offload flags of the last rxd to resign to the first segment, then restore the mbuf to the recv packets, i am not sure if this could answer your question, Anyway, you could use below quick check

Re: [dpdk-dev] [PATCH v3 0/8] fib: implement AVX512 vector lookup

2020-05-19 Thread David Marchand
On Tue, May 19, 2020 at 2:15 PM Vladimir Medvedkin wrote: > > This patch series implements vectorized lookup using AVX512 for > ipv4 dir24_8 and ipv6 trie algorithms. > Also introduced rte_fib_set_lookup_fn() to change lookup function type. > Added option to select lookup function type in testfib

Re: [dpdk-dev] [PATCH] cryptodev: fix SHA-1 digest enum comment

2020-05-19 Thread Dybkowski, AdamX
> -Original Message- > From: Trahe, Fiona > Sent: Tuesday, 19 May, 2020 12:29 > To: Dybkowski, AdamX ; Anoob Joseph > ; dev@dpdk.org; akhil.go...@nxp.com > Cc: sta...@dpdk.org; Trahe, Fiona > Subject: RE: [dpdk-dev] [PATCH] cryptodev: fix SHA-1 digest enum comment > > Hi Adam, Anoob, >

[dpdk-dev] [PATCH v6] meter: provide experimental alias of API for old apps

2020-05-19 Thread Ferruh Yigit
On v20.02 some meter APIs have been matured and symbols moved from EXPERIMENTAL to DPDK_20.0.1 block. This can break the applications that were using these mentioned APIs on v19.11. Although there is no modification on the APIs and the action is positive and matures the APIs, the affect can be neg

[dpdk-dev] [PATCH v3 8/8] app/testfib: add support for different lookup functions

2020-05-19 Thread Vladimir Medvedkin
Added -v option to switch between different lookup implementations to measure their performance and correctness. Signed-off-by: Vladimir Medvedkin --- app/test-fib/main.c | 58 ++--- 1 file changed, 55 insertions(+), 3 deletions(-) diff --git a/ap

[dpdk-dev] [PATCH v3 7/8] fib6: introduce AVX512 lookup

2020-05-19 Thread Vladimir Medvedkin
Add new lookup implementation for FIB6 trie algorithm using AVX512 instruction set Signed-off-by: Vladimir Medvedkin --- lib/librte_fib/Makefile | 10 ++ lib/librte_fib/meson.build | 9 ++ lib/librte_fib/rte_fib6.h| 3 +- lib/librte_fib/trie.c| 21 lib/librte_fib/tr

[dpdk-dev] [PATCH v3 6/8] fib6: move lookup definition into the header file

2020-05-19 Thread Vladimir Medvedkin
Move trie table layout and lookup defenition into the private header file. This is necessary for implementing a vectorized lookup function in a separate .с file. Signed-off-by: Vladimir Medvedkin --- lib/librte_fib/trie.c | 121 -- lib/librte_fib/t

[dpdk-dev] [PATCH v3 4/8] fib: introduce AVX512 lookup

2020-05-19 Thread Vladimir Medvedkin
Add new lookup implementation for DIR24_8 algorithm using AVX512 instruction set Signed-off-by: Vladimir Medvedkin --- lib/librte_fib/Makefile | 14 lib/librte_fib/dir24_8.c| 24 ++ lib/librte_fib/dir24_8_avx512.c | 165 lib/lib

[dpdk-dev] [PATCH v3 5/8] fib6: make lookup function type configurable

2020-05-19 Thread Vladimir Medvedkin
Add type argument to trie_get_lookup_fn() Now it only supports RTE_FIB6_TRIE_SCALAR Add new rte_fib6_set_lookup_fn() - user can change lookup function type runtime. Signed-off-by: Vladimir Medvedkin --- lib/librte_fib/rte_fib6.c | 19 ++- lib/librte_fib/rte_fib6.h

[dpdk-dev] [PATCH v3 3/8] fib: move lookup definition into the header file

2020-05-19 Thread Vladimir Medvedkin
Move dir24_8 table layout and lookup defenition into the private header file. This is necessary for implementing a vectorized lookup function in a separate .с file. Signed-off-by: Vladimir Medvedkin --- lib/librte_fib/dir24_8.c | 225 +-- lib/librte_fi

[dpdk-dev] [PATCH v3 1/8] eal: introduce zmm type for AVX 512-bit

2020-05-19 Thread Vladimir Medvedkin
New data type to manipulate 512 bit AVX values. Signed-off-by: Vladimir Medvedkin --- lib/librte_eal/x86/include/rte_vect.h | 20 1 file changed, 20 insertions(+) diff --git a/lib/librte_eal/x86/include/rte_vect.h b/lib/librte_eal/x86/include/rte_vect.h index df5a607..ffe4

[dpdk-dev] [PATCH v3 0/8] fib: implement AVX512 vector lookup

2020-05-19 Thread Vladimir Medvedkin
This patch series implements vectorized lookup using AVX512 for ipv4 dir24_8 and ipv6 trie algorithms. Also introduced rte_fib_set_lookup_fn() to change lookup function type. Added option to select lookup function type in testfib application. v3: - separate out the AVX-512 code into a separate fi

[dpdk-dev] [PATCH v3 2/8] fib: make lookup function type configurable

2020-05-19 Thread Vladimir Medvedkin
Add type argument to dir24_8_get_lookup_fn() Now it supports 3 different lookup implementations: RTE_FIB_DIR24_8_SCALAR_MACRO RTE_FIB_DIR24_8_SCALAR_INLINE RTE_FIB_DIR24_8_SCALAR_UNI Add new rte_fib_set_lookup_fn() - user can change lookup function type runtime. Signed-off-by: Vladimir Medvedk

Re: [dpdk-dev] [PATCH v2 1/2] lib/metrics: fix to reset the init flag

2020-05-19 Thread David Marchand
On Tue, May 19, 2020 at 12:55 PM Hemant Agrawal wrote: > > metrics_initialized shall be reset in deinit function > This is currently causing issue in running > metrics_autotest mulutiple times > > Fixes: 07c1b6925b65 ("telemetry: invert dependency on metrics library") > > Signed-off-by: Hemant Agr

[dpdk-dev] [PATCH v2 0/1] cryptodev: fix SHA-1 digest enum comment

2020-05-19 Thread Adam Dybkowski
This patch fixes improper SHA-1 digest size in the enum comment and also adds the note about HMAC-SHA-1-96. v2: * add info about HMAC-SHA-1-96 Adam Dybkowski (1): cryptodev: fix SHA-1 digest enum comment lib/librte_cryptodev/rte_crypto_sym.h | 5 +++-- 1 file changed, 3 insertions(+), 2 delet

[dpdk-dev] [PATCH v2 1/1] cryptodev: fix SHA-1 digest enum comment

2020-05-19 Thread Adam Dybkowski
This patch fixes improper SHA-1 digest size in the enum comment and also adds the note about HMAC-SHA-1-96. Fixes: 1bd407fac80b ("cryptodev: extract symmetric operations") Cc: sta...@dpdk.org Signed-off-by: Adam Dybkowski --- lib/librte_cryptodev/rte_crypto_sym.h | 5 +++-- 1 file changed, 3 in

Re: [dpdk-dev] incorrect vlan_tci in rte mbuf

2020-05-19 Thread Yan, Xiaoping (NSB - CN/Hangzhou)
Hi, I tried to use gdb to print the rx descriptor, and it turned out that only the rxd for the last segment has correct l2tag1 value. Test step: ping xx.xx.xx.xx -s 2500, from a vlan interface with vlan id 1901, MTU 9000. (this will sends 1 packet, and needs two mbuf segments to receive, len

Re: [dpdk-dev] [PATCH v8 05/13] net/dpaa: move internal symbols into INTERNAL section

2020-05-19 Thread Ray Kinsella
On 19/05/2020 12:39, Hemant Agrawal wrote: > Hi Ray, > >> On 15/05/2020 10:47, Hemant Agrawal wrote: >>> This patch moves the internal symbols to INTERNAL sections so that any >>> change in them is not reported as ABI breakage. >>> >>> Signed-off-by: Hemant Agrawal >>> --- >>> devtools/libabi

Re: [dpdk-dev] [PATCH v8 05/13] net/dpaa: move internal symbols into INTERNAL section

2020-05-19 Thread Hemant Agrawal
Hi Ray, > On 15/05/2020 10:47, Hemant Agrawal wrote: > > This patch moves the internal symbols to INTERNAL sections so that any > > change in them is not reported as ABI breakage. > > > > Signed-off-by: Hemant Agrawal > > --- > > devtools/libabigail.abignore | 2 ++ > > drivers/net/

Re: [dpdk-dev] [PATCH v8 04/13] mempool/dpaa2: move internal symbols into INTERNAL section

2020-05-19 Thread Ray Kinsella
On 19/05/2020 12:16, Hemant Agrawal wrote: > >> On 15/05/2020 10:47, Hemant Agrawal wrote: >>> This patch moves the internal symbols to INTERNAL sections so that any >>> change in them is not reported as ABI breakage. >>> >>> Signed-off-by: Hemant Agrawal >>> --- >>> devtools/libabigail.abig

Re: [dpdk-dev] [PATCH v8 13/13] bus/fslmc: remove unused symbols

2020-05-19 Thread Ray Kinsella
On 15/05/2020 10:47, Hemant Agrawal wrote: > rte_dpaa2_memsegs is not being used by any other library > or even within bus. > > Signed-off-by: Hemant Agrawal > --- > drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c| 6 -- > drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 3 --- > drivers/bus/fs

Re: [dpdk-dev] [PATCH v8 12/13] bus/fslmc: share mcp ptr as function across libs

2020-05-19 Thread Ray Kinsella
On 15/05/2020 10:47, Hemant Agrawal wrote: > Currently rte_mcp_ptr_list is being shared as a variable > across libs. This is only used in control path. > This patch change it to a exported function based access. > > Signed-off-by: Hemant Agrawal > --- > drivers/bus/fslmc/fslmc_vfio.c

Re: [dpdk-dev] [PATCH v8 11/13] bus/dpaa: change netcfg access as function

2020-05-19 Thread Ray Kinsella
On 15/05/2020 10:47, Hemant Agrawal wrote: > This patch changes the export of fman port config > as function call instead of direct variable access. > This is in control path, so it will not impact perf. > > Signed-off-by: Hemant Agrawal > --- > drivers/bus/dpaa/dpaa_bus.c | 6 +

Re: [dpdk-dev] [PATCH v8 09/13] bus/dpaa: share qman portal ids as function calls

2020-05-19 Thread Ray Kinsella
On 15/05/2020 10:47, Hemant Agrawal wrote: > qman caam and pool portal ids are only used in control > path. This patch changes their inter library access to > function call instead of direct shared variable. > > Signed-off-by: Hemant Agrawal > --- > drivers/bus/dpaa/base/qbman/qman_driver.c |

  1   2   >