Re: [EXT] Re: [PATCH 1/5] net: add PDCP header

2023-01-19 Thread Thomas Monjalon
18/01/2023 18:39, Anoob Joseph: > > 22/12/2022 10:25, Anoob Joseph: > > > --- /dev/null > > > +++ b/lib/net/rte_pdcp_hdr.h > > > @@ -0,0 +1,93 @@ > > > +/* SPDX-License-Identifier: BSD-3-Clause > > > + * Copyright(C) 2022 Marvell. > > > + */ > > > + > > > +#ifndef _RTE_PDCP_HDR_H_ > > > +#define _R

Re: [PATCH v4 1/2] ethdev: add query_update sync and async function calls

2023-01-19 Thread Thomas Monjalon
18/01/2023 18:34, Gregory Etelson: > > > Current API allows either query or update indirect flow action. > > > If port hardware allows both update and query in a single operation, > > > application still has to issue 2 separate hardware requests. > > > > > > The patch adds `rte_flow_action_handle_q

Re: [PATCH] examples/cmdline: fix build error with gcc 12

2023-01-19 Thread Bruce Richardson
On Wed, Jan 18, 2023 at 06:53:33PM +, Ferruh Yigit wrote: > On 1/18/2023 4:11 PM, Bruce Richardson wrote: > > When building the example without libbsd and using the DPDK-provided > > strlcpy function, a compiler warning is emitted by GCC 12 about the copy > > of the parsed string into the resul

Re: [PATCH] net/nfp: check whether the generated VF can be used

2023-01-19 Thread Ferruh Yigit
On 12/9/2022 1:35 AM, Chaoyong He wrote: > From: Peng Zhang > > All the queue pairs are shared between VF and PF for NFP, > and there exist different assignment policy for different > firmware application. > > The user can create VFs up to the max number of queue pairs, > which will cause the la

RE: [PATCH v4 2/2] ethdev: add quota flow action and item

2023-01-19 Thread Gregory Etelson
Hello Thomas, > Is this patch related to query/update of indirect flow action? > It looks like it should be in a separate series. > Quota flow action updates relay on rte_flow_action_handle_query_update(). Also, the function is used in the testmd patch section. > 18/01/2023 11:31, Gregory Etels

Re: [PATCH v2] net/axgbe: move offloads to Rx/Tx queue setup

2023-01-19 Thread Ferruh Yigit
On 1/19/2023 1:50 AM, Jesna K E wrote: > For Multiprocess dpdk applications need to retrieve the offload parameter > from the Device data directly that is shared between > primary and secondary processes rather than accessing from > Port private data (pdata) since this is not shared > between prima

Re: [PATCH] doc: add supported APIs section to nfp guide

2023-01-19 Thread Ferruh Yigit
On 12/1/2022 1:38 AM, Chaoyong He wrote: > Add a new section 'Supported APIs', inculding the supported > APIs/items/actions of rte_flow. > Isn't this information already exists in 'doc/guides/nics/features/nfp.ini'? Why to duplicate here? > Signed-off-by: Chaoyong He > Reviewed-by: Niklas Söder

Re: [PATCH v4 2/2] ethdev: add quota flow action and item

2023-01-19 Thread Thomas Monjalon
19/01/2023 10:13, Gregory Etelson: > Hello Thomas, > > > Is this patch related to query/update of indirect flow action? > > It looks like it should be in a separate series. > > > > Quota flow action updates relay on rte_flow_action_handle_query_update(). > Also, the function is used in the testm

RE: [PATCH v2] crypto/qat: fix build

2023-01-19 Thread Akhil Goyal
> Acked-by: Kai Ji > > > Subject: [PATCH v2] crypto/qat: fix build > > > > When building QAT PMD, the following issue comes up: > > > > intel-ipsec-mb.h:333: error: "AES_BLOCK_SIZE" redefined > > 333 | #define AES_BLOCK_SIZE IMB_AES_BLOCK_SIZE > > In file included from drivers/crypto/q

RE: [EXT] Re: [PATCH] crypto/qat: fix build for generic x86 with GCC 12

2023-01-19 Thread Akhil Goyal
> -Original Message- > From: Bruce Richardson > Sent: Tuesday, January 17, 2023 2:33 PM > To: Akhil Goyal > Cc: David Marchand ; Kai Ji ; > dev@dpdk.org; sta...@dpdk.org; Ciara Power ; Fan > Zhang > Subject: Re: [EXT] Re: [PATCH] crypto/qat: fix build for generic x86 with GCC > 12 >

RE: [PATCH v4 2/2] ethdev: add quota flow action and item

2023-01-19 Thread Gregory Etelson
Hello Thomas, [] > > > > + /** > > > > + * Apply quota verdict - PASS or BLOCK to a flow. > > > > > > Is "to" really wanted here? > > > What about "pass or block a flow"? > > > > > > > The flow action provides information only - it does not affect flow in any > way. > > Application needs

Re: [PATCH V5] ethdev: fix one address occupies two indexes in MAC addrs

2023-01-19 Thread lihuisong (C)
在 2023/1/18 16:26, Thomas Monjalon 写道: 20/10/2022 11:31, Huisong Li: The dev->data->mac_addrs[0] will be changed to a new MAC address when applications modify the default MAC address by .mac_addr_set(). However, if the new default one has been added as a non-default MAC address by .mac_addr_ad

Re: [PATCH v3 0/7] baseband/acc: changes for 23.03

2023-01-19 Thread Maxime Coquelin
On 1/12/23 20:36, Hernan Vargas wrote: v3: Remove unused mempool header. v2: Reordered commits and added one more fix. v1: Upstreaming ACC100 changes for 23.03. Hernan Vargas (7): baseband/acc: acc100 free harq layout pointer baseband/acc: acc100 fix iteration counter in TB baseband/

Re: [PATCH V5] ethdev: fix one address occupies two indexes in MAC addrs

2023-01-19 Thread lihuisong (C)
在 2023/1/18 16:38, Thomas Monjalon 写道: 18/01/2023 09:26, Thomas Monjalon: 20/10/2022 11:31, Huisong Li: The dev->data->mac_addrs[0] will be changed to a new MAC address when applications modify the default MAC address by .mac_addr_set(). However, if the new default one has been added as a non

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

2023-01-19 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] vdpa/ifc: fix argument compatibility check

2023-01-19 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 0/5] app/testpmd: support mulitple process attach and detach port

2023-01-19 Thread lihuisong (C)
在 2023/1/18 22:12, Thomas Monjalon 写道: 11/01/2023 11:46, Ferruh Yigit: On 1/11/2023 10:27 AM, Ferruh Yigit wrote: On 1/11/2023 12:53 AM, lihuisong (C) wrote: 在 2023/1/11 0:51, Ferruh Yigit 写道: Hi Huisong, I haven't checked the patch in detail yet, but I can see it gives some ABI compatibil

[PATCH] graph: fix node shrink

2023-01-19 Thread David Marchand
If the node id check failed, graph_lock was not taken before releasing. Fixes: c59dac2ca14a ("graph: implement node operations") Cc: sta...@dpdk.org Signed-off-by: David Marchand --- lib/graph/node.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/graph/node.c b/

RE: [EXT] Re: [PATCH v5 2/2] app/testpmd: add command to process Rx metadata negotiation

2023-01-19 Thread Hanumanth Reddy Pothula
> -Original Message- > From: Thomas Monjalon > Sent: Wednesday, January 18, 2023 4:03 PM > To: Hanumanth Reddy Pothula > Cc: Aman Singh ; Yuying Zhang > ; dev@dpdk.org; > andrew.rybche...@oktetlabs.ru; viachesl...@nvidia.com; Jerin Jacob > Kollanukkaran ; Nithin Kumar Dabilpuram > ; da

Re: [PATCH 0/6] add offload support of meter for NFP cards

2023-01-19 Thread Ferruh Yigit
On 12/7/2022 2:17 AM, Chaoyong He wrote: > This patch series mainly add the offload support of the meter for NFP > cards, includes: > - Add meter profile > - Add meter policy > - Add meter stats > - Add meter action > - Add meter offload support > > Jin Liu (6): > net/nfp: correct flower cmsg i

Re: [dpdk-dev] [RFC] ethdev: improve link speed to string

2023-01-19 Thread Ferruh Yigit
On 9/17/2021 1:43 AM, Min Hu (Connor) wrote: > 在 2021/9/16 16:21, Andrew Rybchenko 写道: >> On 9/16/21 11:16 AM, Min Hu (Connor) wrote: >>> Hi, Andrew, >>> >>> 在 2021/9/16 14:22, Andrew Rybchenko 写道: On 9/16/21 5:56 AM, Min Hu (Connor) wrote: > Currently, link speed to string only supports s

Re: [PATCH] net/tap: Fixed RSS algorithm to support fragmented packets

2023-01-19 Thread Ferruh Yigit
On 4/20/2022 12:24 PM, madhuker.myt...@oracle.com wrote: > From: Madhuker Mythri > > As per analysis on Tap PMD, the existing RSS algorithm considering > 4-tuple(Src-IP, Dst-IP, Src-port and Dst-port) and identification of > fragment packets is not done, thus we are seeing all the fragmented > ch

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

2023-01-19 Thread Chengwen Feng
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 +++ 2 files changed, 40 inserti

[PATCH 2/2] net/vhost: support private dump

2023-01-19 Thread Chengwen Feng
This patch implements eth_dev_priv_dump callback which could use for debugging. Signed-off-by: Chengwen Feng --- drivers/net/vhost/rte_eth_vhost.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c ind

[PATCH 1/2] net/virtio: support private dump

2023-01-19 Thread Chengwen Feng
This patch implements eth_dev_priv_dump callback which could use for debugging. Signed-off-by: Chengwen Feng --- drivers/net/virtio/virtio_ethdev.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c in

Re: [PATCH] net/nfp: update descriptors logic

2023-01-19 Thread Ferruh Yigit
On 11/22/2022 1:09 PM, Niklas Söderlund wrote: > From: Jin Liu > > The minimum value of TX/RX descriptors for NFP3800 card is not same > with NFP4000 card, the minimum value of NFP4000 card is 256 while > NFP3800 card is 512, add the minimum descriptor macro for NFP3800 > card. > > Modify the lo

RE: [PATCH 1/4] net/mlx5/hws: definitions for Hash Split/Linear Lookup tbls

2023-01-19 Thread Ali Alnubani
Hello, ci/iol-testing tried to apply this patchset on the main branch, even though it's intended for dpdk-next-net-mlx: https://patches.dpdk.org/project/dpdk/patch/20230112134913.2632849-1-klit...@nvidia.com/ The helper script in dpdk-ci repo reports dpdk-next-net-mlx: $ ./tools/pw_maintainers_c

[PATCH v5 1/2] ethdev: add query_update sync and async function calls

2023-01-19 Thread Gregory Etelson
Current API allows either query or update indirect flow action. If indirect action must be conditionally updated according to it's present state application must first issue action query then analyze returned data and if needed issue update request. When the update will be processed, action state c

[PATCH v5 2/2] ethdev: add quota flow action and item

2023-01-19 Thread Gregory Etelson
Quota action limits traffic according to pre-defined configuration. Quota reflects overall traffic usage regardless bandwidth. Quota flow action initialized with signed tokens number value. Quota flow action updates tokens number according to these rules: 1. if quota was configured to count packet

RE: [EXT] [PATCH] graph: fix node shrink

2023-01-19 Thread Kiran Kumar Kokkilagadda
> -Original Message- > From: David Marchand > Sent: 19 January 2023 04:03 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Jerin Jacob Kollanukkaran ; Kiran > Kumar Kokkilagadda ; Nithin Kumar Dabilpuram > ; Pavan Nikhilesh Bhagavatula > > Subject: [EXT] [PATCH] graph: fix node shrink > >

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

2023-01-19 Thread Maxime Coquelin
Hi Abhishek, 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 Is that really a fix? If so, you need to add the Fixes tag so that LTS maintainers know on which LTS i

ICE DDP Load assistance

2023-01-19 Thread Ben Magistro
Hello, We are still trying to track this down but want to reach out to the community and see if there is something obvious we are missing. This happens to be a CentOS 7 based host with DPDK 22.11.1 in use. We have obtained the latest compatible Intel drivers and DDP from https://sourceforge.net/

Re: [PATCH RESEND v2 01/11] ethdev: check return result of rte_eth_dev_info_get

2023-01-19 Thread Ferruh Yigit
On 11/22/2022 3:30 PM, ok...@kernel.org wrote: > From: Sinan Kaya > > rte_class_eth: eth_mac_cmp: The status of this call to rte_eth_dev_info_get > is not checked, potentially leaving dev_info uninitialized. > > Signed-off-by: Sinan Kaya > --- > lib/ethdev/rte_class_eth.c | 4 +++- > 1 file ch

RE: [EXT] Re: [PATCH v3 2/3] graph: pcap capture for graph nodes

2023-01-19 Thread Amit Prakash Shukla
Thanks Jerin for the code review and feedback. I will make the suggested changes in next version of the patch. > -Original Message- > From: Jerin Jacob > Sent: Thursday, January 12, 2023 5:48 PM > To: Amit Prakash Shukla > Cc: Jerin Jacob Kollanukkaran ; Kiran Kumar > Kokkilagadda ; Nit

Re: [PATCH V4 0/5] app/testpmd: support mulitple process attach and detach port

2023-01-19 Thread Thomas Monjalon
19/01/2023 11:31, lihuisong (C): > 在 2023/1/18 22:12, Thomas Monjalon 写道: > > 11/01/2023 11:46, Ferruh Yigit: > >> On 1/11/2023 10:27 AM, Ferruh Yigit wrote: > >>> On 1/11/2023 12:53 AM, lihuisong (C) wrote: > 在 2023/1/11 0:51, Ferruh Yigit 写道: > > Hi Huisong, > > > > I haven't che

RE: [EXT] Re: [PATCH v2 2/3] graph: pcap capture for graph nodes

2023-01-19 Thread Amit Prakash Shukla
Hi Stephen, Thanks for the reply. Please find my reply in-line. > -Original Message- > From: Stephen Hemminger > Sent: Thursday, January 12, 2023 10:00 PM > To: Amit Prakash Shukla > Cc: Jerin Jacob Kollanukkaran ; Kiran Kumar > Kokkilagadda ; Nithin Kumar Dabilpuram > ; dev@dpdk.org >

Re: [PATCH V5] ethdev: fix one address occupies two indexes in MAC addrs

2023-01-19 Thread Thomas Monjalon
Hi, You missed some questions and comments below. 19/01/2023 10:57, lihuisong (C): > 在 2023/1/18 16:26, Thomas Monjalon 写道: > > 20/10/2022 11:31, Huisong Li: > >> The dev->data->mac_addrs[0] will be changed to a new MAC address when > >> applications modify the default MAC address by .mac_addr_se

Re: [PATCH] net/mana: disable driver by default

2023-01-19 Thread Ferruh Yigit
On 10/13/2022 12:47 PM, Ferruh Yigit wrote: > Driver is disabled by default because its dependencies are not > upstreamed yet, code is available for development and investigation. > > When all dependencies are upstreamed, driver can be enabled back. > > Fixes: 517ed6e2d590 ("net/mana: add basic d

Re: [PATCH v7] net/tap: Allow jumbo frames

2023-01-19 Thread Ferruh Yigit
On 8/8/2022 4:03 PM, Stephen Hemminger wrote: > On Mon, 8 Aug 2022 16:49:44 +0200 > Francesco Mancino wrote: > >> eth_dev_validate_mtu, introduced in 990912e676e, validates configured >> MTU plus overhead against max_rx_pktlen. >> Since TAP is a virtual device, it should support as big MTU as pos

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

2023-01-19 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] vdpa/ifc: improve device stop logic for block device

2023-01-19 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

[PATCH v6 0/5] lcore telemetry improvements

2023-01-19 Thread Robin Jarry
This is a follow up on previous work by Kevin Laatz: http://patches.dpdk.org/project/dpdk/list/?series=24658&state=* This series is aimed at allowing DPDK applications to expose their CPU usage stats in the DPDK telemetry under /eal/lcore/info. This is a much more basic and naive approach which l

[PATCH v6 1/5] eal: add lcore info in telemetry

2023-01-19 Thread Robin Jarry
Report the same information than rte_lcore_dump() in the telemetry API into /eal/lcore/list and /eal/lcore/info,ID. Example: --> /eal/lcore/info,3 { "/eal/lcore/info": { "lcore_id": 3, "socket": 0, "role": "RTE", "cpuset": [ 3 ] } } Signed-off-

[PATCH v6 2/5] eal: allow applications to report their cpu usage

2023-01-19 Thread Robin Jarry
Allow applications to register a callback that will be invoked in rte_lcore_dump() and when requesting lcore info in the telemetry API. The callback is expected to return the number of TSC cycles that have passed since application start and the number of these cycles that were spent doing busy wor

[PATCH v6 5/5] telemetry: add /eal/lcore/usage endpoint

2023-01-19 Thread Robin Jarry
Allow fetching CPU cycles usage for all lcores with a single request. This endpoint is intended for repeated and frequent invocations by external monitoring systems and therefore returns condensed data. It consists of a single dictionary with three keys: "lcore_ids", "total_cycles" and "busy_cycle

[PATCH v6 3/5] testpmd: add dump_lcores command

2023-01-19 Thread Robin Jarry
Add a simple command that calls rte_lcore_dump(). Signed-off-by: Robin Jarry Acked-by: Morten Brørup Acked-by: Konstantin Ananyev --- Notes: v5 -> v6: No change app/test-pmd/cmdline.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c i

[PATCH v6 4/5] testpmd: report lcore usage

2023-01-19 Thread Robin Jarry
Reuse the --record-core-cycles option to account for busy cycles. One turn of packet_fwd_t is considered "busy" if there was at least one received or transmitted packet. Add a new busy_cycles field in struct fwd_stream. Update get_end_cycles to accept an additional argument for the number of proce

Re: [PATCH v2] app/testpmd: fix interactive mode with no ports

2023-01-19 Thread Ferruh Yigit
On 11/16/2022 4:23 AM, Singh, Aman Deep wrote: > Hi Gregory, > > Thanks for the patch. > > On 11/9/2022 10:39 PM, Gregory Etelson wrote: >> Testpmd terminated unconditionally if it failed to start all ports. >> >> The patch allows testpmd to get into the command line, >> if the interactive mode w

RE: [PATCH v2] net/af_xdp: AF_XDP PMD CNI Integration

2023-01-19 Thread Koikkara Reeny, Shibin
> -Original Message- > From: Zhang, Qi Z > Sent: Wednesday, January 18, 2023 12:10 PM > To: Koikkara Reeny, Shibin ; > dev@dpdk.org; Burakov, Anatoly ; Richardson, > Bruce > Cc: Loftus, Ciara > Subject: RE: [PATCH v2] net/af_xdp: AF_XDP PMD CNI Integration > > > > > -Original Me

Re: [PATCH v8] testpmd: cleanup cleanly from signal

2023-01-19 Thread Ferruh Yigit
On 11/12/2022 5:28 PM, Stephen Hemminger wrote: > 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 leadin

Re: [PATCH] net/mana: disable driver by default

2023-01-19 Thread Thomas Monjalon
19/01/2023 15:49, Ferruh Yigit: > On 10/13/2022 12:47 PM, Ferruh Yigit wrote: > > Driver is disabled by default because its dependencies are not > > upstreamed yet, code is available for development and investigation. > > > > When all dependencies are upstreamed, driver can be enabled back. > > >

Re: [PATCH v3 00/10] dts: add hello world testcase

2023-01-19 Thread Owen Hilyard
Everything looks good to me with the exception of some issues I ran into with terminal codes. Setting TERM=dumb before running fixed it, but we might want to set that inside of DTS since I can't think of a reason why we would need colors or any of the other "fancy" features of the vt220, and settin

RE: [PATCH v6 5/5] telemetry: add /eal/lcore/usage endpoint

2023-01-19 Thread Morten Brørup
> From: Robin Jarry [mailto:rja...@redhat.com] > Sent: Thursday, 19 January 2023 16.07 > > Allow fetching CPU cycles usage for all lcores with a single request. > This endpoint is intended for repeated and frequent invocations by > external monitoring systems and therefore returns condensed data.

RE: [PATCH] net/mana: disable driver by default

2023-01-19 Thread Long Li
> Subject: Re: [PATCH] net/mana: disable driver by default > > 19/01/2023 15:49, Ferruh Yigit: > > On 10/13/2022 12:47 PM, Ferruh Yigit wrote: > > > Driver is disabled by default because its dependencies are not > > > upstreamed yet, code is available for development and investigation. > > > > > >

Re: [PATCH v6 5/5] telemetry: add /eal/lcore/usage endpoint

2023-01-19 Thread Robin Jarry
Morten Brørup, Jan 19, 2023 at 17:21: > In the future, the rte_lcore_usage structure may contain more fields, > and some may not be related to the TSC. So consider removing "cycles" > from the description of the telemetry path. > > Don't waste time changing it unless you are providing a new patch >

Re: [PATCH] examples/cmdline: fix build error with gcc 12

2023-01-19 Thread Stephen Hemminger
On Thu, 19 Jan 2023 08:59:10 + Bruce Richardson wrote: > > > struct object { > > > SLIST_ENTRY(object) next; > > > > I confirm it solves the build warning, but what about to get rid of > > `OBJ_NAME_LEN_MAX` completely if the intentions is to make size same as > > cmdline library array:

RE: [PATCH v6 5/5] telemetry: add /eal/lcore/usage endpoint

2023-01-19 Thread Morten Brørup
> From: Robin Jarry [mailto:rja...@redhat.com] > Sent: Thursday, 19 January 2023 17.35 > > Morten Brørup, Jan 19, 2023 at 17:21: > > In the future, the rte_lcore_usage structure may contain more fields, > > and some may not be related to the TSC. So consider removing "cycles" > > from the descript

[PATCH v6 1/2] ethdev: add query_update sync and async function calls

2023-01-19 Thread Gregory Etelson
Current API allows either query or update indirect flow action. If indirect action must be conditionally updated according to it's present state application must first issue action query then analyze returned data and if needed issue update request. When the update will be processed, action state c

[PATCH v6 2/2] ethdev: add quota flow action and item

2023-01-19 Thread Gregory Etelson
Quota action limits traffic according to pre-defined configuration. Quota reflects overall traffic usage regardless bandwidth. Quota flow action initialized with signed tokens number value. Quota flow action updates tokens number according to these rules: 1. if quota was configured to count packet

Re: [EXT] Re: [PATCH v2 2/3] graph: pcap capture for graph nodes

2023-01-19 Thread Stephen Hemminger
On Thu, 19 Jan 2023 14:37:49 + Amit Prakash Shukla wrote: > > > > One other option is to add a new custom block type or options in pcapng. > > Keep comment as a string, since that is what wireshark etc no how to handle. > > Also, packet id data might be useful for graph. > > I gave a try

[PATCH v3] app/testpmd: fix interactive mode with no ports

2023-01-19 Thread Gregory Etelson
Testpmd terminated unconditionally if it failed to start all ports. The patch allows testpmd to get into the command line, if the interactive mode was requested. Fixes: 6937d2103e22 ("app/testpmd: add option to not start device") Cc: step...@networkplumber.org Cc: sta...@dpdk.org Signed-off-by:

[PATCH v3] app/testpmd: fix interactive mode with no ports

2023-01-19 Thread Gregory Etelson
Testpmd terminated unconditionally if it failed to start all ports. The patch allows testpmd to get into the command line, if the interactive mode was requested. Fixes: 6937d2103e22 ("app/testpmd: add option to not start device") Cc: step...@networkplumber.org Cc: sta...@dpdk.org Signed-off-by:

Re: [PATCH v3] app/testpmd: fix interactive mode with no ports

2023-01-19 Thread Stephen Hemminger
On Thu, 19 Jan 2023 19:23:12 +0200 Gregory Etelson wrote: > + if (!no_device_start && start_port(RTE_PORT_ALL) != 0) { > + fprintf(stderr, "Start ports failed\n"); > + if (!interactive) { > + rte_eal_cleanup(); > + rte_exit(EXIT_

[PATCH v4] app/testpmd: fix interactive mode with no ports

2023-01-19 Thread Gregory Etelson
Testpmd terminated unconditionally if it failed to start all ports. The patch allows testpmd to get into the command line, if the interactive mode was requested. Fixes: 6937d2103e22 ("app/testpmd: add option to not start device") Cc: step...@networkplumber.org Cc: sta...@dpdk.org Signed-off-by:

Re: [PATCH] net/mana: disable driver by default

2023-01-19 Thread Thomas Monjalon
19/01/2023 17:32, Long Li: > > Subject: Re: [PATCH] net/mana: disable driver by default > > > > 19/01/2023 15:49, Ferruh Yigit: > > > On 10/13/2022 12:47 PM, Ferruh Yigit wrote: > > > > Driver is disabled by default because its dependencies are not > > > > upstreamed yet, code is available for dev

Re: [PATCH] examples/cmdline: fix build error with gcc 12

2023-01-19 Thread Bruce Richardson
On Thu, Jan 19, 2023 at 08:44:41AM -0800, Stephen Hemminger wrote: > On Thu, 19 Jan 2023 08:59:10 + > Bruce Richardson wrote: > > > > > struct object { > > > > SLIST_ENTRY(object) next; > > > > > > I confirm it solves the build warning, but what about to get rid of > > > `OBJ_NAME

[PATCH v4 0/9] vhost lock annotations

2023-01-19 Thread David Marchand
vhost internals involves multiple locks to protect data access by multiple threads. This series uses clang thread safety checks [1] to catch issues during compilation: EAL spinlock, seqlock and rwlock are annotated and vhost code is instrumented so that clang can statically check correctness. Tho

[PATCH v4 1/9] eal: annotate spinlock, rwlock and seqlock

2023-01-19 Thread David Marchand
clang offers some thread safety checks, statically verifying that locks are taken and released in the code. To use those checks, the full code leading to taking or releasing locks must be annotated with some attributes. Wrap those attributes into our own set of macros. rwlock, seqlock and the "no

[PATCH v4 2/9] vhost: simplify need reply handling

2023-01-19 Thread David Marchand
Dedicate send_vhost_slave_message() helper to the case when no reply is needed. Add a send_vhost_slave_message_process_reply() helper for the opposite. This new helper merges both send_vhost_slave_message() and the code previously in process_slave_message_reply(). The slave_req_lock lock is then o

[PATCH v4 3/9] vhost: terminate when access lock is not taken

2023-01-19 Thread David Marchand
Be a bit more strict when a programmatic error is detected wrt to the access_lock not being taken. Mark the new helper with __rte_assert_exclusive_lock so that clang understands where locks are expected to be taken. Signed-off-by: David Marchand --- lib/vhost/vhost.c | 18 +++---

[PATCH v4 4/9] vhost: annotate virtqueue access lock

2023-01-19 Thread David Marchand
vhost_user_lock/unlock_all_queue_pairs must be waived since clang annotations can't express taking a runtime number of locks. vhost_queue_stats_update() requirement can be expressed with a required tag. Signed-off-by: David Marchand --- Changes since RFC v3: - removed annotations needed for vhos

[PATCH v4 5/9] vhost: annotate async accesses

2023-01-19 Thread David Marchand
vq->async is initialised and must be accessed under vq->access_lock. Signed-off-by: David Marchand --- Changes since RFC v3: - rebased, - fixed annotations vq->access_lock -> &vq->access_lock, - reworked free_vq, --- lib/vhost/vhost.c | 4 lib/vhost/vhost.h | 2 +- lib/vhost/vh

[PATCH v4 6/9] vhost: always take IOTLB lock

2023-01-19 Thread David Marchand
clang does not support conditionally held locks when statically analysing taken locks with thread safety checks. Always take iotlb locks regardless of VIRTIO_F_IOMMU_PLATFORM feature. Signed-off-by: David Marchand --- lib/vhost/vhost.c | 8 +++- lib/vhost/virtio_net.c | 24

[PATCH v4 7/9] vhost: annotate IOTLB lock

2023-01-19 Thread David Marchand
The starting point for this is __vhost_iova_to_vva() which requires the lock to be taken. Annotate all the code leading to a call to it. vdpa and vhost_crypto code are annotated but they end up not taking a IOTLB lock and have been marked with a FIXME at the top level. Signed-off-by: David Marcha

[PATCH v4 8/9] vhost: annotate vDPA device list accesses

2023-01-19 Thread David Marchand
Access to vdpa_device_list must be protected with vdpa_device_list_lock spinlock. Signed-off-by: David Marchand --- Changes since RFC v3: - rebased, --- lib/vhost/vdpa.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/vhost/vdpa.c b/lib/vhost/vdpa.c

[PATCH v4 9/9] vhost: enable lock check

2023-01-19 Thread David Marchand
Now that all locks in this library are annotated, we can enable the check. Signed-off-by: David Marchand --- lib/vhost/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vhost/meson.build b/lib/vhost/meson.build index bc7272053b..197a51d936 100644 --- a/lib/vhost/meson.build +

RE: [PATCH v4 0/9] vhost lock annotations

2023-01-19 Thread Morten Brørup
> From: David Marchand [mailto:david.march...@redhat.com] > Sent: Thursday, 19 January 2023 19.46 > > vhost internals involves multiple locks to protect data access by > multiple threads. > > This series uses clang thread safety checks [1] to catch issues during > compilation: EAL spinlock, seqlo

Re: [PATCH v6 1/5] eal: add lcore info in telemetry

2023-01-19 Thread Kevin Laatz
On 19/01/2023 15:06, Robin Jarry wrote: Report the same information than rte_lcore_dump() in the telemetry API into /eal/lcore/list and /eal/lcore/info,ID. Example: --> /eal/lcore/info,3 { "/eal/lcore/info": { "lcore_id": 3, "socket": 0, "role": "RTE", "cp

Re: [PATCH v6 2/5] eal: allow applications to report their cpu usage

2023-01-19 Thread Kevin Laatz
On 19/01/2023 15:06, Robin Jarry wrote: Allow applications to register a callback that will be invoked in rte_lcore_dump() and when requesting lcore info in the telemetry API. The callback is expected to return the number of TSC cycles that have passed since application start and the number of t

Re: [PATCH v6 3/5] testpmd: add dump_lcores command

2023-01-19 Thread Kevin Laatz
On 19/01/2023 15:06, Robin Jarry wrote: Add a simple command that calls rte_lcore_dump(). Signed-off-by: Robin Jarry Acked-by: Morten Brørup Acked-by: Konstantin Ananyev --- Notes: v5 -> v6: No change app/test-pmd/cmdline.c | 3 +++ 1 file changed, 3 insertions(+) Reviewed-by: Kev

Re: [PATCH v6 4/5] testpmd: report lcore usage

2023-01-19 Thread Kevin Laatz
On 19/01/2023 15:06, Robin Jarry wrote: Reuse the --record-core-cycles option to account for busy cycles. One turn of packet_fwd_t is considered "busy" if there was at least one received or transmitted packet. Add a new busy_cycles field in struct fwd_stream. Update get_end_cycles to accept an a

Re: [PATCH v6 5/5] telemetry: add /eal/lcore/usage endpoint

2023-01-19 Thread Kevin Laatz
On 19/01/2023 15:06, Robin Jarry wrote: Allow fetching CPU cycles usage for all lcores with a single request. This endpoint is intended for repeated and frequent invocations by external monitoring systems and therefore returns condensed data. It consists of a single dictionary with three keys: "

Re: [PATCH v4 1/9] eal: annotate spinlock, rwlock and seqlock

2023-01-19 Thread Stephen Hemminger
On Thu, 19 Jan 2023 19:46:12 +0100 David Marchand wrote: > clang offers some thread safety checks, statically verifying that locks > are taken and released in the code. > To use those checks, the full code leading to taking or releasing locks > must be annotated with some attributes. > > Wrap th

Re: [PATCH v4 1/9] eal: annotate spinlock, rwlock and seqlock

2023-01-19 Thread Tyler Retzlaff
On Thu, Jan 19, 2023 at 11:42:02AM -0800, Stephen Hemminger wrote: > On Thu, 19 Jan 2023 19:46:12 +0100 > David Marchand wrote: > > > +#ifndef __DOXYGEN__ > > + __rte_exclusive_lock_function(&seqlock->lock) > > +#endif > > { > > Would be cleaner any required ifdefs was in rte_lock_annotations

Re: [PATCH v4 1/9] eal: annotate spinlock, rwlock and seqlock

2023-01-19 Thread David Marchand
On Thu, Jan 19, 2023 at 8:42 PM Stephen Hemminger wrote: > > On Thu, 19 Jan 2023 19:46:12 +0100 > David Marchand wrote: > > > +#ifndef __DOXYGEN__ > > + __rte_exclusive_lock_function(&seqlock->lock) > > +#endif > > { > > Would be cleaner any required ifdefs was in rte_lock_annotations > rath

Re: [PATCH v4 1/9] eal: annotate spinlock, rwlock and seqlock

2023-01-19 Thread David Marchand
On Thu, Jan 19, 2023 at 9:39 PM Tyler Retzlaff wrote: > > On Thu, Jan 19, 2023 at 11:42:02AM -0800, Stephen Hemminger wrote: > > On Thu, 19 Jan 2023 19:46:12 +0100 > > David Marchand wrote: > > > > > +#ifndef __DOXYGEN__ > > > + __rte_exclusive_lock_function(&seqlock->lock) > > > +#endif > > >

[PATCH] doc: add capability to access physical addresses

2023-01-19 Thread Dmitry Kozlyuk
DAC_READ_SEARCH or DAC_OVERRIDE capability is required to access /proc/self/pagemap, but the Linux guide mentioned neither one. Recommend DAC_READ_SEARCH as less impactful. Fixes: 979bb5d493fb ("doc: add more instructions for running as non-root") Cc: sta...@dpdk.org Signed-off-by: Dmitry Kozlyuk

Re: [PATCH v4 1/9] eal: annotate spinlock, rwlock and seqlock

2023-01-19 Thread Tyler Retzlaff
On Thu, Jan 19, 2023 at 10:16:35PM +0100, David Marchand wrote: > On Thu, Jan 19, 2023 at 9:39 PM Tyler Retzlaff > wrote: > > > > On Thu, Jan 19, 2023 at 11:42:02AM -0800, Stephen Hemminger wrote: > > > On Thu, 19 Jan 2023 19:46:12 +0100 > > > David Marchand wrote: > > > > > > > +#ifndef __DOXYGE

[PATCH v6 0/4] add support for self monitoring

2023-01-19 Thread Tomasz Duszynski
This series adds self monitoring support i.e allows to configure and read performance measurement unit (PMU) counters in runtime without using perf utility. This has certain adventages when application runs on isolated cores with nohz_full kernel parameter. Events can be read directly using rte_pm

[PATCH v6 1/4] lib: add generic support for reading PMU events

2023-01-19 Thread Tomasz Duszynski
Add support for programming PMU counters and reading their values in runtime bypassing kernel completely. This is especially useful in cases where CPU cores are isolated (nohz_full) i.e run dedicated tasks. In such cases one cannot use standard perf utility without sacrificing latency and performa

[PATCH v6 2/4] pmu: support reading ARM PMU events in runtime

2023-01-19 Thread Tomasz Duszynski
Add support for reading ARM PMU events in runtime. Signed-off-by: Tomasz Duszynski --- app/test/test_pmu.c | 4 ++ lib/pmu/meson.build | 7 +++ lib/pmu/pmu_arm64.c | 94 + lib/pmu/rte_pmu.h | 4 ++ lib/pmu/rte_pmu_pmc_arm64

[PATCH v6 3/4] pmu: support reading Intel x86_64 PMU events in runtime

2023-01-19 Thread Tomasz Duszynski
Add support for reading Intel x86_64 PMU events in runtime. Signed-off-by: Tomasz Duszynski --- app/test/test_pmu.c | 2 ++ lib/pmu/meson.build | 1 + lib/pmu/rte_pmu.h| 2 ++ lib/pmu/rte_pmu_pmc_x86_64.h | 24 4 files changed, 29 inserti

[PATCH v6 4/4] eal: add PMU support to tracing library

2023-01-19 Thread Tomasz Duszynski
In order to profile app one needs to store significant amount of samples somewhere for an analysis latern on. Since trace library supports storing data in a CTF format lets take adventage of that and add a dedicated PMU tracepoint. Signed-off-by: Tomasz Duszynski --- app/test/test_trace_perf.c

Re: net/bnxt: wrong link status when lsc_intr is used

2023-01-19 Thread Ajit Khaparde
On Thu, Jan 19, 2023 at 5:37 AM Edwin Brossette wrote: > > Hello, > snip > I was wondering if patching the code to move this line which sets lsc > interrupt on somewhere else might be reasonable, or if this could cause > further trouble. Maybe having a parameter to trigger it ON/OFF m

[PATCH 1/2] net/mana: add version information for dependencies

2023-01-19 Thread longli
From: Long Li The required dependencies for mana from rdma-core and Linux kernel have been released. Add those information to the doc. Fixes: 517ed6e2d590 ("net/mana: add basic driver with build environment") Signed-off-by: Long Li --- doc/guides/nics/mana.rst | 8 +++- 1 file changed, 3 i

[PATCH 2/2] net/mana: enable driver by default

2023-01-19 Thread longli
From: Long Li The dependencies of mana have been released in rdma-core v44 and Linux kernel 6.2. Signed-off-by: Long Li --- MAINTAINERS | 2 +- drivers/net/meson.build | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 9a0f416d2e..7

[PATCH v3 0/5] support dmadev/ethdev stats reset

2023-01-19 Thread Chengwen Feng
This patchset contains dmadev/ethdev stats reset, and also support hide zero for ethdev xstats and two telemetry related bugs. Chengwen Feng (5): dmadev: support stats reset telemetry command telemetry: fix repeat display when callback don't init dict ethdev: add newline to telemetry log str

[PATCH v3 1/5] dmadev: support stats reset telemetry command

2023-01-19 Thread Chengwen Feng
The stats reset is useful for debugging, so add it to the dmadev telemetry command lists. Signed-off-by: Chengwen Feng Reviewed-by: Bruce Richardson --- lib/dmadev/rte_dmadev.c | 43 + 1 file changed, 43 insertions(+) diff --git a/lib/dmadev/rte_dmadev.c

[PATCH v3 4/5] ethdev: support xstats reset telemetry command

2023-01-19 Thread Chengwen Feng
The xstats reset is useful for debugging, so add it to the ethdev telemetry command lists. Signed-off-by: Chengwen Feng --- lib/ethdev/rte_ethdev.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c index 9eeae61024.

[PATCH v3 2/5] telemetry: fix repeat display when callback don't init dict

2023-01-19 Thread Chengwen Feng
When a telemetry callback doesn't initialize the telemetry data structure and returns a non-negative number, the telemetry will repeat to display the last result. This patch zero the data structure to avoid the problem. Fixes: 6dd571fd07c3 ("telemetry: introduce new functionality") Cc: sta...@dpdk

  1   2   >