[PATCH 1/2] event/cnxk: fix burst timer arm routine

2023-02-02 Thread pbhagavatula
From: Pavan Nikhilesh Fix timer burst arm routine writing improper updates to the bucket. Fixes: 5f644e1bd14c ("event/cnxk: add timer arm timeout burst") Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cnxk_tim_worker.h | 81 ++-- 1 file changed, 42 insertions(+)

[PATCH 2/2] event/cnxk: update timer arm burst parameters

2023-02-02 Thread pbhagavatula
From: Pavan Nikhilesh Increase the timer arm burst size to 16 and chunk size for optimum performance. Use fixed size chunk pool cache to avoid high alloc cycles. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cnxk_tim_evdev.c | 7 ++- drivers/event/cnxk/cnxk_tim_evdev.h | 5 ++--

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

2023-02-02 Thread Ferruh Yigit
On 2/1/2023 3:22 PM, Jerin Jacob wrote: > On Wed, Feb 1, 2023 at 8:20 PM Ferruh Yigit wrote: >> >> On 2/1/2023 1:48 PM, Jerin Jacob wrote: >>> On Wed, Feb 1, 2023 at 5:06 PM Ferruh Yigit wrote: On 2/1/2023 11:15 AM, Jerin Jacob wrote: > On Wed, Feb 1, 2023 at 4:35 PM Thomas Monjalon

RE: [PATCH] eal: introduce atomics abstraction

2023-02-02 Thread Morten Brørup
> From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > Sent: Wednesday, 1 February 2023 22.41 > > On Wed, Feb 01, 2023 at 01:07:59AM +, Honnappa Nagarahalli wrote: > > > > > From: Thomas Monjalon > > > Sent: Tuesday, January 31, 2023 4:42 PM > > > > > > Honnappa, please could you give

RE: [PATCH v3 5/6] common/idpf: add alarm to support handle vchnl message

2023-02-02 Thread Wu, Jingjing
> > > + > > > new_link.link_duplex = RTE_ETH_LINK_FULL_DUPLEX; > > > + new_link.link_status = vport->link_up ? RTE_ETH_LINK_UP : > > > + RTE_ETH_LINK_DOWN; > > > new_link.link_autoneg = !(dev->data->dev_conf.link_speeds & > > > RTE_ETH_LINK_SPEED_FIXED); > >

RE: [PATCH v3 0/2] net/igc: support launch time offloading

2023-02-02 Thread Zhang, Qi Z
> -Original Message- > From: Su, Simei > Sent: Thursday, February 2, 2023 3:18 PM > To: Zhang, Qi Z ; Guo, Junfeng > > Cc: dev@dpdk.org; Wu, Wenjun1 ; Su, Simei > > Subject: [PATCH v3 0/2] net/igc: support launch time offloading > > [PATCH v3 1/2] expose packet pacing registers [PATC

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

2023-02-02 Thread Ivan Malov
On Thu, 2 Feb 2023, Ferruh Yigit wrote: On 2/1/2023 3:22 PM, Jerin Jacob wrote: On Wed, Feb 1, 2023 at 8:20 PM Ferruh Yigit wrote: On 2/1/2023 1:48 PM, Jerin Jacob wrote: On Wed, Feb 1, 2023 at 5:06 PM Ferruh Yigit wrote: On 2/1/2023 11:15 AM, Jerin Jacob wrote: On Wed, Feb 1, 2023 at 4

Re: [EXT] Re: [PATCH v6 2/6] ethdev: add trace points for ethdev (part one)

2023-02-02 Thread Ferruh Yigit
On 2/1/2023 3:42 PM, Ankur Dwivedi wrote: > > >> -Original Message- >> From: Ferruh Yigit >> Sent: Wednesday, February 1, 2023 12:08 AM >> To: Ankur Dwivedi ; dev@dpdk.org; David >> Marchand ; Jerin Jacob Kollanukkaran >> ; Andrew Rybchenko >> >> Cc: tho...@monjalon.net; m...@ashroe.eu;

Re: [PATCH] common/cnxk: remove unnecessary locks

2023-02-02 Thread David Marchand
On Thu, Feb 2, 2023 at 8:55 AM wrote: > > From: Pavan Nikhilesh > > Remove unnecessary locks as locking is now taken care by > mbox_get and mbox_put. > > Signed-off-by: Pavan Nikhilesh > --- > Depends-on: 26537 The ovsrobot tries to deal with *series* dependencies, for some time now. https://g

Re: [PATCH v2 1/3] vhost: remove redundant copy for packed shadow used ring

2023-02-02 Thread Maxime Coquelin
On 1/13/23 03:56, Cheng Jiang wrote: In the packed ring enqueue data path of the current asynchronous Vhost design, the shadow used ring is first copied to the sync shadow used ring, and then it will be moved to the async shadow used ring for some historical reasons. This is completely unneces

[PATCH v2 0/4] compressdev: add LZ4 support

2023-02-02 Thread Michael Baum
Add support for LZ4 compression algorithm for both API and app. In addition, enable app to test de/comp only. This option already exists in both app doc and arguments but isn't implemented inside the application. LZ4: https://github.com/lz4/lz4 RFC: https://patchwork.dpdk.org/project/dpdk/patch/2

[PATCH v2 1/4] compressdev: add LZ4 algorithm support

2023-02-02 Thread Michael Baum
Add support for LZ4 algorithm: - Add Lz4 param structure to XFORM structures. - Add capabilities flags for LZ4 params. - Add xxHash-32 checksum and capabilities flag. Signed-off-by: Michael Baum --- doc/guides/compressdevs/features/default.ini | 7 ++ doc/guides/rel_notes/release_23_03.rst

[PATCH v2 2/4] app/test-compress-perf: allow test single compress operation

2023-02-02 Thread Michael Baum
Part of the application options is to test only compress and only decompress but actually the application ignores this user option and tries to test always both compress and decompress. Allow testing only compress and only decompress. Signed-off-by: Matan Azrad Signed-off-by: Michael Baum ---

[PATCH v2 3/4] app/test-compress-perf: add algo option

2023-02-02 Thread Michael Baum
Add a command line option `algo` to select the compress algorithm supported by the compress API: null (DMA), deflate and lzs. Default for deflate. Signed-off-by: Matan Azrad Signed-off-by: Michael Baum --- app/test-compress-perf/comp_perf_options.h| 2 + .../comp_perf_options_parse.c

[PATCH v2 4/4] app/test-compress-perf: add LZ4 support

2023-02-02 Thread Michael Baum
Add support for LZ4 algorithm and add a new parameter for it. Signed-off-by: Michael Baum --- app/test-compress-perf/comp_perf_options.h| 1 + .../comp_perf_options_parse.c | 43 ++- .../comp_perf_test_cyclecount.c | 7 ++- .../comp_perf_test_t

Re: [PATCH v6 0/2] eal: provide leading and trailing zero bit count abstraction

2023-02-02 Thread David Marchand
Hello Tyler, On Fri, Jan 20, 2023 at 11:14 PM Tyler Retzlaff wrote: > > hi folks, > > i think this one can probably be merged? > > Series-acked-by: Morten Brørup > Series-acked-by: Bruce Richardson > patch 1/2 Acked-by: Ferruh Yigit I like the cleanup of rte_common.h and additional unit tests

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

2023-02-02 Thread Andrew Rybchenko
query_update is bad for summary, consider something like ethdev: add query and update sync and async API On 2/1/23 18:16, Gregory Etelson wrote: Current API allows either query or update indirect flow action. If indirect action must be conditionally updated according to it's present state applic

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

2023-02-02 Thread Andrew Rybchenko
On 2/1/23 18:16, Gregory Etelson wrote: 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

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

2023-02-02 Thread Ferruh Yigit
On 2/2/2023 8:50 AM, Ivan Malov wrote: > On Thu, 2 Feb 2023, Ferruh Yigit wrote: > >> On 2/1/2023 3:22 PM, Jerin Jacob wrote: >>> On Wed, Feb 1, 2023 at 8:20 PM Ferruh Yigit >>> wrote: On 2/1/2023 1:48 PM, Jerin Jacob wrote: > On Wed, Feb 1, 2023 at 5:06 PM Ferruh Yigit > wrote

Re: [PATCH v7] ethdev: add special flags when creating async transfer table

2023-02-02 Thread Andrew Rybchenko
On 2/1/23 16:48, Thomas Monjalon wrote: 01/02/2023 12:38, Andrew Rybchenko: On 2/1/23 14:18, Thomas Monjalon wrote: 01/02/2023 12:10, Andrew Rybchenko: On 2/1/23 13:58, Thomas Monjalon wrote: 01/02/2023 11:17, Andrew Rybchenko: On 1/18/23 19:18, Thomas Monjalon wrote: 18/01/2023 08:28, Andr

[PATCH v2 00/10] Wangxun fixes and new supports

2023-02-02 Thread Jiawen Wu
Fix some bugs and support to process more interrupt events. v2: - fix buffer size less than 1K - fix c99 comment syntax ('//') - remove useless parameter 'ptype' - expand commit log for packet type - separate the interrupt disable fix to another patch Jiawen Wu (10): net/ngbe: fix Rx buffer siz

[PATCH v2 01/10] net/ngbe: fix Rx buffer size in configure register

2023-02-02 Thread Jiawen Wu
When buffer size is less than 1K, round down makes it 0, which is an error value. Fixes: 62fc35e63d0e ("net/ngbe: support Rx queue start/stop") Cc: sta...@dpdk.org Signed-off-by: Jiawen Wu --- drivers/net/ngbe/ngbe_rxtx.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/d

[PATCH v2 02/10] net/txgbe: fix Rx buffer size in configure register

2023-02-02 Thread Jiawen Wu
When round up buffer size to 1K, to configure the register, hardware will receive packets exceeding the buffer size in LRO mode. It will cause a segment fault in the receive function. Fixes: be797cbf4582 ("net/txgbe: add Rx and Tx init") Cc: sta...@dpdk.org Signed-off-by: Jiawen Wu --- drivers/

[PATCH v2 04/10] net/txgbe: fix packet type to parse from offload flags

2023-02-02 Thread Jiawen Wu
Context descriptors which contains the length of each packet layer and the packet type are needed when Tx checksum offload or TSO is on. If the packet type and length do not strictly match, it will cause Tx ring hang. In some external applications, developers may fill in wrong packet_type in rte_m

[PATCH v2 03/10] net/txgbe: fix default signal quality value for KX/KX4

2023-02-02 Thread Jiawen Wu
On old firmware versions, the default value of signal quality(TX_EQ) is configured by the driver. Fix it for KX/KX4 mode. Fixes: 01c3cf5c85a7 ("net/txgbe: add autoneg control read and write") Cc: sta...@dpdk.org Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_phy.c | 7 --- 1 file

[PATCH v2 05/10] net/ngbe: fix packet type to parse from offload flags

2023-02-02 Thread Jiawen Wu
Context descriptors which contains the length of each packet layer and the packet type are needed when Tx checksum offload or TSO is on. If the packet type and length do not strictly match, it will cause Tx ring hang. In some external applications, developers may fill in wrong packet_type in rte_m

[PATCH v2 06/10] net/ngbe: add spinlock protection on YT PHY

2023-02-02 Thread Jiawen Wu
For yt8521s/yt8531s PHY, if other registers are accessing between reads/writes of ext field registers, the value of ext filed registers will get weird for unknown reasons. So it's protected when all of ext field registers accessing. Fixes: 44e97550ca68 ("net/ngbe: identify and reset PHY") Cc: sta.

[PATCH v2 07/10] net/ngbe: add chip overheat support

2023-02-02 Thread Jiawen Wu
Support to handle overheat interrupt. Signed-off-by: Jiawen Wu --- doc/guides/rel_notes/release_23_03.rst | 4 drivers/net/ngbe/ngbe_ethdev.c | 32 +- drivers/net/ngbe/ngbe_ethdev.h | 1 + 3 files changed, 36 insertions(+), 1 deletion(-) diff --git

[PATCH v2 08/10] net/txgbe: add chip overheat support

2023-02-02 Thread Jiawen Wu
Support to handle overheat interrupt. Signed-off-by: Jiawen Wu --- doc/guides/rel_notes/release_23_03.rst | 4 drivers/net/txgbe/base/txgbe_hw.c | 1 + drivers/net/txgbe/base/txgbe_phy.c | 22 ++ drivers/net/txgbe/base/txgbe_phy.h | 1 + drivers/net/txgbe/txg

[PATCH v2 09/10] net/txgbe: fix interrupt loss

2023-02-02 Thread Jiawen Wu
Disable interrupt in the interrupt handling process will sometimes cause interrupts to be lost. Fixes: 2fc745e6b606 ("net/txgbe: add interrupt operation") Cc: sta...@dpdk.org Signed-off-by: Jiawen Wu --- drivers/net/txgbe/txgbe_ethdev.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

[PATCH v2 10/10] net/txgbe: add SFP hot-plug identification support

2023-02-02 Thread Jiawen Wu
Support to identify the new SFP/SFP+ module when the device is started. Signed-off-by: Jiawen Wu --- doc/guides/rel_notes/release_23_03.rst | 1 + drivers/net/txgbe/base/txgbe_regs.h| 1 + drivers/net/txgbe/txgbe_ethdev.c | 65 -- 3 files changed, 63 insertion

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

2023-02-02 Thread Andrew Rybchenko
On 2/1/23 18:50, Jiawei(Jonny) Wang wrote: -Original Message- From: Andrew Rybchenko Subject: Re: [PATCH v2 2/2] ethdev: introduce the PHY affinity field in Tx queue API On 1/30/23 20:00, Jiawei Wang wrote: Adds the new tx_phy_affinity field into the padding hole of rte_eth_txconf stru

Re: [PATCH v2 2/3] vhost: add batch enqueue in async vhost packed ring

2023-02-02 Thread Maxime Coquelin
On 1/13/23 03:56, Cheng Jiang wrote: Add batch enqueue function in asynchronous vhost packed ring to improve the performance. Chained mbufs are not supported, it will be handled in single enqueue function. Signed-off-by: Cheng Jiang --- lib/vhost/virtio_net.c | 163

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

2023-02-02 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 v8 1/4] lib: add generic support for reading PMU events

2023-02-02 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 v8 2/4] pmu: support reading ARM PMU events in runtime

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

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

2023-02-02 Thread Tomasz Duszynski
Add support for reading Intel x86_64 PMU events in runtime. Signed-off-by: Tomasz Duszynski Acked-by: Morten Brørup --- 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

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

2023-02-02 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 Acked-by: Morten Brørup --- app

Re: [PATCH v5 1/8] ethdev: use Ethernet protocol struct for flow matching

2023-02-02 Thread Andrew Rybchenko
On 1/26/23 19:18, Ferruh Yigit wrote: 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 fl

Re: [PATCH v5 3/8] ethdev: use VXLAN protocol struct for flow matching

2023-02-02 Thread Andrew Rybchenko
On 1/26/23 19:18, Ferruh Yigit wrote: 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 name

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

2023-02-02 Thread Andrew Rybchenko
On 1/26/23 19:19, Ferruh Yigit wrote: 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 GRE header struct

Re: [PATCH v5 5/8] ethdev: use GTP protocol struct for flow matching

2023-02-02 Thread Andrew Rybchenko
On 1/26/23 19:19, Ferruh Yigit wrote: 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

Re: [PATCH v5 6/8] ethdev: use ARP protocol struct for flow matching

2023-02-02 Thread Andrew Rybchenko
On 1/26/23 19:19, Ferruh Yigit wrote: 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

Re: [PATCH v5 7/8] doc: fix description of L2TPV2 flow item

2023-02-02 Thread Andrew Rybchenko
On 1/26/23 19:19, Ferruh Yigit wrote: 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

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

2023-02-02 Thread Andrew Rybchenko
On 1/26/23 19:19, Ferruh Yigit wrote: 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

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

2023-02-02 Thread Rongwei Liu
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 variable length segments and move PMD implementat

[PATCH v6 1/3] ethdev: add IPv6 routing extension header definition

2023-02-02 Thread Rongwei Liu
Add IPv6 routing extension header definition and no TLV support for now. At rte_flow layer, there are new items defined for matching type/nexthdr/segments_left field. Add command line support for IPv6 routing extension header matching: type/nexthdr/segment_list. Signed-off-by: Rongwei Liu Acked

[PATCH v6 2/3] ethdev: add modify IPv6 protocol field

2023-02-02 Thread Rongwei Liu
Add IPv6 protocol modify field definition. Add new modify field destination type string: "ipv6_proto". Signed-off-by: Rongwei Liu Acked-by: Ori Kam Acked-by: Andrew Rybchenko --- app/test-pmd/cmdline_flow.c | 3 ++- lib/ethdev/rte_flow.h | 1 + 2 files changed, 3 insertions(+), 1 deleti

[PATCH v6 3/3] app/testpmd: add IPv6 routing extension header in raw encap

2023-02-02 Thread Rongwei Liu
Add IPv6 routing extension header support in raw_encap command. 1. No TLV support now. 2. Assume header length equals to the current segment_left. Signed-off-by: Rongwei Liu Acked-by: Ori Kam --- app/test-pmd/cmdline_flow.c | 23 +++ 1 file changed, 23 insertions(+) diff --

[PATCH v2] net/iavf: add check for mbuf

2023-02-02 Thread Mingjin Ye
The scalar Tx path would send wrong mbuf that causes the kernel driver to fire the MDD event. This patch adds mbuf detection in tx_prepare to fix this issue, rte_errno will be set to EINVAL and returned if the verification fails. Fixes: 3fd32df381f8 ("net/iavf: check Tx packet with correct UP and

Re: [PATCH v2 3/3] vhost: add batch dequeue in async vhost packed ring

2023-02-02 Thread Maxime Coquelin
On 1/13/23 03:56, Cheng Jiang wrote: Add batch dequeue function in asynchronous vhost packed ring to improve the performance. Chained mbufs are not supported, it will be handled in single dequeue function. Signed-off-by: Cheng Jiang Signed-off-by: Yuan Wang --- lib/vhost/virtio_net.c | 17

[PATCH v1 0/5] add IPv6 routing extension implementation

2023-02-02 Thread Rongwei Liu
Add IPv6 routing extension matching and IPv6 protocol modify filed support. This patch relies on the preceding ethdev one: http://patches.dpdk.org/project/dpdk/patch/20230202100021.2445976-2-rongw...@nvidia.com/ Including one commit from Gregory to pass the compilation. Gregory Etelson (1): ne

[PATCH v1 1/5] net/mlx5: adopt IPv6 routing extension prm definition

2023-02-02 Thread Rongwei Liu
Per newest PRM definition, sample_id stands for 3 parts of information instead of single uint32_t id: sample_id + modify_filed_id + format_select_dw. Also new FW capability bits have been introduces to identify the new capability. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- d

[PATCH v1 2/5] net/mlx5/hws: Definer, add mlx5dr context to definer_conv_data

2023-02-02 Thread Rongwei Liu
From: Gregory Etelson New mlx5dr_context member replaces mlx5dr_cmd_query_caps. Capabilities structure is a member of mlx5dr_context. Signed-off-by: Gregory Etelson Signed-off-by: Rongwei Liu Reviewed-by: Alex Vesker Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/hws/mlx5dr_definer.c |

[PATCH v1 3/5] net/mlx5/hws: add IPv6 routing extension matching support

2023-02-02 Thread Rongwei Liu
Add mlx5 HWS logic to match IPv6 routing extension header. Once detecting IPv6 matching extension items in pattern template create callback, PMD allocates a flex parser to sample the first dword of srv6 header. Only support next_hdr/segments_left/type for now. Signed-off-by: Rongwei Liu Reviewe

[PATCH v1 4/5] net/mlx5: add modify IPv6 protocol implementation

2023-02-02 Thread Rongwei Liu
Add HWS modify IPv6 protocol implementation. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/mlx5_prm.h | 1 + drivers/net/mlx5/mlx5_flow_dv.c | 10 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx

[PATCH v1 5/5] doc/mlx5: add IPv6 routing extension matching docs

2023-02-02 Thread Rongwei Liu
Update mlx5 related document on IPv6 routing extension header matching. Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- doc/guides/nics/features/default.ini | 1 + doc/guides/nics/features/mlx5.ini| 1 + doc/guides/nics/mlx5.rst | 2 ++ 3 files changed, 4 insertion

[PATCH v5 00/15] net/idpf: introduce idpf common modle

2023-02-02 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 v5 01/15] common/idpf: add adapter structure

2023-02-02 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 v5 02/15] common/idpf: add vport structure

2023-02-02 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 v5 03/15] common/idpf: add virtual channel functions

2023-02-02 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 v5 04/15] common/idpf: introduce adapter init and deinit

2023-02-02 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 v5 05/15] common/idpf: add vport init/deinit

2023-02-02 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 v5 06/15] common/idpf: add config RSS

2023-02-02 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 v5 07/15] common/idpf: add irq map/unmap

2023-02-02 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 v5 08/15] common/idpf: support get packet type

2023-02-02 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 v5 09/15] common/idpf: add vport info initialization

2023-02-02 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 v5 10/15] common/idpf: add vector flags in vport

2023-02-02 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 v5 11/15] common/idpf: add rxq and txq struct

2023-02-02 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 v5 12/15] common/idpf: add help functions for queue setup and release

2023-02-02 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 v5 13/15] common/idpf: add Rx and Tx data path

2023-02-02 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 v5 14/15] common/idpf: add vec queue setup

2023-02-02 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 v5 15/15] common/idpf: add avx512 for single queue model

2023-02-02 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 +

RE: [EXT] Re: [PATCH v6 2/6] ethdev: add trace points for ethdev (part one)

2023-02-02 Thread Ankur Dwivedi
>-Original Message- >From: Ferruh Yigit >Sent: Thursday, February 2, 2023 2:27 PM >To: Ankur Dwivedi ; dev@dpdk.org; David >Marchand ; Jerin Jacob Kollanukkaran >; Andrew Rybchenko > >Cc: tho...@monjalon.net; m...@ashroe.eu; or...@nvidia.com; >ch...@att.com; humi...@huawei.com; linvi...@t

RE: [PATCH v4 2/3] ethdev: add standby state for live migration

2023-02-02 Thread Rongwei Liu
Hi Jerin and Thomas BR Rongwei > -Original Message- > From: Thomas Monjalon > Sent: Wednesday, February 1, 2023 16:47 > To: Andrew Rybchenko ; Jerin Jacob > > Cc: Rongwei Liu ; dev@dpdk.org; Matan Azrad > ; Slava Ovsiienko ; Ori Kam > ; step...@networkplumber.org; Raslan Darawsheh > ; F

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

2023-02-02 Thread Gregory Etelson
Hello Andrew, Please check out my comments below. Regards, Gregory > > > query_update is bad for summary, consider something like > ethdev: add query and update sync and async API > Will fix in v9. > On 2/1/23 18:16, Gregory Etelson wrote: > > Current API allows either query or update indir

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

2023-02-02 Thread Andrew Rybchenko
On 2/2/23 13:24, Gregory Etelson wrote: On 2/1/23 18:16, Gregory Etelson wrote: + ops = rte_flow_ops_get(port_id, error); + if (!ops || !ops->action_handle_query_update) + return -ENOTSUP; May be it makes sense to use single-operation callbacks if another operation input is

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

2023-02-02 Thread Ruifeng Wang
> -Original Message- > From: Tomasz Duszynski > Sent: Thursday, February 2, 2023 5:44 PM > To: dev@dpdk.org; tho...@monjalon.net; Tomasz Duszynski > > Cc: roret...@linux.microsoft.com; Ruifeng Wang ; > bruce.richard...@intel.com; jer...@marvell.com; mattias.ronnb...@ericsson.com; > m...@

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

2023-02-02 Thread Ivan Malov
On Thu, 2 Feb 2023, Ferruh Yigit wrote: On 2/2/2023 8:50 AM, Ivan Malov wrote: On Thu, 2 Feb 2023, Ferruh Yigit wrote: On 2/1/2023 3:22 PM, Jerin Jacob wrote: On Wed, Feb 1, 2023 at 8:20 PM Ferruh Yigit wrote: On 2/1/2023 1:48 PM, Jerin Jacob wrote: On Wed, Feb 1, 2023 at 5:06 PM Ferruh

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

2023-02-02 Thread Gregory Etelson
Hello Andrew, [] > On 2/2/23 13:24, Gregory Etelson wrote: > >> On 2/1/23 18:16, Gregory Etelson wrote: > >>> + ops = rte_flow_ops_get(port_id, error); > >>> + if (!ops || !ops->action_handle_query_update) > >>> + return -ENOTSUP; > >> > >> May be it makes sense to use single-

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

2023-02-02 Thread Andrew Rybchenko
On 2/2/23 13:44, Gregory Etelson wrote: Hello Andrew, [] On 2/2/23 13:24, Gregory Etelson wrote: On 2/1/23 18:16, Gregory Etelson wrote: + ops = rte_flow_ops_get(port_id, error); + if (!ops || !ops->action_handle_query_update) + return -ENOTSUP; May be it makes sense to

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

2023-02-02 Thread Ivan Malov
I apologise, there was a typo in the previous mail: "PMD does not need this API". Should read as "TESTPMD does not need it". Thank you. On Thu, 2 Feb 2023, Ivan Malov wrote: On Thu, 2 Feb 2023, Ferruh Yigit wrote: On 2/2/2023 8:50 AM, Ivan Malov wrote: On Thu, 2 Feb 2023, Ferruh Yigit wrote

Re: [PATCH v2] vfio: do not coalesce DMA mappings

2023-02-02 Thread David Marchand
Hi, On Wed, Jan 4, 2023 at 6:19 AM Nipun Gupta wrote: > > At the cleanup time when dma unmap is done, linux kernel > does not allow unmap of individual segments which were > coalesced together while creating the DMA map for type1 IOMMU > mappings. So, this change updates the mapping of the memory

RE: [EXT] Re: [dpdk-dev] [PATCH 2/4] cryptodev: promote asym APIs to stable

2023-02-02 Thread Akhil Goyal
Folks, Can we promote the Asym APIs to stable now? Regards, Akhil > > On 07/09/2021 12:45, Akhil Goyal wrote: > >>> Do you think all the asym APIs are not eligible for promoting it to stable > >> APIs? > >>> I haven't seen any changes for quite some time and we cannot have it > >>> experimenta

Re: [PATCH v6 0/2] eal: provide leading and trailing zero bit count abstraction

2023-02-02 Thread David Marchand
On Thu, Feb 2, 2023 at 10:14 AM David Marchand wrote: > > Hello Tyler, > > On Fri, Jan 20, 2023 at 11:14 PM Tyler Retzlaff > wrote: > > > > hi folks, > > > > i think this one can probably be merged? > > > > Series-acked-by: Morten Brørup > > Series-acked-by: Bruce Richardson > > patch 1/2 Acked

Re: [PATCH v2 1/4] ethdev: add template table insertion type

2023-02-02 Thread Andrew Rybchenko
On 1/27/23 02:27, Alexander Kozyrev wrote: Allow user to specify insertion type used in template tables. The insertion type is responsible for choosing the appropriate key value used to map inserted flow rules into a template table. Flow rules can be inserted by calculating the hash value for th

RE: [EXT] Re: [dpdk-dev] [PATCH 2/4] cryptodev: promote asym APIs to stable

2023-02-02 Thread Hemant Agrawal
Hi Akhil > > Can we promote the Asym APIs to stable now? +1 for it > > Regards, > Akhil > > > > > On 07/09/2021 12:45, Akhil Goyal wrote: > > >>> Do you think all the asym APIs are not eligible for promoting it > > >>> to stable > > >> APIs? > > >>> I haven't seen any changes for quite some

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

2023-02-02 Thread Ferruh Yigit
On 2/2/2023 10:01 AM, Andrew Rybchenko wrote: > On 1/26/23 19:19, Ferruh Yigit wrote: >> 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 fi

Re: [PATCH v2 4/6] test/dmadev: check result for device stop

2023-02-02 Thread David Marchand
Hi Chengwen, On Mon, Jan 16, 2023 at 6:38 PM Bruce Richardson wrote: > > The DMA device stop API can return an error value so check that return > value when running dmadev unit tests. > > Signed-off-by: Bruce Richardson > --- > app/test/test_dmadev.c | 6 +- > 1 file changed, 5 insertions(+

[PATCH v8] ethdev: add optimization hints in flow template table

2023-02-02 Thread Rongwei Liu
In case flow rules match only one kind of traffic in a flow table, then optimization can be done via allocation of this table. Such optimization is possible only if the application gives a hint about its usage of the table during initial configuration. The transfer domain rules may process traffic

Re: [PATCH v7] ethdev: add special flags when creating async transfer table

2023-02-02 Thread Thomas Monjalon
02/02/2023 10:21, Andrew Rybchenko: > On 2/1/23 16:48, Thomas Monjalon wrote: > > 01/02/2023 12:38, Andrew Rybchenko: > >> On 2/1/23 14:18, Thomas Monjalon wrote: > >>> 01/02/2023 12:10, Andrew Rybchenko: > On 2/1/23 13:58, Thomas Monjalon wrote: > > 01/02/2023 11:17, Andrew Rybchenko: > >

Re: [PATCH v8] ethdev: add optimization hints in flow template table

2023-02-02 Thread Thomas Monjalon
02/02/2023 12:19, Rongwei Liu: > In case flow rules match only one kind of traffic in a flow table, > then optimization can be done via allocation of this table. > Such optimization is possible only if the application gives a hint > about its usage of the table during initial configuration. > > Th

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

2023-02-02 Thread Thomas Monjalon
OK we are progressing on this topic :) 02/02/2023 11:48, Ivan Malov: > I apologise, there was a typo in the previous mail: "PMD does > not need this API". Should read as "TESTPMD does not need it". testpmd needs all ethdev API, because its purpose is to test the whole all ethdev API. Maybe the u

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

2023-02-02 Thread Thomas Monjalon
02/02/2023 02:11, lihuisong (C): > 在 2023/2/2 0:37, Thomas Monjalon 写道: > > 01/02/2023 14:15, Huisong Li: > >> This section is a comment. Do not overwrite or remove it. > >> Also, make sure to start the actual text at the margin. > >> =

[PATCH v9 1/2] ethdev: add query and update sync and async function calls

2023-02-02 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 v9 2/2] ethdev: add quota flow action and item

2023-02-02 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 v5 2/2] app/testpmd: add command to process Rx metadata negotiation

2023-02-02 Thread Ivan Malov
On Thu, 2 Feb 2023, Thomas Monjalon wrote: OK we are progressing on this topic :) Indeed we are. 02/02/2023 11:48, Ivan Malov: I apologise, there was a typo in the previous mail: "PMD does not need this API". Should read as "TESTPMD does not need it". testpmd needs all ethdev API, becaus

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

2023-02-02 Thread Thomas Monjalon
02/02/2023 12:55, Ivan Malov: > On Thu, 2 Feb 2023, Thomas Monjalon wrote: > > > OK we are progressing on this topic :) > > Indeed we are. > > > > > 02/02/2023 11:48, Ivan Malov: > >> I apologise, there was a typo in the previous mail: "PMD does > >> not need this API". Should read as "TESTPMD d

Re: [PATCH v9 1/2] ethdev: add query and update sync and async function calls

2023-02-02 Thread Andrew Rybchenko
On 2/2/23 14:54, Gregory Etelson wrote: diff --git a/lib/ethdev/rte_flow.c b/lib/ethdev/rte_flow.c index 7d0c24366c..4554c8f021 100644 --- a/lib/ethdev/rte_flow.c +++ b/lib/ethdev/rte_flow.c @@ -1883,3 +1883,85 @@ rte_flow_async_action_handle_query(uint16_t port_id,

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

2023-02-02 Thread lihuisong (C)
在 2023/2/2 19:50, Thomas Monjalon 写道: 02/02/2023 02:11, lihuisong (C): 在 2023/2/2 0:37, Thomas Monjalon 写道: 01/02/2023 14:15, Huisong Li: This section is a comment. Do not overwrite or remove it. Also, make sure to start the actual text at the margin. ==

  1   2   3   >