RE: no printf in drivers code

2023-02-03 Thread Honnappa Nagarahalli
> Subject: Re: no printf in drivers code > > On Fri, Feb 3, 2023 at 5:40 PM Thomas Monjalon > wrote: > > > > 03/02/2023 17:18, Honnappa Nagarahalli: > > > From: Thomas Monjalon > > > > > > > > We have too many drivers using printf() instead of rte_log(). > > > > Please propose a plan to replac

Re: [PATCH V8] ethdev: fix one address occupies two entries in MAC addrs

2023-02-03 Thread lihuisong (C)
在 2023/2/3 20:58, Ferruh Yigit 写道: On 2/3/2023 1:56 AM, lihuisong (C) wrote: 在 2023/2/3 5:10, Thomas Monjalon 写道: 02/02/2023 19:09, Ferruh Yigit: On 2/2/2023 12:36 PM, Huisong Li wrote: The dev->data->mac_addrs[0] will be changed to a new MAC address when applications modify the default MAC

RE: no printf in drivers code

2023-02-03 Thread Chautru, Nicolas
> From: Thomas Monjalon > > Hello, > > We have too many drivers using printf() instead of rte_log(). > Please propose a plan to replace or remove the calls to printf(). > If no plan, I could propose one but you may not like it :) > > Affected drivers are: > baseband/acc Will push a pat

Re: Sign changes through function signatures

2023-02-03 Thread Tyler Retzlaff
On Fri, Feb 03, 2023 at 12:05:04PM +, Bruce Richardson wrote: > On Thu, Feb 02, 2023 at 10:26:48PM +0100, Morten Brørup wrote: > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > Sent: Thursday, 2 February 2023 21.45 > > > > > > 02/02/2023 21:26, Tyler Retzlaff: > > > > On Thu, Feb

Re: [dpdk-dev] [PATCH v1 01/12] mldev: introduce machine learning device library

2023-02-03 Thread Thomas Monjalon
03/02/2023 21:26, Stephen Hemminger: > On Fri, 03 Feb 2023 21:18:40 +0100 > Thomas Monjalon wrote: > > > 03/02/2023 18:33, Stephen Hemminger: > > > On Fri, 03 Feb 2023 09:42:45 +0100 > > > Thomas Monjalon wrote: > > > > > > > 03/02/2023 01:25, Stephen Hemminger: > > > > > On Wed, 1 Feb 2023

Re: [PATCH] eal: introduce atomics abstraction

2023-02-03 Thread Tyler Retzlaff
On Fri, Feb 03, 2023 at 12:19:13PM +, Bruce Richardson wrote: > On Thu, Feb 02, 2023 at 11:00:23AM -0800, Tyler Retzlaff wrote: > > On Thu, Feb 02, 2023 at 09:43:58AM +0100, Morten Brørup wrote: > > > > From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > > > > Sent: Wednesday, 1 Februa

Re: [dpdk-dev] [PATCH v1 01/12] mldev: introduce machine learning device library

2023-02-03 Thread Stephen Hemminger
On Fri, 03 Feb 2023 21:18:40 +0100 Thomas Monjalon wrote: > 03/02/2023 18:33, Stephen Hemminger: > > On Fri, 03 Feb 2023 09:42:45 +0100 > > Thomas Monjalon wrote: > > > > > 03/02/2023 01:25, Stephen Hemminger: > > > > On Wed, 1 Feb 2023 13:34:41 + > > > > Shivah Shankar Shankar Narayan

Re: [dpdk-dev] [PATCH v1 01/12] mldev: introduce machine learning device library

2023-02-03 Thread Thomas Monjalon
03/02/2023 18:33, Stephen Hemminger: > On Fri, 03 Feb 2023 09:42:45 +0100 > Thomas Monjalon wrote: > > > 03/02/2023 01:25, Stephen Hemminger: > > > On Wed, 1 Feb 2023 13:34:41 + > > > Shivah Shankar Shankar Narayan Rao wrote: > > > > > > > --- a/lib/eal/include/rte_log.h > > > > +++ b/lib

[PATCH] pipeline: add RSS support

2023-02-03 Thread Cristian Dumitrescu
Add pipeline support for the Receive Side Scaling (RSS) hashing. While the pipeline already supports the stateless hashing schemes, the RSS scheme uses a key configured by the control plane and preserved between successive RSS hash invocations. Signed-off-by: Cristian Dumitrescu Signed-off-by: Ka

[PATCH v11 3/3] testpmd: cleanup cleanly from signal

2023-02-03 Thread Stephen Hemminger
Do a clean shutdown of testpmd when a signal is received; instead of having testpmd kill itself. This fixes the problem where a signal could be received in the middle of a PMD and then the signal handler would call PMD's close routine leading to locking problems. The cmdline structure no longer n

[PATCH v11 2/3] cmdline: handle EOF in cmdline_poll

2023-02-03 Thread Stephen Hemminger
If end of file is reached on input, then cmdline_poll() will return 1 (ie file has something); and then the cmdline_in() call to read will return 0. With the existing code, caller has no way to tell that end of file has been reached and will retry forever. A good way to handle this is to make end

[PATCH v11 1/3] cmdline: make rdline status not private

2023-02-03 Thread Stephen Hemminger
The function cmdline_poll() returns values from rdline_status enum but that was moved to being defined only in cmdline_private.h. For proper use of the API the return value needs to be visible to callers. This was not a problem before because cmdline_poll() was not used anywhere. Fixes: f8f8dc289

[PATCH v11 0/3] Fix cmdline_poll and testpmd signal handling

2023-02-03 Thread Stephen Hemminger
This patchset keeps uncovering bad practices in the cmdline library around end of file and signal handling. Stephen Hemminger (3): cmdline: make rdline status not private cmdline: handle EOF in cmdline_poll testpmd: cleanup cleanly from signal app/test-pmd/cmdline.c| 29 +--

Re: [PATCH 0/3] remove usage of rte_panic() and ASSERT() from PMD

2023-02-03 Thread Ferruh Yigit
On 2/3/2023 7:57 AM, Chaoyong He wrote: > This patch series is aimed to allow the DPDK app to deal with > the error as necessary, by: > * Remove the usage of rte_panic() > * Remove the usage of ASSERT() > > James Hershaw (3): > net/nfp: remove panic usage during reconfig > net/nfp: remove pani

Re: [PATCH v6 0/3] add IPv6 routing extension support

2023-02-03 Thread Ferruh Yigit
On 2/2/2023 10:00 AM, Rongwei Liu wrote: > Support IPv6 routing extension header matching with new rte_flow item. > Add encapsulation support for IPv6 routing extension header. > > v6: use non doxgen style comments for 'segments'. > v5: remove flex array 'segments'. > v4: use flex array to define

Re: no printf in drivers code

2023-02-03 Thread David Marchand
On Fri, Feb 3, 2023 at 5:40 PM Thomas Monjalon wrote: > > 03/02/2023 17:18, Honnappa Nagarahalli: > > From: Thomas Monjalon > > > > > > We have too many drivers using printf() instead of rte_log(). > > > Please propose a plan to replace or remove the calls to printf(). > > > If no plan, I could p

Re: [RFC PATCH 0/1] Specify C-standard requirement for DPDK builds

2023-02-03 Thread Bruce Richardson
On Fri, Feb 03, 2023 at 11:45:04AM -0500, Ben Magistro wrote: >In our case we have other libraries that we are using that have >required us to specify a minimum c++ version (14/17 most recently for >one) so it doesn't feel like a big ask/issue to us (provided things >don't start con

Re: [PATCH v2] vhost: exclude VM hugepages from coredumps

2023-02-03 Thread Stephen Hemminger
On Tue, 6 Dec 2022 10:05:09 -0500 Mike Pattrick wrote: > + > +static __rte_always_inline void > +mem_set_dump(__rte_unused void *ptr, __rte_unused size_t size, __rte_unused > bool enable) > +{ > +#ifdef MADV_DONTDUMP > + if (madvise(ptr, size, enable ? MADV_DODUMP : MADV_DONTDUMP) == -1) {

Re: [PATCH] net/gve: add support for basic stats

2023-02-03 Thread Ferruh Yigit
On 11/24/2022 7:33 AM, Junfeng Guo wrote: > Add support for dev_ops of stats_get and stats_reset. > > Queue stats update will be moved into xstat [1], but the basic stats > items may still be required. So we just keep the remaining ones and > will implement the queue stats via xstats in the coming

Re: [dpdk-dev] [PATCH v1 01/12] mldev: introduce machine learning device library

2023-02-03 Thread Stephen Hemminger
On Fri, 03 Feb 2023 09:42:45 +0100 Thomas Monjalon wrote: > 03/02/2023 01:25, Stephen Hemminger: > > On Wed, 1 Feb 2023 13:34:41 + > > Shivah Shankar Shankar Narayan Rao wrote: > > > > > --- a/lib/eal/include/rte_log.h > > > +++ b/lib/eal/include/rte_log.h > > > @@ -48,6 +48,7 @@ extern "

Re: [PATCH] dma/ioat: remove printf within ioat driver

2023-02-03 Thread Bruce Richardson
On Fri, Feb 03, 2023 at 04:35:14PM +, Conor Walsh wrote: > rte_log should be used instead of printf within the drivers this patch > changes a printf within the ioat dma driver's start function to an rte log. > The printfs within ioat's dump function will be retained. > > Signed-off-by: Conor W

[PATCH v7 6/7] doc: fix description of L2TPV2 flow item

2023-02-03 Thread Ferruh Yigit
From: Thomas Monjalon The flow item structure includes the protocol definition from the directory lib/net/, so it is reflected in the guide. Section title underlining is also fixed around. Fixes: 3a929df1f286 ("ethdev: support L2TPv2 and PPP procotol") Cc: sta...@dpdk.org Signed-off-by: Thomas

[PATCH v7 7/7] net: mark all big endian types

2023-02-03 Thread Ferruh Yigit
From: Thomas Monjalon Some protocols (ARP, MPLS and HIGIG2) were using uint16_t and uint32_t types for their 16 and 32-bit fields. It was correct but not conveying the big endian nature of these fields. As for other protocols defined in this directory, all types are explicitly marked as big endi

[PATCH v7 5/7] ethdev: use ARP protocol struct for flow matching

2023-02-03 Thread Ferruh Yigit
From: Thomas Monjalon As announced in the deprecation notice, flow item structures should re-use the protocol header definitions from the directory lib/net/. The protocol struct is added in an unnamed union, keeping old field names. The ARP header struct members are used in testpmd instead of t

[PATCH v7 3/7] ethdev: use VXLAN protocol struct for flow matching

2023-02-03 Thread Ferruh Yigit
From: Thomas Monjalon As announced in the deprecation notice, flow item structures should re-use the protocol header definitions from the directory lib/net/. In the case of VXLAN-GPE, the protocol struct is added in an unnamed union, keeping old field names. The VXLAN headers (including VXLAN-G

[PATCH v7 4/7] ethdev: use GTP protocol struct for flow matching

2023-02-03 Thread Ferruh Yigit
From: Thomas Monjalon As announced in the deprecation notice, flow item structures should re-use the protocol header definitions from the directory lib/net/. The protocol struct is added in an unnamed union, keeping old field names. The GTP header struct members are used in apps and drivers ins

[PATCH v7 2/7] net: add smaller fields for VXLAN

2023-02-03 Thread Ferruh Yigit
From: Thomas Monjalon The VXLAN and VXLAN-GPE headers were including reserved fields with other fields in big uint32_t struct members. Some more precise definitions are added as union of the old ones. The new struct members are smaller in size and in names. Signed-off-by: Thomas Monjalon Acke

[PATCH v7 1/7] ethdev: use Ethernet protocol struct for flow matching

2023-02-03 Thread Ferruh Yigit
From: Thomas Monjalon As announced in the deprecation notice, flow item structures should re-use the protocol header definitions from the directory lib/net/. The Ethernet headers (including VLAN) structures are used instead of the redundant fields in the flow items. The remaining protocols to cl

[PATCH v7 0/7] start cleanup of rte_flow_item_*

2023-02-03 Thread Ferruh Yigit
There was a plan to have structures from lib/net/ at the beginning of corresponding flow item structures. Unfortunately this plan has not been followed up so far. This series is a step to make the most used items, compliant with the inheritance design explained above. The old API is kept in anonymo

Re: [RFC PATCH 0/1] Specify C-standard requirement for DPDK builds

2023-02-03 Thread Ben Magistro
In our case we have other libraries that we are using that have required us to specify a minimum c++ version (14/17 most recently for one) so it doesn't feel like a big ask/issue to us (provided things don't start conflicting...hah; not anticipating any issue). Our software is also used internally

Re: no printf in drivers code

2023-02-03 Thread Thomas Monjalon
03/02/2023 17:18, Honnappa Nagarahalli: > From: Thomas Monjalon > > > > We have too many drivers using printf() instead of rte_log(). > > Please propose a plan to replace or remove the calls to printf(). > > If no plan, I could propose one but you may not like it :) > > Does it make sense to add

RE: no printf in drivers code

2023-02-03 Thread Walsh, Conor
> Hello, > > We have too many drivers using printf() instead of rte_log(). > Please propose a plan to replace or remove the calls to printf(). > If no plan, I could propose one but you may not like it :) > > Affected drivers are: > baseband/acc > bus/dpaa > bus/fslmc > cry

[PATCH] dma/ioat: remove printf within ioat driver

2023-02-03 Thread Conor Walsh
rte_log should be used instead of printf within the drivers this patch changes a printf within the ioat dma driver's start function to an rte log. The printfs within ioat's dump function will be retained. Signed-off-by: Conor Walsh --- drivers/dma/ioat/ioat_dmadev.c | 6 +++--- 1 file changed, 3

RE: no printf in drivers code

2023-02-03 Thread Honnappa Nagarahalli
> -Original Message- > From: Thomas Monjalon > Sent: Friday, February 3, 2023 7:57 AM > To: Nicolas Chautru ; hemant.agra...@nxp.com; > Sachin Saxena ; Gagandeep Singh > ; Sunil Uttarwar ; > Bruce Richardson ; Conor Walsh > ; Chaoyong He ; Niklas > Soderlund ; Rasesh Mody > ; Devendra S

RE: [PATCH v3] test/service: fix spurious failures by extending timeout

2023-02-03 Thread Van Haaren, Harry
> -Original Message- > From: Thomas Monjalon > Sent: Friday, February 3, 2023 3:16 PM > To: David Marchand ; Van Haaren, Harry > > Cc: dev@dpdk.org; dpdk...@iol.unh.edu; c...@dpdk.org; > honnappa.nagaraha...@arm.com; mattias.ronnblom > ; Morten Brørup > ; Tyler Retzlaff ; > Aaron Conole

Re: [PATCH v3] test/service: fix spurious failures by extending timeout

2023-02-03 Thread Thomas Monjalon
03/02/2023 16:03, Van Haaren, Harry: > From: Van Haaren, Harry > > > The timeout approach just does not have its place in a functional test. > > > Either this test is rewritten, or it must go to the performance tests > > > list so that we stop getting false positives. > > > Can you work on this? >

Re: [PATCH v6 4/8] ethdev: use GRE protocol struct for flow matching

2023-02-03 Thread Ferruh Yigit
On 2/3/2023 3:12 PM, Thomas Monjalon wrote: > 03/02/2023 16:02, Ferruh Yigit: >> On 2/2/2023 5:16 PM, Thomas Monjalon wrote: >>> 02/02/2023 13:44, Ferruh Yigit: --- a/lib/net/rte_gre.h +++ b/lib/net/rte_gre.h @@ -28,6 +28,8 @@ extern "C" { */ __extension__ struct r

Re: [PATCH v3] test/service: fix spurious failures by extending timeout

2023-02-03 Thread Bruce Richardson
On Fri, Feb 03, 2023 at 03:03:38PM +, Van Haaren, Harry wrote: > > -Original Message- > > From: Van Haaren, Harry > > Sent: Tuesday, January 31, 2023 5:25 PM > > To: David Marchand > > Cc: dev@dpdk.org; dpdk...@iol.unh.edu; c...@dpdk.org; > > honnappa.nagaraha...@arm.com; mattias.ronnb

Re: [PATCH v6 4/8] ethdev: use GRE protocol struct for flow matching

2023-02-03 Thread Thomas Monjalon
03/02/2023 16:02, Ferruh Yigit: > On 2/2/2023 5:16 PM, Thomas Monjalon wrote: > > 02/02/2023 13:44, Ferruh Yigit: > >> --- a/lib/net/rte_gre.h > >> +++ b/lib/net/rte_gre.h > >> @@ -28,6 +28,8 @@ extern "C" { > >> */ > >> __extension__ > >> struct rte_gre_hdr { > >> + union { > >> +

Re: [RFC PATCH 0/1] Specify C-standard requirement for DPDK builds

2023-02-03 Thread Bruce Richardson
On Fri, Feb 03, 2023 at 09:09:14AM -0500, Ben Magistro wrote: >Since this topic keeps coming up in other threads I'll chime in with my >$0.01 here. We've been using CentOS 7 for awhile (and working on >migrating off) but have had to leverage devtoolset/llvmtoolset for >various reas

RE: [PATCH v3] test/service: fix spurious failures by extending timeout

2023-02-03 Thread Van Haaren, Harry
> -Original Message- > From: Van Haaren, Harry > Sent: Tuesday, January 31, 2023 5:25 PM > To: David Marchand > Cc: dev@dpdk.org; dpdk...@iol.unh.edu; c...@dpdk.org; > honnappa.nagaraha...@arm.com; mattias.ronnblom > ; tho...@monjalon.net; Morten Brørup > ; Tyler Retzlaff ; > Aaron Conole

Re: [PATCH v6 8/8] net: mark all big endian types

2023-02-03 Thread Ferruh Yigit
On 2/2/2023 5:20 PM, Thomas Monjalon wrote: > 02/02/2023 13:45, Ferruh Yigit: >> --- a/lib/ethdev/rte_flow.h >> +++ b/lib/ethdev/rte_flow.h >> @@ -642,8 +642,8 @@ struct rte_flow_item_higig2_hdr { >> static const struct rte_flow_item_higig2_hdr rte_flow_item_higig2_hdr_mask >> = { >> .hdr =

Re: [PATCH v6 4/8] ethdev: use GRE protocol struct for flow matching

2023-02-03 Thread Ferruh Yigit
On 2/2/2023 5:16 PM, Thomas Monjalon wrote: > 02/02/2023 13:44, Ferruh Yigit: >> --- a/lib/net/rte_gre.h >> +++ b/lib/net/rte_gre.h >> @@ -28,6 +28,8 @@ extern "C" { >> */ >> __extension__ >> struct rte_gre_hdr { >> + union { >> + struct { >> #if RTE_BYTE_ORDER == RTE_LITTL

Re: [PATCH v2 0/3] Async vhost packed ring optimization

2023-02-03 Thread Maxime Coquelin
On 1/13/23 03:56, Cheng Jiang wrote: To improve the performance of async vhost packed ring. We remove the unnecessary data copy in async vhost packed ring. And add the batch data path in both enqueue data path and dequeue data path. v2: fixed net header settings. Cheng Jiang (3): vhost: r

Re: [PATCH 0/2] add private dump for vhost and virtio

2023-02-03 Thread Maxime Coquelin
On 1/19/23 13:30, Chengwen Feng wrote: This patch addes private dump for vhost and virtio PMDs. Chengwen Feng (2): net/virtio: support private dump net/vhost: support private dump drivers/net/vhost/rte_eth_vhost.c | 21 + drivers/net/virtio/virtio_ethdev.c | 19

Re: [PATCH] vhost: fix net header settings in vhost datapath

2023-02-03 Thread Maxime Coquelin
On 1/4/23 03:39, Wenwu Ma wrote: In vhost sync batch enqueue, the "num_buffers" of virtio net header is not be set, but it should be set to 1 if the mrg_rxbuf feature is turned on, This patch fix the issue. Fixes: ef861692c398 ("vhost: add packed ring batch enqueue") Cc: sta...@dpdk.org Sign

Re: [PATCH v4] vdpa/ifc: Match default subsystem IDs for modern virtio-blk devices

2023-02-03 Thread Maxime Coquelin
On 12/15/22 04:48, Abhishek Maheshwari wrote: Amending the match table for vdpa/ifcvf driver to work with virtio-blk devices that have default subsystem IDs. Cc: sta...@dpdk.org Signed-off-by: Abhishek Maheshwari --- v3: * Removing match with ANY_IDs * Adding support for only default subsy

Re: [PATCH] vdpa/ifc: add live migration for block device

2023-02-03 Thread Maxime Coquelin
On 12/14/22 08:47, Andy Pei wrote: When we use "sw-live-migration=1" in arguments, we run in SW assisted live migration mode. In SW assisted live migration mode, driver will stop the device and setup a mediated virtio ring to relay the communication between the virtio driver and the VDPA devi

Re: [PATCH] vdpa/ifc: improve device stop logic for block device

2023-02-03 Thread Maxime Coquelin
On 12/13/22 08:37, Andy Pei wrote: For block device, we make sure no IO is inflight before we stop device. We terminate the notify relay process and wait for all inflight IOs to be completed. So in this period, we wait for hardware to update used index, there is no need to relay new kick. Sig

Re: [PATCH] vdpa/ifc: fix reconnetion issue in SW assisted live migration

2023-02-03 Thread Maxime Coquelin
On 12/12/22 08:12, Andy Pei wrote: In the case using argument "sw-live-migration=1" to enable SW assisted live migration, we take QEMU as front end for example, after source VM migrates to destination VM, we keep vdpa process for source VM there, we kill the QEMU process for source VM, and res

Re: [PATCH v3] vhost: exclude VM hugepages from coredumps

2023-02-03 Thread Maxime Coquelin
On 12/7/22 17:54, Mike Pattrick wrote: Currently if an application wants to include shared hugepages in coredumps in conjunction with the vhost library, the coredump will be larger than expected and include unneeded virtual machine memory. This patch will mark all vhost huge pages as DONTDUMP

Re: [PATCH] vdpa/ifc: fix argument compatibility check

2023-02-03 Thread Maxime Coquelin
On 12/1/22 08:32, Andy Pei wrote: "sw_fallback_lm=0" means driver does not provide live migration assistance. so hardware assistance is needed to support live migration. However registers for live migration in BAR4 are not implemented. In the case, we just return error after display some logs.

Re: [PATCH v4] examples/vdpa: support running in nested virtualization environment

2023-02-03 Thread Maxime Coquelin
On 11/14/22 04:04, Hao Chen wrote: When we run dpdk vdpa in the nested virtual machine vm-L1 and ping test in vm-L2, the ping is not good. The reason for troubleshooting is that the virtio net in vm-L2 sends control information to the vring, and the qemu back-end device in vm-L1 cannot obtain

Re: [PATCH] vhost: fix net header settings in vhost datapath

2023-02-03 Thread Maxime Coquelin
On 1/4/23 03:39, Wenwu Ma wrote: In vhost sync batch enqueue, the "num_buffers" of virtio net header is not be set, but it should be set to 1 if the mrg_rxbuf feature is turned on, This patch fix the issue. Fixes: ef861692c398 ("vhost: add packed ring batch enqueue") Cc: sta...@dpdk.org Sign

Re: ICE DDP Load assistance

2023-02-03 Thread Ben Magistro
Just to close the loop on this, most of our nics have been dual port. When looking at this I forgot/didn't realize this one was a quad port nic so some ports were still controlled by the kernel which explains the observed behavior. Also thanks for the explanation around an existing DDP being foun

RE: [PATCH] eal: introduce atomics abstraction

2023-02-03 Thread Morten Brørup
> From: Bruce Richardson [mailto:bruce.richard...@intel.com] > Sent: Friday, 3 February 2023 14.57 > > Having read through the whole thread a second time, I am starting to > realise how complex a problem this could be. From what I read, I would > tend > towards the opinion that we shouldn't provid

Re: [RFC PATCH 0/1] Specify C-standard requirement for DPDK builds

2023-02-03 Thread Ben Magistro
Since this topic keeps coming up in other threads I'll chime in with my $0.01 here. We've been using CentOS 7 for awhile (and working on migrating off) but have had to leverage devtoolset/llvmtoolset for various reasons. I remember a discussion of installing a different compiler coming up but don'

no printf in drivers code

2023-02-03 Thread Thomas Monjalon
Hello, We have too many drivers using printf() instead of rte_log(). Please propose a plan to replace or remove the calls to printf(). If no plan, I could propose one but you may not like it :) Affected drivers are: baseband/acc bus/dpaa bus/fslmc crypto/caam_jr

Re: [PATCH] eal: introduce atomics abstraction

2023-02-03 Thread Bruce Richardson
On Thu, Feb 02, 2023 at 09:44:52PM +0100, Morten Brørup wrote: > > From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > > Sent: Thursday, 2 February 2023 20.00 > > > > On Thu, Feb 02, 2023 at 09:43:58AM +0100, Morten Brørup wrote: > > > > From: Tyler Retzlaff [mailto:roret...@linux.microso

[PATCH v4 2/2] ethdev: add PHY affinity match item

2023-02-03 Thread Jiawei Wang
When multiple physical ports are connected to a single DPDK port, (example: kernel bonding, DPDK bonding, failsafe, etc.), we want to know which physical port is used for Rx and Tx. This patch allows to map a Rx queue with a physical port by using a flow rule. The new item is called RTE_FLOW_ITEM_

[PATCH v4 1/2] ethdev: introduce the PHY affinity field in Tx queue API

2023-02-03 Thread Jiawei Wang
When multiple physical ports are connected to a single DPDK port, (example: kernel bonding, DPDK bonding, failsafe, etc.), we want to know which physical port is used for Rx and Tx. This patch maps a DPDK Tx queue with a physical port, by adding tx_phy_affinity setting in Tx queue. The affinity nu

[PATCH v4 0/2] add new PHY affinity in the flow item and Tx queue API

2023-02-03 Thread Jiawei Wang
When multiple physical ports are connected to a single DPDK port, (example: kernel bonding, DPDK bonding, failsafe, etc.), we want to know which physical port is used for Rx and Tx. This patch maps a DPDK Tx queue with a physical port, by adding tx_phy_affinity setting in Tx queue. The affinity nu

[PATCH] drivers: remove compile-time option for IEEE 1588

2023-02-03 Thread Thomas Monjalon
The option RTE_LIBRTE_IEEE1588 has no effect on any library unlike its name. Also we are suppose to enable/disable features dynamically, not at compilation time. And the best is that this macro is neither documented, nor in rte_config.h. It looks to be a mistake keeping this flag, so it is remov

Re: [PATCH V8] ethdev: fix one address occupies two entries in MAC addrs

2023-02-03 Thread Ferruh Yigit
On 2/3/2023 1:56 AM, lihuisong (C) wrote: > > 在 2023/2/3 5:10, Thomas Monjalon 写道: >> 02/02/2023 19:09, Ferruh Yigit: >>> On 2/2/2023 12:36 PM, Huisong Li wrote: The dev->data->mac_addrs[0] will be changed to a new MAC address when applications modify the default MAC address by .mac_addr

DPDK Release Status Meeting 2023-02-02

2023-02-03 Thread Mcnamara, John
Release status meeting minutes 2023-02-02 = Agenda: * Release Dates * Subtrees * Roadmaps * LTS * Defects * Opens Participants: * AMD * ARM * Intel * Nvidia * Red Hat Release Dates - The following are the proposed current dates for 23.03:

Re: [PATCH] eal: introduce atomics abstraction

2023-02-03 Thread Bruce Richardson
On Thu, Feb 02, 2023 at 11:00:23AM -0800, Tyler Retzlaff wrote: > On Thu, Feb 02, 2023 at 09:43:58AM +0100, Morten Brørup wrote: > > > From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > > > Sent: Wednesday, 1 February 2023 22.41 > > > > > > On Wed, Feb 01, 2023 at 01:07:59AM +, Honna

Re: Sign changes through function signatures

2023-02-03 Thread Bruce Richardson
On Thu, Feb 02, 2023 at 10:26:48PM +0100, Morten Brørup wrote: > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > Sent: Thursday, 2 February 2023 21.45 > > > > 02/02/2023 21:26, Tyler Retzlaff: > > > On Thu, Feb 02, 2023 at 02:23:39PM -0500, Ben Magistro wrote: > > > > Hello, > > > > > > >

Re: [PATCH v1 0/6] baseband/acc: ACC200 PMD refactor and rename

2023-02-03 Thread Maxime Coquelin
On 1/17/23 23:36, Nicolas Chautru wrote: In this serie we are renaming the ACC200PMD to a more generic VRB PMD (Intel vRAN Boost). The 2nd commit is also making sure this is future prood to be able to support both the first implementation of VRB (The one in SPR-EE) as well as future implementa

Re: [PATCH v3 11/11] app/testpmd: adjust cleanup sequence when quitting

2023-02-03 Thread Singh, Aman Deep
On 1/30/2023 6:50 PM, Rongwei Liu wrote: If flex item is referenced in async flow either by pattern template or action template, currently testpmd complains "flex item has flow references". Flex items should be flushed after async flow resources cleanup. Signed-off-by: Rongwei Liu Acked-by: O

Re: [PATCH] vhost: fix vdpa driver multi-queue initialization failure

2023-02-03 Thread Maxime Coquelin
On 1/28/23 04:06, Hao Chen wrote: When 'virtio_is_Ready' returns 1, 'vdpa_dev->ops->dev_conf' will be called, and the vdpa driver called 'rte_vhost_get_vhost_vring' to get the vring addr info from 'vhost_devices->virtqueue[]'. virtio_is_ready's nr_vring is VIRTIO_BUILTIN_NUM_VQS_TO_BE_READY(2)

[PATCH v6 19/19] common/idpf: refine API name for virtual channel functions

2023-02-03 Thread beilei . xing
From: Beilei Xing This patch refines API name for all virtual channel functions. Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_device.c | 24 drivers/common/idpf/idpf_common_virtchnl.c | 70 +++--- drivers/common/idpf/idpf_common_virtchnl.h | 36

[PATCH v6 18/19] common/idpf: refine API name for data path module

2023-02-03 Thread beilei . xing
From: Beilei Xing Refine API name for all data path functions. Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_rxtx.c| 20 ++-- drivers/common/idpf/idpf_common_rxtx.h| 32 +-- drivers/common/idpf/idpf_common_rxtx_avx512.c | 8 ++--- drive

[PATCH v6 17/19] common/idpf: refine API name for queue config module

2023-02-03 Thread beilei . xing
From: Beilei Xing This patch refines API name for queue config functions. Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_rxtx.c| 42 drivers/common/idpf/idpf_common_rxtx.h| 38 +++--- drivers/common/idpf/idpf_common_rxtx_avx512.c | 2 +-

[PATCH v6 16/19] common/idpf: refine API name for vport functions

2023-02-03 Thread beilei . xing
From: Beilei Xing This patch refines API name for all vport related functions. Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_device.c | 8 drivers/common/idpf/idpf_common_device.h | 10 +- drivers/common/idpf/version.map | 14 -- drivers/

[PATCH v6 15/19] common/idpf: add avx512 for single queue model

2023-02-03 Thread beilei . xing
From: Beilei Xing Move avx512 vector path for single queue to common module. Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_rxtx.h| 20 + .../idpf/idpf_common_rxtx_avx512.c} | 4 +-- drivers/common/idpf/meson.build | 30 +

[PATCH v6 13/19] common/idpf: add Rx and Tx data path

2023-02-03 Thread beilei . xing
From: Beilei Xing Add timestamp filed to idpf_adapter structure. Move scalar Rx/Tx data path for both single queue and split queue to common module. Signed-off-by: Mingxia Liu Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_device.h | 5 + drivers/common/idpf/idpf_common_logs

[PATCH v6 14/19] common/idpf: add vec queue setup

2023-02-03 Thread beilei . xing
From: Beilei Xing Move vector queue setup for single queue model to common module. Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_rxtx.c | 57 ++ drivers/common/idpf/idpf_common_rxtx.h | 2 + drivers/common/idpf/version.map| 1 + drivers/net/id

[PATCH v6 12/19] common/idpf: add help functions for queue setup and release

2023-02-03 Thread beilei . xing
From: Beilei Xing Refine rxq setup and txq setup. Move some help functions of queue setup and queue release to common module. Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_rxtx.c | 414 + drivers/common/idpf/idpf_common_rxtx.h | 57 ++ drivers/common/idpf/meson.bu

[PATCH v6 11/19] common/idpf: add rxq and txq struct

2023-02-03 Thread beilei . xing
From: Beilei Xing Add idpf_rxq and idpf_txq structure in common module. Move idpf_vc_config_rxq and idpf_vc_config_txq functions to common module. Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_device.h | 2 + drivers/common/idpf/idpf_common_rxtx.h | 112 +

[PATCH v6 10/19] common/idpf: add vector flags in vport

2023-02-03 Thread beilei . xing
From: Beilei Xing Move vector flags from idpf_adapter_ext structure to idpf_vport structure. Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_device.h | 5 + drivers/net/idpf/idpf_ethdev.h | 5 - drivers/net/idpf/idpf_rxtx.c | 22 ++

[PATCH v6 09/19] common/idpf: add vport info initialization

2023-02-03 Thread beilei . xing
From: Beilei Xing Move queue module fields from idpf_adapter_ext structure to idpf_adapter structure. Refine some parameter and function name, and move function idpf_create_vport_info_init to common module. Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_device.c | 36 ++

[PATCH v6 08/19] common/idpf: support get packet type

2023-02-03 Thread beilei . xing
From: Beilei Xing Move ptype_tbl field to idpf_adapter structure. Move get_pkt_type to common module. Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_device.c | 216 +++ drivers/common/idpf/idpf_common_device.h | 7 + drivers/common/idpf/meson.build

[PATCH v6 07/19] common/idpf: add irq map/unmap

2023-02-03 Thread beilei . xing
From: Beilei Xing Introduce idpf_config_irq_map/idpf_config_irq_unmap functions in common module, and refine config rxq irqs function. Refine device start function with some irq error handling. Besides, vport->stopped should be initialized at the end of the function. Signed-off-by: Jingjing Wu

[PATCH v6 06/19] common/idpf: add config RSS

2023-02-03 Thread beilei . xing
From: Beilei Xing Move configure RSS to common module. Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_device.c | 25 +++ drivers/common/idpf/idpf_common_device.h | 2 ++ drivers/common/idpf/version.map | 1 + drivers/net/idpf/idpf_ethdev.c

[PATCH v6 03/19] common/idpf: add virtual channel functions

2023-02-03 Thread beilei . xing
From: Beilei Xing Move most of the virtual channel functions to idpf common module. Signed-off-by: Wenjun Wu Signed-off-by: Beilei Xing --- drivers/common/idpf/base/idpf_controlq_api.h | 4 - drivers/common/idpf/base/meson.build | 2 +- drivers/common/idpf/idpf_common_device.c

[PATCH v6 05/19] common/idpf: add vport init/deinit

2023-02-03 Thread beilei . xing
From: Beilei Xing Introduce idpf_vport_init and idpf_vport_deinit functions in common module. Signed-off-by: Wenjun Wu Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_device.c | 115 + drivers/common/idpf/idpf_common_device.h | 13 +- drivers/common/idpf/id

[PATCH v6 04/19] common/idpf: introduce adapter init and deinit

2023-02-03 Thread beilei . xing
From: Beilei Xing Introduce idpf_adapter_init and idpf_adapter_deinit functions in common module. And also introduce idpf_adapter_ext_init and idpf_adapter_ext_deinit functions. Signed-off-by: Wenjun Wu Signed-off-by: Beilei Xing --- drivers/common/idpf/base/idpf_controlq_api.h | 2 - drive

[PATCH v6 02/19] common/idpf: add vport structure

2023-02-03 Thread beilei . xing
From: Beilei Xing Move idpf_vport structure to common module, remove ethdev dependency. Also remove unused functions. Signed-off-by: Wenjun Wu Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_common_device.h | 59 ++ drivers/net/idpf/idpf_ethdev.c | 10 +- drivers/net/i

[PATCH v6 01/19] common/idpf: add adapter structure

2023-02-03 Thread beilei . xing
From: Beilei Xing Add structure idpf_adapter in common module, the structure includes some basic fields. Introduce structure idpf_adapter_ext in PMD, this structure includes extra fields except idpf_adapter. Signed-off-by: Wenjun Wu Signed-off-by: Beilei Xing --- drivers/common/idpf/idpf_comm

[PATCH v6 00/19] net/idpf: introduce idpf common modle

2023-02-03 Thread beilei . xing
From: Beilei Xing Refactor idpf pmd by introducing idpf common module, which will be also consumed by a new PMD - CPFL (Control Plane Function Library) PMD. v2 changes: - Refine irq map/unmap functions. - Fix cross compile issue. v3 changes: - Embed vport_info field into the vport structure.

[PATCH 4/4] examples/qos_sched: remove limit on core ids

2023-02-03 Thread Bruce Richardson
The qos_sched app was limited to using lcores between 0 and 64 only, even if RTE_MAX_LCORE was set to a higher value (as it is by default). Remove some of the checks on the lcore ids in order to support running with core ids > 64. Signed-off-by: Bruce Richardson --- examples/qos_sched/args.c | 7

[PATCH 3/4] examples/qos_sched: use bigger bursts on dequeue

2023-02-03 Thread Bruce Richardson
While performance of the QoS block drops sharply if the dequeue size is greater than or equal to the enqueue size, increasing the dequeue size to just under the enqueue one gives improved performance when the scheduler is not keeping up with the line rate. Signed-off-by: Bruce Richardson --- doc

[PATCH 2/4] examples/qos_sched: remove TX buffering

2023-02-03 Thread Bruce Richardson
Since the qos_sched app does batch dequeues from the QoS block, there is little point in trying to batch further in the app - just send out the full burst of packets that were received from the QoS block. With modern CPUs and write-combining doorbells, the cost of doing smaller TX's is reduced anyw

[PATCH 1/4] examples/qos_sched: fix errors when TX port not up

2023-02-03 Thread Bruce Richardson
The TX port config will fail if the port is not up, so wait 10 seconds on startup for it to start. Fixes: de3cfa2c9823 ("sched: initial import") Cc: sta...@dpdk.org Signed-off-by: Bruce Richardson --- examples/qos_sched/init.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/exam

[PATCH 0/4] small fixes and improvements for qos_sched example

2023-02-03 Thread Bruce Richardson
This patchset contains a set of fixes and improvements for the qos_sched application. After this patchset the code is shorter, and also seems a little faster in my performance tests. Bruce Richardson (4): examples/qos_sched: fix errors when TX port not up examples/qos_sched: remove TX bufferin

Re: [dpdk-dev] [PATCH v1 01/12] mldev: introduce machine learning device library

2023-02-03 Thread Jerin Jacob
On Fri, Feb 3, 2023 at 5:56 AM Stephen Hemminger wrote: > > On Wed, 1 Feb 2023 13:34:41 + > Shivah Shankar Shankar Narayan Rao wrote: > > > +struct rte_ml_dev_info { > > + const char *driver_name; > > + /**< Driver name */ > > + int16_t max_models; > > Why is max_models signed? ot

Re: [dpdk-dev] [PATCH v1 01/12] mldev: introduce machine learning device library

2023-02-03 Thread Jerin Jacob
On Fri, Feb 3, 2023 at 5:58 AM Stephen Hemminger wrote: > > On Wed, 1 Feb 2023 13:34:41 + > Shivah Shankar Shankar Narayan Rao wrote: > > > +#define RTE_ML_STR_MAX 128 > > +/**< Maximum length of name string */ > > Fixed length strings do create long term technical issues. > But this is big e

Re: [dpdk-dev] [PATCH v1 01/12] mldev: introduce machine learning device library

2023-02-03 Thread Jerin Jacob
On Fri, Feb 3, 2023 at 5:55 AM Stephen Hemminger wrote: > > On Wed, 1 Feb 2023 13:34:41 + > Shivah Shankar Shankar Narayan Rao wrote: > > > --- a/lib/eal/include/rte_log.h > > +++ b/lib/eal/include/rte_log.h > > @@ -48,6 +48,7 @@ extern "C" { > > #define RTE_LOGTYPE_EFD 18 /**< Log rel

Re: [PATCH] app/testpmd: fix link check condition on port start

2023-02-03 Thread Singh, Aman Deep
On 1/28/2023 4:15 AM, Ferruh Yigit wrote: In testpmd port start function, 'need_check_link_status' variable is used to detect if a link check is required after port is started. Intention is if at least one port is started, link check should be called, and initially 'need_check_link_status' used

RE: [PATCH v3 11/12] app/mldev: enable reporting stats in mldev app

2023-02-03 Thread Anup Prabhu
> -Original Message- > From: Srikanth Yalavarthi > Sent: Friday, December 9, 2022 12:59 AM > To: Srikanth Yalavarthi > Cc: dev@dpdk.org; Shivah Shankar Shankar Narayan Rao > ; Jerin Jacob Kollanukkaran > ; Anup Prabhu > Subject: [PATCH v3 11/12] app/mldev: enable reporting stats in mld

  1   2   >