[PATCH 2/2] net/nfp: reduce the length of PCI name

2023-06-14 Thread Chaoyong He
From: Long Wu The whole PCI name is too long and we remove the part before the first colon. For example: old: :af:00.0_ctrlmp new: af:00.0_ctrlmp Signed-off-by: Long Wu Reviewed-by: Chaoyong He --- drivers/net/nfp/flower/nfp_flower.c | 2 +- drivers/net/nfp/nfp_flow.c | 10

[PATCH 1/2] net/nfp: fix representor name too long

2023-06-14 Thread Chaoyong He
From: Long Wu The length of representor name may exceed the limit when we use it to create rte_ring, so we reduce the length of its name. For example: old: :af:00.0_fl_repr_p1 new: af:00.0_repr_p1 Fixes: 2003cb447aa5 ("net/nfp: fix representor creation") Cc: sta...@dpdk.org Signed-off-by:

[PATCH 0/2] reduce the length of PCI name

2023-06-14 Thread Chaoyong He
Use the complete PCI name as the part of representor port name cause the app crash, because the name is too long. Fix this by reduce the length, using only the parts after the first ':'. To keep unification, also use the same approach for the name of hash parameters. Long Wu (2): net/nfp: fix

Re: [External] Re: [PATCH] eal: fix prompt info when remap_segment failed

2023-06-14 Thread Fengnan Chang
Burakov, Anatoly 于2023年6月13日周二 19:00写道: > > On 5/29/2023 12:21 PM, Fengnan Chang wrote: > > when there is enough space for memseg, we should pormpt which > > config to modify, not just print numbers. > > > > Signed-off-by: Fengnan Chang > > --- > > lib/eal/linux/eal_memory.c | 5 ++--- > > 1 f

Re: [External] Re: [PATCH] eal: fix prompt info when remap_segment failed

2023-06-14 Thread Fengnan Chang
David Marchand 于2023年6月12日周一 21:09写道: > > On Mon, May 29, 2023 at 1:22 PM Fengnan Chang > wrote: > > > > when there is enough space for memseg, we should pormpt which > > config to modify, not just print numbers. > > I think you want to explain the case when there is *not* enough > objects declar

RE: [PATCH] net/i40e: fix tunnel packet TX descriptor error

2023-06-14 Thread Zhang, Qi Z
> -Original Message- > From: Shiyang He > Sent: Wednesday, June 14, 2023 5:59 PM > To: dev@dpdk.org > Cc: Zhou, YidingX ; He, ShiyangX > ; sta...@dpdk.org; Zhang, Yuying > ; Xing, Beilei ; Zhe Tao > ; Jianfeng Tan > Subject: [PATCH] net/i40e: fix tunnel packet TX descriptor error > >

[PATCH] common/cnxk: removed stale condition

2023-06-14 Thread skoteshwar
From: Satha Rao Removed condition that doesn't have any effect on code flow. Coverity issue: 385405 Fixes: 4d00b8c6a331 ("common/cnxk: allocate dynamic BPIDs") Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix_fc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/common/cnx

RE: [PATCH v2] net/iavf: fix abnormal disable HW interrupt

2023-06-14 Thread Zhang, Qi Z
> -Original Message- > From: Mingjin Ye > Sent: Wednesday, June 14, 2023 5:53 PM > To: dev@dpdk.org > Cc: Yang, Qiming ; Zhou, YidingX > ; Ye, MingjinX ; > sta...@dpdk.org; Wu, Jingjing ; Xing, Beilei > > Subject: [PATCH v2] net/iavf: fix abnormal disable HW interrupt > > For command

Re: [RFC] lib/ethdev: introduce table driven APIs

2023-06-14 Thread Jerin Jacob
On Thu, Jun 15, 2023 at 11:33 AM Zhang, Qi Z wrote: > > Hi Jerin: Hi Qi > > > -Original Message- > > From: Jerin Jacob > > Sent: Thursday, June 15, 2023 12:58 PM > > To: Zhang, Qi Z > > Cc: Ori Kam ; NBU-Contact-Thomas Monjalon (EXTERNAL) > > ; david.march...@redhat.com; Richardson, Br

[PATCH v9] gro : ipv6 changes to support GRO for TCP/ipv6

2023-06-14 Thread Kumara Parameshwaran
The patch adds GRO support for TCP/ipv6 packets. This does not include the support for vxlan, udp ipv6 packets. Signed-off-by: Kumara Parameshwaran --- v1: * Changes to support GRO for TCP/ipv6 packets. This does not include vxlan changes. * The GRO is performed only fo

Re: [PATCH 1/3] eventdev: introduce event dispatcher

2023-06-14 Thread Mattias Rönnblom
On 2023-06-14 20:13, Stephen Hemminger wrote: On Wed, 14 Jun 2023 19:25:25 +0200 Mattias Rönnblom wrote: static struct rte_event_dispatcher_handler* +evd_lcore_get_handler_by_id(struct rte_event_dispatcher_lcore *lcore, + int handler_id) +{ + int i in other pl

RE: [RFC] lib/ethdev: introduce table driven APIs

2023-06-14 Thread Zhang, Qi Z
Hi Jerin: > -Original Message- > From: Jerin Jacob > Sent: Thursday, June 15, 2023 12:58 PM > To: Zhang, Qi Z > Cc: Ori Kam ; NBU-Contact-Thomas Monjalon (EXTERNAL) > ; david.march...@redhat.com; Richardson, Bruce > ; jer...@marvell.com; ferruh.yi...@amd.com; > Mcnamara, John ; Zhang, He

Re: [PATCH] drivers/cnxk: disable asm operand width warning

2023-06-14 Thread Jerin Jacob
On Thu, Jun 15, 2023 at 1:51 AM wrote: > > From: Pavan Nikhilesh > > Disable -Wasm-operand-widths when using clang. > > Fixes: 1c80eb7a3ccc ("event/cnxk: use WFE in Tx flow control wait") > > Signed-off-by: Pavan Nikhilesh > --- > Jerin, Please squash this to 1c80eb7a3ccc. Squashed. > > driv

Re: [EXT] Re: [PATCH v2 3/3] event/cnxk: use WFE in Tx fc wait

2023-06-14 Thread Jerin Jacob Kollanukkaran
Fix merged. From: Patrick Robb Sent: Wednesday, June 14, 2023 11:57 PM To: Jerin Jacob Cc: Pavan Nikhilesh Bhagavatula ; Jerin Jacob Kollanukkaran ; Shijith Thotton ; Nithin Kumar Dabilpuram ; Kiran Kumar Kokkilagadda ; Sunil Kumar Kori ; Satha Koteswara Rao K

[PATCH v8] gro : ipv6 changes to support GRO for TCP/ipv6

2023-06-14 Thread Kumara Parameshwaran
The patch adds GRO support for TCP/ipv6 packets. This does not include the support for vxlan, udp ipv6 packets. Signed-off-by: Kumara Parameshwaran --- v1: * Changes to support GRO for TCP/ipv6 packets. This does not include vxlan changes. * The GRO is performed only fo

RE: [PATCH 0/2] fix variable type in pattern parsing for raw flow

2023-06-14 Thread Xu, Ting
> -Original Message- > From: Guo, Junfeng > Sent: Thursday, June 15, 2023 1:17 PM > To: Zhang, Qi Z ; Yang, Qiming > > Cc: dev@dpdk.org; sta...@dpdk.org; Xu, Ting ; Guo, > Junfeng > Subject: [PATCH 0/2] fix variable type in pattern parsing for raw flow > > In current pattern parsing fun

RE: [EXT] [PATCH v6] app/dma-perf: introduce dma-perf application

2023-06-14 Thread Anoob Joseph
Hi, Thanks for working on the comments. Few more top level comment inline. Thanks, Anoob > -Original Message- > From: Cheng Jiang > Sent: Tuesday, June 13, 2023 10:02 AM > To: tho...@monjalon.net; bruce.richard...@intel.com; > m...@smartsharesystems.com; chenbo@intel.com; Amit Praka

[PATCH 2/2] net/iavf: fix variable type in pattern parsing for raw flow

2023-06-14 Thread Junfeng Guo
In current pattern parsing function for protocol agnostic flow offloading (raw flow), some of the variables of packet length are defined as uint8_t, which are too small for some large-size packets, such as srv6 (Segment Routing over IPv6 dataplane) type. Change the type to uint16_t. Fixes: bc0e855

[PATCH 0/2] fix variable type in pattern parsing for raw flow

2023-06-14 Thread Junfeng Guo
In current pattern parsing function for protocol agnostic flow offloading (raw flow), some of the variables of packet length are defined as uint8_t, which are too small for some large-size packets, such as srv6 (Segment Routing over IPv6 dataplane) type. Change the type to uint16_t. For example, t

[PATCH 1/2] net/ice: fix variable type in pattern parsing for raw flow

2023-06-14 Thread Junfeng Guo
In current pattern parsing function for protocol agnostic flow offloading (raw flow), some of the variables of packet length are defined as uint8_t, which are too small for some large-size packets, such as srv6 (Segment Routing over IPv6 dataplane) type. Change the type to uint16_t. Fixes: 25be39c

[PATCH] net/cnxk: flush SQ before configuring MTU

2023-06-14 Thread skoteshwar
From: Satha Rao When try to configure MTU for lower value causes run time failure due to old bigger packets enqueued. To avoid error interrupts better to flush the all SQs of this port before configuring new MTU. Signed-off-by: Satha Rao --- drivers/net/cnxk/cnxk_ethdev.h | 1 + drivers/n

Re: [RFC] lib/ethdev: introduce table driven APIs

2023-06-14 Thread Jerin Jacob
On Thu, Jun 15, 2023 at 7:55 AM Zhang, Qi Z wrote: > > Hi Ori: > > Thank you for your review! > Comment inline. > Please let me know if anything I missed. > > Thanks > Qi > > > -Original Message- > > From: Ori Kam > > Sent: Thursday, June 15, 2023 2:31 AM > > To: Z

RE: [EXT] Re: [PATCH v2 8/8] crypto/ipsec_mb: set and use session ID

2023-06-14 Thread Akhil Goyal
> -Original Message- > From: Fangming Fang > Sent: Thursday, June 15, 2023 8:16 AM > To: Akhil Goyal ; tho...@monjalon.net; Ciara Power > ; Honnappa Nagarahalli > ; kai...@intel.com; Pablo de Lara > ; Ruifeng Wang ; > john.mcnam...@intel.com > Cc: dev@dpdk.org; david.march...@redhat.com

RE: [PATCH] maintainers: update for OCTEON EP and CNXK DMA

2023-06-14 Thread Radha Chintakuntla
> -Original Message- > From: Vamsi Attunuru > Sent: Tuesday, June 13, 2023 9:28 PM > To: dev@dpdk.org; tho...@monjalon.net > Cc: Radha Chintakuntla ; Veerasenareddy Burru > ; Sathesh B Edara ; Jerin Jacob > Kollanukkaran ; Vamsi Krishna Attunuru > > Subject: [PATCH] maintainers: update fo

[PATCH] net/nfp: changes to link status reporting

2023-06-14 Thread Chaoyong He
From: James Hershaw The NFP PMD driver retrieves the linkspeed by reading the NFP_NET_CFG_STS_LINK register. This register is not set by all versions of the firmware. Changes in this patch include: Addition of listener function to deal with control messages of type NFP_FLOWER_CMSG_TYPE_PORT_MOD

[PATCH] net/nfp: fix getting firmware version

2023-06-14 Thread Chaoyong He
The VF PMD can not get a valid 'cpp' data filed in the 'struct nfp_net_hw', the value of which will be NULL always. This cause any logic which use of 'cpp' will make the app crash. Fix this by delete the support of getting firmware version of VF. Fixes: 128c8ad951bf ("net/nfp: support getting fir

Re: [dpdk-dev] [RFC] net: make eCPRI header host network order

2023-06-14 Thread Stephen Hemminger
On Fri, 27 Nov 2020 19:09:20 + Ferruh Yigit wrote: > Other protocol structs are in the host byte order, having eCPRI in > network byte order is insistent and error prone. > > Making eCPRI protocol header host byte order. > > Signed-off-by: Haiyue Wang > Signed-off-by: Ferruh Yigit The di

RE: [EXT] Re: [PATCH v2 3/3] event/cnxk: use WFE in Tx fc wait

2023-06-14 Thread Pavan Nikhilesh Bhagavatula
Thanks Patrick, I have sent out a fix. https://mails.dpdk.org/archives/dev/2023-June/271209.html Pavan. From: Patrick Robb Sent: Wednesday, June 14, 2023 11:57 PM To: Jerin Jacob Cc: Pavan Nikhilesh Bhagavatula ; Jerin Jacob Kollanukkaran ; Shijith Thotton ; Nithin Kumar Dabilpuram ; Kira

[PATCH] drivers/cnxk: disable asm operand width warning

2023-06-14 Thread pbhagavatula
From: Pavan Nikhilesh Disable -Wasm-operand-widths when using clang. Fixes: 1c80eb7a3ccc ("event/cnxk: use WFE in Tx flow control wait") Signed-off-by: Pavan Nikhilesh --- Jerin, Please squash this to 1c80eb7a3ccc. drivers/event/cnxk/meson.build | 4 drivers/net/cnxk/meson.build | 3

Re: [dpdk-dev] [PATCH 0/8] Introduce emudev library and iavf emudev driver

2023-06-14 Thread Stephen Hemminger
On Fri, 18 Dec 2020 15:47:28 +0800 Chenbo Xia wrote: > This series introduces a new device abstraction called emudev for emulated > devices. A new library (librte_emudev) is implemented. The first emudev > driver is also introduced, which emulates Intel Adaptive Virtual Function > (iavf) as a sof

Re: [dpdk-dev] [PATCH 0/3] fix error path of multi-process probe

2023-06-14 Thread Stephen Hemminger
On Sat, 2 Mar 2019 03:42:50 +0100 Thomas Monjalon wrote: > While working on multi-process support of failsafe with Raslan, > some issues have been discovered on probing failures. > > Thomas Monjalon (3): > eal: remove useless checks for already probed device > eal: remove error logs for alr

Re: [dpdk-dev] [PATCH v4 0/4] add unit tests for eal vfio library

2023-06-14 Thread Stephen Hemminger
On Wed, 4 Sep 2019 13:04:38 +0100 Chaitanya Babu Talluri wrote: > 1/4: fix vfio unmap that fails unexpectedly > 2/4: fix vfio unmap that succeeds unexpectedly > 3/4: add API to check iommu type is set > 4/4: add unit tests for eal vfio > > Patch 4/4 depends on 1/4,2/4,3/4 > > Signed-off-by: Ch

Re: [dpdk-dev] [PATCH v7] eal: add manual probing option

2023-06-14 Thread Stephen Hemminger
On Thu, 23 Jan 2020 10:58:13 +0100 Gaetan Rivet wrote: > Add a new EAL option enabling manual probing in the EAL. > This command line option will configure the EAL so that buses > will not trigger their probe step on their own. > > Applications are then expected to hotplug devices as they see fi

Re: [dpdk-dev] [PATCH v2] eal/windows: Switched to an external pthreads library

2023-06-14 Thread Stephen Hemminger
On Thu, 24 Sep 2020 12:41:01 +0100 John Alexander wrote: > The Windows EAL build now pulls in the pthreads4w project as an external > subproject. The pthreads4w subproject does not currently provide a > meson build so the project has been patched with one. > > Removed the placeholder librte_eal

RE: [EXT] [PATCH v2 resend] crypto/uadk: set queue pair in dev_configure

2023-06-14 Thread Akhil Goyal
> By default, uadk only alloc two queues for each algorithm, which > will impact performance. > Set queue pair number as required in dev_configure. > The default max queue pair number is 8, which can be modified > via para: max_nb_queue_pairs > > Example: > sudo dpdk-test-crypto-perf -l 0-10 --vde

Re: [dpdk-dev] [PATCH 1/1] build: allow disabling libs

2023-06-14 Thread Stephen Hemminger
On Fri, 18 Sep 2020 14:57:50 +0100 Bruce Richardson wrote: > On Fri, Sep 18, 2020 at 02:54:21PM +0200, Mohammed Hawari wrote: > > Hello Bruce, > > > > Thanks for the quick response, see inline > > > > Best regards, > > > > Mohammed > > > > > On 18 Sep 2020, at 13:43, Bruce Richardson > >

RE: [EXT] [PATCH] crypto/openssl: add aes-xts support

2023-06-14 Thread Akhil Goyal
++Kai for review. > -Original Message- > From: Akhil Goyal > Sent: Thursday, June 15, 2023 12:21 AM > To: Michael Leung ; dev@dpdk.org > Subject: RE: [EXT] [PATCH] crypto/openssl: add aes-xts support > > > Add aes-128-xts and aes-256-xts support for crypto openssl pmd. As xts mode > > we

RE: [EXT] [PATCH] crypto/openssl: add aes-xts support

2023-06-14 Thread Akhil Goyal
> Add aes-128-xts and aes-256-xts support for crypto openssl pmd. As xts mode > we got 2 key, the key length is multiplied by two, i.e. 32 and 64. > > Signed-off-by: Michael Leung > --- Fix checkpatch issues Also update doc/guides/cryptodevs/features/openssl.ini

RE: [EXT] [PATCH v6] crypto/qat: support to enable insecure algorithms

2023-06-14 Thread Akhil Goyal
> All the insecure algorithms are default disable from > cryptodev Gen 1,2,3 and 4. > use qat_legacy_capa to enable all the legacy > algorithms. > These change effects both sym and asym insecure crypto > algorithms. > > Signed-off-by: Vikash Poddar > --- > Depends-on: patch-28182 ("[v2] common/qa

RE: [RFC] lib/ethdev: introduce table driven APIs

2023-06-14 Thread Ori Kam
Hi Qi, 1. it may be useful to get some general calling flow what comes from the application, what comes from the compiler. Simple example will be good. 2. I gave some comments about names but those are in low priority, first, we need to understand what is the basic flow. 3. in your suggested A

Re: [PATCH v2 3/3] event/cnxk: use WFE in Tx fc wait

2023-06-14 Thread Patrick Robb
Hello Pavan and Jerin, The Community Lab's CI testing failed this patchseries on clang compile on ARM systems. That wasn't properly reported to Patchwork due to issues with our reporting process, which we are resolving currently. This updated report show the failed compile. Apologies for the incom

RE: [EXT] [PATCH v5] crypto/qat: default to IPsec MB for computations

2023-06-14 Thread Akhil Goyal
> -IMB_required_ver = '1.2.0' > +IMB_required_ver = '1.4.0' > IMB_header = '#include' > if arch_subdir == 'arm' > IMB_header = '#include' > endif I believe there are compilation issues with arm repo for 1.4 version. It is better to fix that first before making this to default. > libipsec

RE: [PATCH v1 1/1] doc: announce change in bbdev api related to operation extension

2023-06-14 Thread Chautru, Nicolas
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Hi, > > On 6/13/23 19:16, Chautru, Nicolas wrote: > > Hi Maxime, > > > >> -Original Message- > >> From: Maxime Coquelin > > > >> > >> On 6/12/23 22:53, Chautru, Nicolas wrote: > >>> Hi Maxime, David, > >>> > -Or

RE: [EXT] [PATCH 0/6] Trivial crypto PMDs cleanup

2023-06-14 Thread Akhil Goyal
> This small series cleans-up some crypto PMD drivers. > Please rebase.

Re: [PATCH 1/3] eventdev: introduce event dispatcher

2023-06-14 Thread Stephen Hemminger
On Wed, 14 Jun 2023 19:25:25 +0200 Mattias Rönnblom wrote: > static struct rte_event_dispatcher_handler* > +evd_lcore_get_handler_by_id(struct rte_event_dispatcher_lcore *lcore, > + int handler_id) > +{ > + int i in other places you used uint16_t for iterating over ha

RE: [EXT] [PATCH v2 0/9] crypto/mlx5: support AES-GCM

2023-06-14 Thread Akhil Goyal
> AES-GCM provides both authenticated encryption and the ability to check > the integrity and authentication of additional authenticated data (AAD) > that is sent in the clear. > > The crypto operations are performed with crypto WQE. If the input > buffers(AAD, mbuf, digest) are not contiguous and

[PATCH v3] crypto/qat: add SM3 HMAC to gen4 devices

2023-06-14 Thread Arek Kusztal
This commit adds SM3 HMAC to Intel QuickAssist Technology PMD generation 3 and 4 devices. Signed-off-by: Arek Kusztal --- v2: - Fixed problem with chaining operations - Added implementation of prefix tables v3: - Added support for gen3 devices doc/guides/cryptodevs/features/qat.ini | 1

[PATCH 3/3] doc: add event dispatcher programming guide

2023-06-14 Thread Mattias Rönnblom
Provide programming guide the for the event dispatcher. Signed-off-by: Mattias Rönnblom -- PATCH: o Improve grammar and spelling. RFC v4: o Extend event matching section of the programming guide. o Improve grammar and spelling. --- doc/api/doxy-api-index.md | 1 + doc/gui

[PATCH 2/3] test: add event dispatcher test suite

2023-06-14 Thread Mattias Rönnblom
Add unit tests for the event dispatcher. -- PATCH: o Extend test to cover often-used handler optimization feature. RFC v4: o Adapt to non-const events in process function prototype. Signed-off-by: Mattias Rönnblom --- app/test/meson.build | 1 + app/test/test_event_dispatcher.c

[PATCH 1/3] eventdev: introduce event dispatcher

2023-06-14 Thread Mattias Rönnblom
The purpose of the event dispatcher is to help reduce coupling in an Eventdev-based DPDK application. In addition, the event dispatcher also provides a convenient and flexible way for the application to use service cores for application-level processing. Signed-off-by: Mattias Rönnblom Tested-by

[PATCH 0/3] Add event dispatcher

2023-06-14 Thread Mattias Rönnblom
The purpose of the event dispatcher is to decouple different parts of an application (e.g., processing pipeline stages), sharing the same underlying event device. The event dispatcher replaces the conditional logic (often, a switch statement) that typically follows an event device dequeue operatio

RE: [PATCH] app/testpmd: add flow update CLI command

2023-06-14 Thread Ori Kam
Hi > -Original Message- > From: Alexander Kozyrev > Sent: Tuesday, June 13, 2023 12:14 AM > > Add testpmd CLI interface for the flow update API. > flow queue 1 update 2 rule 3 actions_template 4 postpone yes > pattern end actions queue index 3 / end > > Signed-off-by: Alexan

RE: [PATCH 3/4] net/mlx5/hws: support rule update after its creation

2023-06-14 Thread Ori Kam
> -Original Message- > From: Alexander Kozyrev > Sent: Monday, June 12, 2023 11:06 PM > > From: Erez Shitrit > > Add the ability to change rule's actions after the rule already created. > The new actions should be one of the action template list. > That support is only for matcher tha

RE: [PATCH 2/4] net/mlx5/hws: use union in the wqe-data struct

2023-06-14 Thread Ori Kam
> -Original Message- > From: Alexander Kozyrev > Sent: Monday, June 12, 2023 11:06 PM > > From: Erez Shitrit > > To be clear about which field we are going to set. > > Signed-off-by: Erez Shitrit > Reviewed-by: Alex Vesker > --- > drivers/net/mlx5/hws/mlx5dr_send.c | 2 +- > 1 fil

RE: [PATCH 1/4] net/mlx5/hws: use the same function to check rule

2023-06-14 Thread Ori Kam
> -Original Message- > From: Alexander Kozyrev > Sent: Monday, June 12, 2023 11:06 PM > To: dev@dpdk.org > Cc: Raslan Darawsheh ; Matan Azrad > ; Slava Ovsiienko ; Ori Kam > ; Erez Shitrit > Subject: [PATCH 1/4] net/mlx5/hws: use the same function to check rule > > From: Erez Shitrit

Reminder - Please submit your DPDK Summit Presentation pitches to our CFP and Register for our September Event!

2023-06-14 Thread Nathan Southern
Good morning DPDK Community, Summer is upon us, and within a few months we will hold our DPDK Summit 2023 in Dublin, Ireland. September 12-13, 2023, at the Gibson Hotel in Point Square. Registration and attendance for this event are *free!* We've put out a CFP now for talks, to be presented to at

RE: [RFC PATCH] ethdev: advertise flow restore in mbuf

2023-06-14 Thread Slava Ovsiienko
Hi, David It looks like a good application datapath optimization, as for me. But I see some concerns: 1. Are we sure the PMD should register the flag, not application? IIRC, usually application registers needed flags/fields and PMDs just follow. + if (!sh->tunnel_hub && sh->config.dv_miss_

Re: [PATCH] ethdev: rename functions checking queue validity

2023-06-14 Thread Stephen Hemminger
On Wed, 14 Jun 2023 17:20:59 +0200 Thomas Monjalon wrote: > Two functions helping to check Rx/Tx queues validity > were added in DPDK 23.07-rc1. > As the release is not closed, it is still time to rename. > > The name proposed originally > rte_eth_dev_is_valid_*xq > is consistent with this

[PATCH v15 16/16] examples/l3fwd-graph: introduce mcore dispatch worker model

2023-06-14 Thread Zhirun Yan
Add new parameter "model" to choose mcore dispatch or rtc model. And in dispatch model, the node will affinity to worker core successively. RTE_GRAPH_MODEL_SELECT is set to RTE_GRAPH_MODEL_RTC by default. Must set model the same as RTE_GRAPH_MODEL_SELECT if set it as rtc or mcore dispatch explicit

[PATCH v15 15/16] test/graph: add functional tests for mcore dispatch model

2023-06-14 Thread Zhirun Yan
Add functional test for mcore dispatch model including graph clone, graph model set/get, node worker affinity, graph worker binding/unbinding. Signed-off-by: Haiyue Wang Signed-off-by: Cunming Liang Signed-off-by: Zhirun Yan Acked-by: Pavan Nikhilesh --- app/test/test_graph.c | 130 ++

[PATCH v15 14/16] graph: add stats for mcore dispatch model

2023-06-14 Thread Zhirun Yan
Add stats for mcore dispatch model if stats collection is enabled. Signed-off-by: Haiyue Wang Signed-off-by: Cunming Liang Signed-off-by: Zhirun Yan Acked-by: Jerin Jacob Acked-by: Pavan Nikhilesh --- lib/graph/graph_debug.c| 6 ++ lib/graph/graph_stats.c

[PATCH v15 13/16] graph: enable graph multicore dispatch scheduler model

2023-06-14 Thread Zhirun Yan
This patch enables to chose new scheduler model. Must define RTE_GRAPH_MODEL_SELECT before including rte_graph_worker.h to enable specific model choosing. Signed-off-by: Haiyue Wang Signed-off-by: Cunming Liang Signed-off-by: Zhirun Yan Acked-by: Jerin Jacob Acked-by: Pavan Nikhilesh --- doc

[PATCH v15 12/16] graph: introduce graph walk by cross-core dispatch

2023-06-14 Thread Zhirun Yan
This patch introduces the task scheduler mechanism to enable dispatching tasks to another worker cores. Currently, there is only a local work queue for one graph to walk. We introduce a scheduler worker queue in each worker core for dispatching tasks. It will perform the walk on scheduler work queu

[PATCH v15 11/16] graph: enable create and destroy graph scheduling workqueue

2023-06-14 Thread Zhirun Yan
This patch enables to create and destroy scheduling workqueue into common graph operations. Signed-off-by: Haiyue Wang Signed-off-by: Cunming Liang Signed-off-by: Zhirun Yan Acked-by: Pavan Nikhilesh --- lib/graph/graph.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff

[PATCH v15 10/16] graph: introduce stream moving cross cores

2023-06-14 Thread Zhirun Yan
This patch introduces key functions to allow a worker thread to enable enqueue and move streams of objects to the next nodes over different cores for mcore dispatch model. Signed-off-by: Haiyue Wang Signed-off-by: Cunming Liang Signed-off-by: Zhirun Yan Acked-by: Pavan Nikhilesh --- lib/graph

[PATCH v15 09/16] graph: add structure for stream moving between cores

2023-06-14 Thread Zhirun Yan
Add graph_mcore_dispatch_wq_node to hold graph scheduling workqueue node. Signed-off-by: Haiyue Wang Signed-off-by: Cunming Liang Signed-off-by: Zhirun Yan --- lib/graph/graph.c | 2 ++ lib/graph/graph_populate.c | 1 + lib/graph/graph_private.h | 12

[PATCH v15 08/16] graph: introduce graph clone API for other worker core

2023-06-14 Thread Zhirun Yan
This patch adds graph API for supporting to clone the graph object for a specified worker core. The new graph will also clone all nodes. Signed-off-by: Haiyue Wang Signed-off-by: Cunming Liang Signed-off-by: Zhirun Yan Acked-by: Jerin Jacob --- lib/graph/graph.c | 89 +

[PATCH v15 07/16] graph: move node clone name func into private as common

2023-06-14 Thread Zhirun Yan
Move clone_name() into graph_private.h as a common function for both node and graph to naming a new cloned object. Signed-off-by: Haiyue Wang Signed-off-by: Cunming Liang Signed-off-by: Zhirun Yan Acked-by: Jerin Jacob --- lib/graph/graph_private.h | 41 +++

[PATCH v15 06/16] graph: introduce graph bind unbind API

2023-06-14 Thread Zhirun Yan
Add lcore_id for graph to hold affinity core id where graph would run on. Add bind/unbind API to set/unset graph affinity attribute. lcore_id will be set as MAX by default, it means not enable this attribute. Signed-off-by: Haiyue Wang Signed-off-by: Cunming Liang Signed-off-by: Zhirun Yan Acke

[PATCH v15 05/16] graph: introduce graph node core affinity API

2023-06-14 Thread Zhirun Yan
Add lcore_id for node to hold affinity core id and impl rte_graph_model_mcore_dispatch_lcore_affinity_set to set node affinity with specific lcore. Signed-off-by: Haiyue Wang Signed-off-by: Cunming Liang Signed-off-by: Zhirun Yan Acked-by: Jerin Jacob --- lib/graph/graph_private.h

[PATCH v15 04/16] graph: add get/set graph worker model APIs

2023-06-14 Thread Zhirun Yan
Add new get/set APIs to configure graph worker model which is used to determine which model will be chosen. Signed-off-by: Haiyue Wang Signed-off-by: Cunming Liang Signed-off-by: Zhirun Yan Acked-by: Jerin Jacob --- lib/graph/meson.build | 1 + lib/graph/rte_graph_worker.c

[PATCH v15 03/16] graph: move node process into inline function

2023-06-14 Thread Zhirun Yan
Node process is a single and reusable block, move the code into an inline function. Signed-off-by: Haiyue Wang Signed-off-by: Cunming Liang Signed-off-by: Zhirun Yan Acked-by: Jerin Jacob --- lib/graph/rte_graph_model_rtc.h | 20 ++--- lib/graph/rte_graph_worker_common.h | 33

[PATCH v15 02/16] graph: split graph worker into common and default model

2023-06-14 Thread Zhirun Yan
To support multiple graph worker model, split graph into common and default. Naming the current walk function as rte_graph_model_rtc cause the default model is RTC(Run-to-completion). Signed-off-by: Haiyue Wang Signed-off-by: Cunming Liang Signed-off-by: Zhirun Yan Acked-by: Jerin Jacob --- a

[PATCH v15 01/16] graph: rename rte graph worker header as common

2023-06-14 Thread Zhirun Yan
Rename rte_graph_work.h to rte_graph_work_common.h for supporting multiple graph worker model. Signed-off-by: Haiyue Wang Signed-off-by: Cunming Liang Signed-off-by: Zhirun Yan Acked-by: Jerin Jacob --- MAINTAINERS | 3 ++- app/test/test_graph.c

[PATCH v15 00/16] graph enhancement for multi-core dispatch

2023-06-14 Thread Zhirun Yan
V15: Fix build issues. (add unused macro in patch 10 then remove in patch 11, fix log message format in patch 01, rm wrong assert in dispatch_walk in patch 12) V14: Rebase to main and fix build issues.(align header name in patch 01,02) V13: Add sub header into meson indirect_headers list to expo

Re: [PATCH 0/5] cleanup in library header files

2023-06-14 Thread Thomas Monjalon
14/06/2023 17:08, David Marchand: > On Wed, Jun 14, 2023 at 4:42 PM Jerin Jacob wrote: > > > > On Wed, Jun 14, 2023 at 8:01 PM Thomas Monjalon wrote: > > > > > > While pulling some trees for DPDK 23.07-rc1, > > > I've seen that some wrong coding style for comments > > > were copied over and over.

Re: [PATCH] ethdev: rename functions checking queue validity

2023-06-14 Thread Ferruh Yigit
On 6/14/2023 4:20 PM, Thomas Monjalon wrote: > Two functions helping to check Rx/Tx queues validity > were added in DPDK 23.07-rc1. > As the release is not closed, it is still time to rename. > > The name proposed originally > rte_eth_dev_is_valid_*xq > is consistent with this function: >

[PATCH] ethdev: rename functions checking queue validity

2023-06-14 Thread Thomas Monjalon
Two functions helping to check Rx/Tx queues validity were added in DPDK 23.07-rc1. As the release is not closed, it is still time to rename. The name proposed originally rte_eth_dev_is_valid_*xq is consistent with this function: rte_eth_dev_is_valid_port() However, the suffixes "rx

Re: [PATCH 0/5] cleanup in library header files

2023-06-14 Thread David Marchand
On Wed, Jun 14, 2023 at 4:42 PM Jerin Jacob wrote: > > On Wed, Jun 14, 2023 at 8:01 PM Thomas Monjalon wrote: > > > > While pulling some trees for DPDK 23.07-rc1, > > I've seen that some wrong coding style for comments > > were copied over and over. > > > > In order to avoid copying wrong comment

[PATCH] buildtools: remove assumption about current work dir

2023-06-14 Thread Bruce Richardson
According to meson documentation, we should not make any assumptions as to what directory a script is called from[1]. The use of "relpath" when processing the output of directory globbing is therefore unsafe, as it was stripping off paths relative to the current directory - which just happened to b

Re: [PATCH 0/5] cleanup in library header files

2023-06-14 Thread Bruce Richardson
On Wed, Jun 14, 2023 at 04:26:46PM +0200, Thomas Monjalon wrote: > While pulling some trees for DPDK 23.07-rc1, > I've seen that some wrong coding style for comments > were copied over and over. > > In order to avoid copying wrong comment style, > the three first patches are fixing a lot of commen

Re: [PATCH 0/5] cleanup in library header files

2023-06-14 Thread Jerin Jacob
On Wed, Jun 14, 2023 at 8:01 PM Thomas Monjalon wrote: > > While pulling some trees for DPDK 23.07-rc1, > I've seen that some wrong coding style for comments > were copied over and over. > > In order to avoid copying wrong comment style, > the three first patches are fixing a lot of comments. > As

[PATCH 5/5] cryptodev: fix comments of modular operation parameters

2023-06-14 Thread Thomas Monjalon
The Doxygen comments are made after the struct field, but were missing the Doxygen syntax /**<. Fixes: 518a974bfecc ("cryptodev: reorganize asymmetric structs") Cc: sta...@dpdk.org Signed-off-by: Thomas Monjalon --- lib/cryptodev/rte_crypto_asym.h | 4 ++-- 1 file changed, 2 insertions(+), 2 de

[PATCH 4/5] lib: restrict use of keyword extern

2023-06-14 Thread Thomas Monjalon
Variable declarations in header files are using extern, it is valid. But function declarations do not need the keyword extern. Also, extern "C" should have a space after the keyword extern. Signed-off-by: Thomas Monjalon --- lib/acl/acl.h | 2 +- lib/bpf/bpf_impl.h|

[PATCH 3/5] lib: align comment blocks

2023-06-14 Thread Thomas Monjalon
Some comment blocks were missing a space or had too many spaces at the beginning of the lines, resulting in misalignment of asterisks. Such mistakes were found with this kind of commands: git grep '^\*' lib git grep '^ *\*' lib Signed-off-by: Thomas Monjalon --- lib/acl/acl_ge

[PATCH 2/5] lib: remove extra asterisks ending comment blocks

2023-06-14 Thread Thomas Monjalon
A comment should always be terminated with */ Extra asterisks were found with this kind of command: git grep '\* *\*/' lib Signed-off-by: Thomas Monjalon --- lib/cfgfile/rte_cfgfile.h | 2 +- lib/cryptodev/rte_crypto_sym.h | 2 +- lib/cryptodev/rte_cryptodev.h | 4 ++--

[PATCH 1/5] lib: remove blank line ending comment blocks

2023-06-14 Thread Thomas Monjalon
At the end of a comment, no need for an extra line. This pattern was fixed with the following command: git ls lib | xargs sed -i '/^ *\* *$/{N;/ *\*\/ *$/D;}' Signed-off-by: Thomas Monjalon --- lib/bbdev/rte_bbdev.h | 2 -- lib/bbdev/rte_bbdev_op.h| 1 - lib/

[PATCH 0/5] cleanup in library header files

2023-06-14 Thread Thomas Monjalon
While pulling some trees for DPDK 23.07-rc1, I've seen that some wrong coding style for comments were copied over and over. In order to avoid copying wrong comment style, the three first patches are fixing a lot of comments. As it is not critical, they are not marked for backport. While looking t

Re: [PATCH] usertools: enhance logic to display NUMA

2023-06-14 Thread Thomas Monjalon
14/06/2023 12:48, Ferruh Yigit: > Should we document preferred tool and usage in DPDK, if so where is good > location for it? I think it should be in the user guide. We are starting to merge the 3 user guides in 1. You can add it to the Linux guide only for now.

[PATCH] eal/interrupts: Allow UIO interrupts when using igb_uio

2023-06-14 Thread Vladimir Ratnikov
Some drivers and devices(ex: igc + i225/i226) use RTE_INTR_HANDLE_UIO handler when captured under igb_uio so just let them use it. Signed-off-by: Vladimir Ratnikov --- lib/eal/linux/eal_interrupts.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/eal/linux/eal_interrupts.c b/lib/eal/

[PATCH] ixgbe: Allow setting IVAR register for X550EM_a

2023-06-14 Thread Vladimir Ratnikov
Fix interrupt mode initialization for X550EM_a revision Signed-off-by: Vladimir Ratnikov --- drivers/net/ixgbe/ixgbe_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 43aea2e16f..d44ef37a7a 100644 --- a/drivers/

Re: [PATCH v4 2/4] eal: add x86 cpuid support for monitorx

2023-06-14 Thread Burakov, Anatoly
On 4/18/2023 9:25 AM, Sivaprasad Tummala wrote: Add a new CPUID flag to indicate support for monitorx instruction on AMD EPYC processors. Signed-off-by: Sivaprasad Tummala --- Acked-by: Anatoly Burakov -- Thanks, Anatoly

Re: [PATCH v4 4/4] power: amd power monitor support

2023-06-14 Thread Burakov, Anatoly
On 4/18/2023 9:25 AM, Sivaprasad Tummala wrote: mwaitx allows EPYC processors to enter a implementation dependent power/performance optimized state (C1 state) for a specific period or until a store to the monitored address range. Signed-off-by: Sivaprasad Tummala --- Bar one fix below, Acked

Re: [PATCH v4 3/4] eal: removed unnecessary checks in x86 power monitor APIs

2023-06-14 Thread Burakov, Anatoly
On 4/18/2023 9:25 AM, Sivaprasad Tummala wrote: current x86 power monitor implementation fails on platforms with only monitor supported and not power_pause. Signed-off-by: Sivaprasad Tummala --- Acked-by: Anatoly Burakov -- Thanks, Anatoly

[PATCH v5 14/15] net/cnxk: add MACsec session and flow configuration

2023-06-14 Thread Akhil Goyal
Added support for MACsec session/flow create/destroy. Signed-off-by: Akhil Goyal --- drivers/net/cnxk/cn10k_ethdev_sec.c | 11 +- drivers/net/cnxk/cn10k_flow.c | 23 ++- drivers/net/cnxk/cnxk_ethdev.c | 2 + drivers/net/cnxk/cnxk_ethdev.h | 16 ++ drivers/net/cnxk/cnxk_ethde

[PATCH v5 15/15] net/cnxk: add MACsec stats

2023-06-14 Thread Akhil Goyal
Added support for MACsec SC/flow/session stats. Signed-off-by: Akhil Goyal --- doc/guides/rel_notes/release_23_07.rst | 10 ++-- drivers/net/cnxk/cn10k_ethdev_sec.c| 11 +++-- drivers/net/cnxk/cnxk_ethdev_mcs.c | 64 ++ drivers/net/cnxk/cnxk_ethdev_mcs.h | 9

[PATCH v5 12/15] net/cnxk: add MACsec initialization

2023-06-14 Thread Akhil Goyal
Added initialization routines for MACsec for cn10kb platform. Signed-off-by: Akhil Goyal --- drivers/net/cnxk/cn10k_ethdev_sec.c | 6 ++ drivers/net/cnxk/cnxk_ethdev.c | 13 +++ drivers/net/cnxk/cnxk_ethdev.h | 14 +++ drivers/net/cnxk/cnxk_ethdev_mcs.c | 151 +

[PATCH v5 13/15] net/cnxk: create/destroy MACsec SC/SA

2023-06-14 Thread Akhil Goyal
Added support to create/destroy MACsec SA and SC. Signed-off-by: Akhil Goyal --- drivers/net/cnxk/cn10k_ethdev_sec.c | 9 +- drivers/net/cnxk/cnxk_ethdev_mcs.c | 253 drivers/net/cnxk/cnxk_ethdev_mcs.h | 16 ++ 3 files changed, 274 insertions(+), 4 deletions(-)

[PATCH v5 11/15] common/cnxk: derive hash key for MACsec

2023-06-14 Thread Akhil Goyal
MACsec hardware configuration need hash key to be generated from the cipher key of AES-GCM-128/256. Added an ROC API to derive the hash key and extend the case for AES-256 as well. Signed-off-by: Akhil Goyal --- drivers/common/cnxk/roc_aes.c | 86 ++--- drivers/comm

[PATCH v5 09/15] common/cnxk: add MACsec control port configuration

2023-06-14 Thread Akhil Goyal
Added ROC APIs to configure MACsec control port. Signed-off-by: Ankur Dwivedi Signed-off-by: Vamsi Attunuru Signed-off-by: Akhil Goyal --- drivers/common/cnxk/roc_mbox.h | 72 drivers/common/cnxk/roc_mcs.c | 117 drivers/common/cnxk/roc

  1   2   >