RE: [PATCH] app/testpmd: fix secondary process not forwarding

2023-02-07 Thread He, ShiyangX
>-Original Message- >From: Zhang, Yuying >Sent: Wednesday, February 8, 2023 11:22 AM >To: He, ShiyangX >Cc: dev@dpdk.org; Zhou, YidingX ; >sta...@dpdk.org; Singh, Aman Deep ; Burakov, >Anatoly ; Li, Xiaoyun ; >Alvin Zhang >Subject: RE: [PATCH] app/testpmd: fix secondary process not fo

[PATCH 2/2] net/mlx5: add MPLS tunnel support for HWS

2023-02-07 Thread Michael Baum
Add support for MPLS tunnel item in HWS. Signed-off-by: Michael Baum Acked-by: Ori Kam --- doc/guides/nics/mlx5.rst | 4 doc/guides/rel_notes/release_23_03.rst | 4 drivers/net/mlx5/mlx5_flow_hw.c| 1 + 3 files changed, 9 insertions(+) diff --git a/doc/guides/ni

[PATCH 1/2] net/mlx5/hws: support matching on MPLSoUDP

2023-02-07 Thread Michael Baum
From: Erez Shitrit Add support for matching MPLS labels while it is under UDP protocol. Matching up to 5 MPLS labels with or without the MPLS value. Signed-off-by: Erez Shitrit --- drivers/net/mlx5/hws/mlx5dr_definer.c | 183 +- drivers/net/mlx5/hws/mlx5dr_definer.h |

[PATCH 0/2] net/mlx5: support MPLSoUDP for HWS

2023-02-07 Thread Michael Baum
Add support for matching/encap/decap MPLSoUDP including multiple MPLS headers. Erez Shitrit (1): net/mlx5/hws: support matching on MPLSoUDP Michael Baum (1): net/mlx5: add MPLS tunnel support for HWS doc/guides/nics/mlx5.rst | 4 + doc/guides/rel_notes/release_23_03.rst |

[PATCH 5/5] ipsec: fix usage of RTE_LOGTYPE_USER1

2023-02-07 Thread Stephen Hemminger
There already is a logtype in this driver, use it! Fixes: b35848bc01f6 ("crypto/ipsec_mb: add multi-process IPC request handler") Cc: kai...@intel.com Signed-off-by: Stephen Hemminger --- drivers/crypto/ipsec_mb/ipsec_mb_ops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

[PATCH 4/5] vhost: use logtype instead of RTE_LOGTYPE_USER1

2023-02-07 Thread Stephen Hemminger
Fix instances of USER1 logtype in fdset and crypto sections. Signed-off-by: Stephen Hemminger --- lib/vhost/fd_man.c | 16 +--- lib/vhost/vhost_crypto.c | 24 ++-- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/lib/vhost/fd_man.c b/lib/vhos

[PATCH 3/5] latencystats: use dynamic logtype

2023-02-07 Thread Stephen Hemminger
Libraries should not reuse RTE_LOGTYPE_USER1 for their logging. Instead they should register their own type. Fixes: 5cd3cac9ed22 ("latency: added new library for latency stats") Cc: reshma.pat...@intel.com Signed-off-by: Stephen Hemminger --- lib/latencystats/rte_latencystats.c | 55

[PATCH 2/5] reorder: use a dynamic logtype

2023-02-07 Thread Stephen Hemminger
Libraries should not be reusing RTE_LOGTYPE_USER1 instead of doing proper logtype registration. Fixes: b70b56032bff ("reorder: new library") Cc: sergio.gonzalez.mon...@intel.com Signed-off-by: Stephen Hemminger --- lib/reorder/rte_reorder.c | 35 +++ 1 file change

[PATCH 1/5] ip_frag: use a dynamic logtype

2023-02-07 Thread Stephen Hemminger
DPDK libraries should not be reusing RTE_LOGTYPE_USER1 in lieu of doing proper logtype registration. Fixes: 416707812c03 ("ip_frag: refactor reassembly code into a proper library") Signed-off-by: Stephen Hemminger --- lib/ip_frag/ip_frag_common.h | 16 ++- lib/ip_frag/ip_frag_internal.c

[PATCH 0/5] Fix use of RTE_LOGTYPE_USER1 in libraries.

2023-02-07 Thread Stephen Hemminger
This is split out of other rte_log patchset. The DPDK libraries and drivers should not be using the USER1 logtype. Stephen Hemminger (5): ip_frag: use a dynamic logtype reorder: use a dynamic logtype latencystats: use dynamic logtype vhost: use logtype instead of RTE_LOGTYPE_USER1 ipsec:

RE: [PATCH v2] net/ice: remove avx512 specific Rx queue rearm code

2023-02-07 Thread Zhang, Qi Z
> -Original Message- > From: Wenzhuo Lu > Sent: Wednesday, February 8, 2023 10:59 AM > To: dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: [PATCH v2] net/ice: remove avx512 specific Rx queue rearm code > > 'ice_rxq_rearm' in avx512 path is optimized to improve the performance. > But after t

[PATCH v2] net/ice: remove avx512 specific Rx queue rearm code

2023-02-07 Thread Wenzhuo Lu
'ice_rxq_rearm' in avx512 path is optimized to improve the performance. But after the commit a2833ecc5ea4 ("mempool: fix get objects from mempool with cache"), this avx512 specific optimization is not necessary. This patch remove the unnecessary PMD specific optimization to make the code easier to

RE: [PATCH] net/ixgbe: enable IPv6 mask for generic flow API

2023-02-07 Thread Zhang, Qi Z
> -Original Message- > From: Yang, Qiming > Sent: Tuesday, February 7, 2023 2:41 PM > To: Deng, KaiwenX ; dev@dpdk.org > Cc: sta...@dpdk.org; Zhou, YidingX ; Wu, > Wenjun1 ; Zhao1, Wei ; > Xing, Beilei ; Lu, Wenzhuo ; > Dai, Wei > Subject: RE: [PATCH] net/ixgbe: enable IPv6 mask for ge

RE: [PATCH] app/testpmd: fix secondary process not forwarding

2023-02-07 Thread Zhang, Yuying
Hi Shiyang, > -Original Message- > From: He, ShiyangX > Sent: 2023年1月13日 17:08 > To: He, ShiyangX ; Zhang, Yuying > > Cc: dev@dpdk.org; Zhou, YidingX ; > sta...@dpdk.org; Singh, Aman Deep ; > Burakov, Anatoly ; Li, Xiaoyun > ; Alvin Zhang > Subject: RE: [PATCH] app/testpmd: fix secondar

RE: [PATCH] net/iavf: remove avx512 specific Rx queue rearm code

2023-02-07 Thread Zhang, Qi Z
> -Original Message- > From: Wenzhuo Lu > Sent: Tuesday, February 7, 2023 2:39 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: [PATCH] net/iavf: remove avx512 specific Rx queue rearm code > > 'iavf_rxq_rearm' in avx512 path is optimized to improve the performance. > But after the c

[PATCH v4 4/4] app/testpmd: add template table hash calculation function

2023-02-07 Thread Alexander Kozyrev
Add testpmd CLI interface for a template table hash function. Available types are: default, linear, crc32 and crc16. flow template_table 0 create table_id 0 hash_func linear ... Signed-off-by: Alexander Kozyrev --- app/test-pmd/cmdline_flow.c | 69 - 1 file ch

[PATCH v4 2/4] ethdev: add template table hash calculation function

2023-02-07 Thread Alexander Kozyrev
Allow user to specify hash calculation function used in template tables. The hash calculation type is responsible for the calculation of the flow rule index a packet would hit upon arrival at the table. Control over this is useful for applications with custom RSS algorithms, for example. An applic

[PATCH v4 3/4] app/testpmd: add template table insertion type

2023-02-07 Thread Alexander Kozyrev
Add testpmd CLI interface for specifying a template table insertion type. Available types are: pattern and index. flow template_table 0 create table_id 0 insertion_type index ... Allow specifying the rule index instead of the pattern template index: flow queue 0 create 0 template_table 0 rule_index

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

2023-02-07 Thread Alexander Kozyrev
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 the pattern or inserted by index via the new cr

[PATCH v4 0/4] ethdev: add template table insertion and matching types

2023-02-07 Thread Alexander Kozyrev
Bring more flexibility and control over both flow rule insertion and packet matching mechanisms. Introduce 2 new flow table types: 1. Allow a user to specify the insertion type used in template tables. The insertion type is responsible for choosing the appropriate key value used to map inserted fl

DPDK Tech Board Call - Tomorrow 2/8 @ 7am PT/10am ET/1600h CET

2023-02-07 Thread Nathan Southern
Good evening, Tomorrow DPDK will hold its biweekly Tech Board Call. 7am PT/10am ET/1600h CET. Our agenda for the meeting will be posted here: https://annuel.framapad.org/p/r.0c3cc4d1e011214183872a98f6b5c7db Link to join the call: https://meet.jit.si/dpdk We look forward to seeing you there.

RE: [PATCH] net/i40e: remove avx512 specific Rx queue rearm code

2023-02-07 Thread Zhang, Qi Z
> -Original Message- > From: Wenzhuo Lu > Sent: Tuesday, February 7, 2023 2:39 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: [PATCH] net/i40e: remove avx512 specific Rx queue rearm code > > 'i40e_rxq_rearm' in avx512 path is optimized to improve the performance. > But after the c

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

2023-02-07 Thread lihuisong (C)
在 2023/2/8 3:37, Robin Jarry 写道: The --record-core-cycles option already accounts for busy cycles. One turn of packet_fwd_t is considered "busy" if there was at least one received or transmitted packet. Rename core_cycles to busy_cycles in struct fwd_stream to make it more explicit. Add total_

Reminder - DPDK DTS Working Group - Tomorrow, Wed. Feb. 8, 2023 @ 6am PT/9am ET/1500h CET

2023-02-07 Thread Nathan Southern
Good evening, Tomorrow, Wed. Feb. 8, 2023, @ 6am PT/9am ET/1500h CET, DPDK will hold its DTS Working Group. Zoom information to follow. We look forward to seeing you there. Many thanks Nathan Nathan C. Southern, Project Coordinator Data Plane Development Kit The Linux Foundation 248.835.481

[PATCH v3 4/4] app/testpmd: add template table hash calculation function

2023-02-07 Thread Alexander Kozyrev
Add testpmd CLI interface for a template table hash function. Available types are: default, linear, crc32 and crc16. flow template_table 0 create table_id 0 hash_func linear ... Signed-off-by: Alexander Kozyrev --- app/test-pmd/cmdline_flow.c | 69 - 1 file ch

[PATCH v3 0/4] ethdev: add template table insertion and matching types

2023-02-07 Thread Alexander Kozyrev
Bring more flexibility and control over both flow rule insertion and packet matching mechanisms. Introduce 2 new flow table types: 1. Allow a user to specify the insertion type used in template tables. The insertion type is responsible for choosing the appropriate key value used to map inserted fl

[PATCH v3 3/4] app/testpmd: add template table insertion type

2023-02-07 Thread Alexander Kozyrev
Add testpmd CLI interface for specifying a template table insertion type. Available types are: pattern and index. flow template_table 0 create table_id 0 insertion_type index ... Allow specifying the rule index instead of the pattern template index: flow queue 0 create 0 template_table 0 rule_index

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

2023-02-07 Thread Alexander Kozyrev
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 the pattern or inserted by index via the new cr

[PATCH v3 2/4] ethdev: add template table hash calculation function

2023-02-07 Thread Alexander Kozyrev
Allow user to specify hash calculation function used in template tables. The hash calculation type is responsible for the calculation of the flow rule index a packet would hit upon arrival at the table. Control over this is useful for applications with custom RSS algorithms, for example. An applic

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

2023-02-07 Thread lihuisong (C)
在 2023/2/8 3:37, 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"

Re: [PATCH] app/testpmd: fix forwarding stats for Tx dropped

2023-02-07 Thread Ferruh Yigit
On 2/7/2023 10:10 AM, Singh, Aman Deep wrote: > > On 1/31/2023 5:26 PM, Ferruh Yigit wrote: >> There is an inconsistency at displaying Tx dropped value for per port >> forwarding stats and accumulated forwarding stats. >> >> While displaying per port TX-dropped value, it only takes >> 'ports_stats

RE: [PATCH v6 1/6] common/idpf: add hw statistics

2023-02-07 Thread Zhang, Qi Z
> -Original Message- > From: Liu, Mingxia > Sent: Tuesday, February 7, 2023 6:17 PM > To: dev@dpdk.org; Zhang, Qi Z ; Wu, Jingjing > ; Xing, Beilei > Cc: Liu, Mingxia > Subject: [PATCH v6 1/6] common/idpf: add hw statistics Suggest to use ./devtools/check-git-log.sh to fix any title

[PATCH v2 2/2] baseband/acc: add check for empty queue

2023-02-07 Thread Hernan Vargas
Add optimization to return early if there are no available descriptors in ring to dequeue. Signed-off-by: Hernan Vargas --- drivers/baseband/acc/rte_acc100_pmd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc

[PATCH v2 1/2] baseband/acc: fix check after deref and dead code

2023-02-07 Thread Hernan Vargas
Fix potential issue of dereferencing a pointer before null check. Remove null check for value that could never be null. Coverity issue: 381646, 381631 Fixes: 989dec301a9 ("baseband/acc100: add ring companion address") Cc: sta...@dpdk.org Signed-off-by: Hernan Vargas --- drivers/baseband/acc/rte

[PATCH v2 0/2] DPDK Coverity issue 381631, 381646

2023-02-07 Thread Hernan Vargas
v2: Split code unrelated to coverity fix in separate commit. v1: Upstream fix to 23.03 for potential issue of dereferencing a pointer before null check. Hernan Vargas (2): baseband/acc: fix check after deref and dead code baseband/acc: add check for empty queue drivers/baseband/acc/rte_acc1

Re: [PATCH 0/3] cleanup the PMD

2023-02-07 Thread Ferruh Yigit
On 2/7/2023 2:17 AM, Chaoyong He wrote: >> On Mon, 6 Feb 2023 15:05:46 +0800 >> Chaoyong He wrote: >> >>> This patch series aims to better align the PMD with the preferred DPDK >>> coding style. >>> - Remove the usage of 'printf()' >>> - Remove the unneeded header file includes >>> - Explicitly c

Re: [PATCH 0/3] cleanup the PMD

2023-02-07 Thread Ferruh Yigit
On 2/6/2023 7:05 AM, Chaoyong He wrote: > This patch series aims to better align the PMD with > the preferred DPDK coding style. > - Remove the usage of 'printf()' > - Remove the unneeded header file includes > - Explicitly compare pointer with NULL > - Explicitly compare integer with 0 > > James

RE: [PATCH v11 0/1] Add support AVX512 split queue datapath

2023-02-07 Thread Zhang, Qi Z
> -Original Message- > From: Wenjun Wu > Sent: Tuesday, February 7, 2023 4:46 PM > To: dev@dpdk.org; Wu, Jingjing ; Xing, Beilei > > Cc: Liu, Mingxia ; Lu, Wenzhuo > ; Wu, Wenjun1 > Subject: [PATCH v11 0/1] Add support AVX512 split queue datapath > > This patchset enables AVX512 data

Re: [PATCH v9 3/6] ethdev: add trace points for ethdev (part two)

2023-02-07 Thread Ferruh Yigit
On 2/7/2023 6:32 AM, Ankur Dwivedi wrote: > Subject: > [PATCH v9 3/6] ethdev: add trace points for ethdev (part two) > From: > Ankur Dwivedi > Date: > 2/7/2023, 6:32 AM > > To: > > CC: > > > Adds trace points for remaining ethdev functions. > > Signed-off-by: Ankur Dwivedi > Acked-by: Sunil

Re: [PATCH] eal: introduce atomics abstraction

2023-02-07 Thread Tyler Retzlaff
On Tue, Feb 07, 2023 at 11:34:14PM +, Honnappa Nagarahalli wrote: > > > > > > > > > > Honnappa, please could you give your view on the future of atomics in > > DPDK? > > > Thanks Thomas, apologies it has taken me a while to get to this > > > discussion. > > > > > > IMO, we do not need DPDK's

Re: [PATCH v9 1/6] eal: trace: add trace point emit for blob

2023-02-07 Thread Ferruh Yigit
On 2/7/2023 6:32 AM, Ankur Dwivedi wrote: > Adds a trace point emit function for capturing a blob. The blob > captures the length passed by the application followed by the array. > > The maximum blob bytes which can be captured is bounded by > RTE_TRACE_BLOB_LEN_MAX macro. The value for max blob l

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

2023-02-07 Thread Ferruh Yigit
On 2/7/2023 6:32 AM, Ankur Dwivedi wrote: > Adds trace points for ethdev functions. > > The rte_ethdev_trace.h is removed. The file ethdev_trace.h is added as > an internal header. ethdev_trace.h contains internal slow path and > fast path tracepoints. The public fast path tracepoints are present

RE: [PATCH v2 10/21] net/virtio: alloc Rx SW ring only if vectorized path

2023-02-07 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Tuesday, February 7, 2023 11:18 PM > To: dev@dpdk.org; Xia, Chenbo ; > david.march...@redhat.com; epere...@redhat.com; step...@networkplumber.org > Cc: Maxime Coquelin > Subject: [PATCH v2 10/21] net/virtio: alloc Rx SW ring only if vec

RE: [PATCH v2 21/21] net/virtio-user: remove max queues limitation

2023-02-07 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Tuesday, February 7, 2023 11:18 PM > To: dev@dpdk.org; Xia, Chenbo ; > david.march...@redhat.com; epere...@redhat.com; step...@networkplumber.org > Cc: Maxime Coquelin > Subject: [PATCH v2 21/21] net/virtio-user: remove max queues limit

RE: [PATCH v2 19/21] net/virtio-user: forward control messages to shadow queue

2023-02-07 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Tuesday, February 7, 2023 11:18 PM > To: dev@dpdk.org; Xia, Chenbo ; > david.march...@redhat.com; epere...@redhat.com; step...@networkplumber.org > Cc: Maxime Coquelin > Subject: [PATCH v2 19/21] net/virtio-user: forward control message

RE: [PATCH v6 0/6] add idpf pmd enhancement features

2023-02-07 Thread Wu, Jingjing
> -Original Message- > From: Liu, Mingxia > Sent: Tuesday, February 7, 2023 6:17 PM > To: dev@dpdk.org; Zhang, Qi Z ; Wu, Jingjing > ; Xing, Beilei > Cc: Liu, Mingxia > Subject: [PATCH v6 0/6] add idpf pmd enhancement features > > This patchset add several enhancement features of idp

RE: [PATCH] eal: introduce atomics abstraction

2023-02-07 Thread Honnappa Nagarahalli
> > > > > > Honnappa, please could you give your view on the future of atomics in > DPDK? > > Thanks Thomas, apologies it has taken me a while to get to this discussion. > > > > IMO, we do not need DPDK's own abstractions. APIs from stdatomic.h > (stdatomics as is called here) already serve the p

[RFC v2 17/17] port: replace RTE_LOGTYPE_PORT with dynamic type

2023-02-07 Thread Stephen Hemminger
Split up the single static RTE_LOGTYPE_PORT into seperate sub types for each component: port.ethdev, port.evendev, ... Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/port/rte_port_ethdev.c | 23 + lib/port/rt

[RFC v2 16/17] sched: replace RTE_LOGTYPE_SCHED with dynamic type

2023-02-07 Thread Stephen Hemminger
Also can remove unused RTE_LOGTYPE_METER Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 2 - lib/eal/include/rte_log.h | 4 +- lib/sched/rte_pie.c | 16 +- lib/sched/rte_sched.c | 297 +--- lib/sched/rte_sched_l

[RFC v2 15/17] hash: replace RTE_LOGTYPE_HASH with dynamic type

2023-02-07 Thread Stephen Hemminger
A little more complex here since the one hash library actually has multiple routines in it. Split up the logtypes for hash and toeplitz. The hash crc file has another issue around logging. It is calling RTE_LOG during a constructor which is maybe problematic because this will all run before the D

[RFC v2 14/17] kni: replace RTE_LOGTYPE_KNI with dynamic type

2023-02-07 Thread Stephen Hemminger
Even though KNI will eventually disappear, fix the logtype now. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/kni/rte_kni.c | 63 ++--- 3 files changed, 35 insertions(+), 31 dele

[RFC v2 13/17] lpm: replace RTE_LOGTYPE_LPM with dynamic types

2023-02-07 Thread Stephen Hemminger
Split lpm and lpm6 into separate log types since they are in different files and user may want to change log levels for IPv4 vs IPv6. For rib and fib libraries give them own types as well. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h

[RFC v2 12/17] mempool: replace RTE_LOGTYPE_MEMPOOL with dynamic type

2023-02-07 Thread Stephen Hemminger
Convert from RTE_LOGTYPE_MEMPOOL to logtype_mempool. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/mempool/rte_mempool.c | 33 ++--- lib/mempool/rte_mempool_log.h | 10 ++ lib/

[RFC v2 10/17] power: replace RTE_LOGTYPE_POWER with dynamic type

2023-02-07 Thread Stephen Hemminger
Use dynamic log type for power library. Also replace use of RTE_LOGTYPE_USER1 with lib.power.guest. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c| 1 - lib/eal/include/rte_log.h | 2 +- lib/power/guest_channel.c | 48 + lib/power/power_ac

[RFC v2 11/17] ring: replace RTE_LOGTYPE_RING with dynamic type

2023-02-07 Thread Stephen Hemminger
The logtype for ring only used in library. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/ring/rte_ring.c | 31 +++ 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/

[RFC v2 09/17] acl: replace LOGTYPE_ACL with dynamic type

2023-02-07 Thread Stephen Hemminger
Get rid of RTE_LOGTYPE_ACL and RTE_LOGTYPE_MALLOC. For ACL library use a dynamic type. The one message using RTE_LOGTYPE_MALLOC should have been under the ACL logtype anyway. The test code should not have been using fixed log type so just change that to stderr. Signed-off-by: Stephen Hemminger -

[RFC v2 08/17] mbuf: replace RTE_LOGTYPE_MBUF with dynamic type

2023-02-07 Thread Stephen Hemminger
Introduce a new dynamic logtype for mbuf related messages. Since this is used in multiple files put one macro in mbuf_log.h Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/mbuf/mbuf_log.h | 10 ++ lib/m

[RFC v2 07/17] efd: replace RTE_LOGTYPE_EFD with local type

2023-02-07 Thread Stephen Hemminger
Replace all uses of global logtype with a local log type. Do not break message formats across source lines. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/efd/rte_efd.c | 106 +++---

[RFC v2 06/17] log: drop unused RTE_LOGTYPE_TIMER

2023-02-07 Thread Stephen Hemminger
The timer code does not use rte_log. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/eal/common/eal_common_log.c b/lib/eal/common/eal_common_log.c index c369154cb

[RFC v2 05/17] gso: remove logtype

2023-02-07 Thread Stephen Hemminger
If a large packet is passed into GSO routines of unknown protocol then library would log a message and pass it through. This is incorrect behaviour on many levels: - it allows oversize packet to get passed on to NIC driver - no direct return is visible to applications - if it happens once, ma

[RFC v2 04/17] latencystats: use dynamic logtype

2023-02-07 Thread Stephen Hemminger
Libraries should not reuse RTE_LOGTYPE_USER1 for their loggging. Instead they should register their own type. Fixes: 5cd3cac9ed22 ("latency: added new library for latency stats") Cc: reshma.pat...@intel.com Signed-off-by: Stephen Hemminger Signed-off-by: Stephen Hemminger --- lib/latencystats/

[RFC v2 03/17] reorder: use a dynamic logtype

2023-02-07 Thread Stephen Hemminger
Libraries should not be reusing RTE_LOGTYPE_USER1 instead of doing proper logtype registration. Fixes: b70b56032bff ("reorder: new library") Cc: sergio.gonzalez.mon...@intel.com Signed-off-by: Stephen Hemminger --- lib/reorder/rte_reorder.c | 35 +++ 1 file change

[RFC v2 02/17] ip_frag: use a dynamic logtype

2023-02-07 Thread Stephen Hemminger
DPDK libraries should not be reusing RTE_LOGTYPE_USER1 in lieu of doing proper logtype registration. Fixes: 416707812c03 ("ip_frag: refactor reassembly code into a proper library") Signed-off-by: Stephen Hemminger --- lib/ip_frag/ip_frag_common.h | 16 ++- lib/ip_frag/ip_frag_internal.c

[RFC v2 01/17] doc: document intention to deprecate RTE_LOGTYPE_USER*

2023-02-07 Thread Stephen Hemminger
These static log types should be deprecated in next stable release. Also, remove use of USER1 from example of doing mlockall. Signed-off-by: Stephen Hemminger --- doc/guides/prog_guide/writing_efficient_code.rst | 3 +-- doc/guides/rel_notes/deprecation.rst | 4 2 files changed

[RFC v2 00/17] static logtype removal

2023-02-07 Thread Stephen Hemminger
Second draft of removing static log types. This version also fixes abuse of RTE_LOGTYPE_USER1 in some libraries. May split the USER1 stuff out into seperate patch bundle in later versions. Still left is the big device driver usage. Stephen Hemminger (17): doc: document intention to deprecate

Re: [PATCH v2 0/8] Enable building more libraries on Windows

2023-02-07 Thread Dmitry Kozlyuk
2023-02-06 16:19 (UTC-0800), Stephen Hemminger: > While diagnosing some Windows cross build errors; > noticed that lots of important DPDK libraries are not > being built on Windows. > > Stephen Hemminger (8): > net/null: build null PMD on Windows > net/ring: build on Windows > lpm: enable on

RE: [PATCH v2] eventdev/timer: fix overflow issue

2023-02-07 Thread Carrillo, Erik G
> -Original Message- > From: Jerin Jacob > Sent: Tuesday, February 7, 2023 12:01 AM > To: Carrillo, Erik G ; Stephen Hemminger > > Cc: jer...@marvell.com; dev@dpdk.org; sta...@dpdk.org > Subject: Re: [PATCH v2] eventdev/timer: fix overflow issue > > On Wed, Jan 25, 2023 at 2:16 AM Erik

Re: [PATCH] eal: introduce atomics abstraction

2023-02-07 Thread Tyler Retzlaff
On Tue, Feb 07, 2023 at 04:16:58PM +0100, Morten Brørup wrote: > > From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > > Sent: Friday, 3 February 2023 21.49 > > > > On Fri, Feb 03, 2023 at 12:19:13PM +, Bruce Richardson wrote: > > > On Thu, Feb 02, 2023 at 11:00:23AM -0800, Tyler Retz

Re: [PATCH v5 1/3] eal: add rte control thread create API

2023-02-07 Thread Tyler Retzlaff
On Tue, Feb 07, 2023 at 02:12:18PM +0100, David Marchand wrote: > On Tue, Jan 31, 2023 at 9:30 PM Tyler Retzlaff > wrote: > > > > Add rte_control_thread_create API as a replacement for > > rte_ctrl_thread_create to allow deprecation of the use of platform > > specific types in DPDK public API. > >

Re: [PATCH v5 2/3] doc: add missing index entry for thread

2023-02-07 Thread Tyler Retzlaff
On Tue, Feb 07, 2023 at 04:39:06PM +0100, David Marchand wrote: > On Tue, Jan 31, 2023 at 9:30 PM Tyler Retzlaff > wrote: > > > > Add missing thread index referencing rte_thread.h under the basic > > topic. > > > > Signed-off-by: Tyler Retzlaff > > --- > > doc/api/doxy-api-index.md | 1 + > > 1

[RFC 13/13] sched: replace RTE_LOGTYPE_SCHED with dynamic type

2023-02-07 Thread Stephen Hemminger
Also can remove unused RTE_LOGTYPE_METER Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 2 - lib/eal/include/rte_log.h | 4 +- lib/sched/rte_pie.c | 16 +- lib/sched/rte_sched.c | 297 +--- lib/sched/rte_sched_l

[RFC 12/13] hash: replace RTE_LOGTYPE_HASH with dynamic type

2023-02-07 Thread Stephen Hemminger
A little more complex here since the one hash library actually has multiple routines in it. Split up the logtypes for hash and toeplitz. The hash crc file has another issue around logging. It is calling RTE_LOG during a constructor which is maybe problematic because this will all run before the D

[RFC 11/13] kni: replace RTE_LOGTYPE_KNI with dynamic type

2023-02-07 Thread Stephen Hemminger
Even though KNI will eventually disappear, fix the logtype now. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/kni/rte_kni.c | 63 ++--- 3 files changed, 35 insertions(+), 31 dele

[RFC 10/13] lpm: replace RTE_LOGTYPE_LPM with dynamic types

2023-02-07 Thread Stephen Hemminger
Split lpm and lpm6 into seperate log types since they are in different files and user may want to change log levels for IPv4 vs IPv6. For rib and fib libraries give them own types as well. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h

[RFC 09/13] mempool: replace RTE_LOGTYPE_MEMPOOL with dynamic type

2023-02-07 Thread Stephen Hemminger
Convert from RTE_LOGTYPE_MEMPOOL to logtype_mempool. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/mempool/rte_mempool.c | 33 ++--- lib/mempool/rte_mempool_log.h | 10 ++ lib/

[RFC 07/13] power: replace RTE_LOGTYPE_POWER with dynamic type

2023-02-07 Thread Stephen Hemminger
Use dynamic log type for power library. Also replace use of RTE_LOGTYPE_USER1 with lib.power.guest. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c| 1 - lib/eal/include/rte_log.h | 2 +- lib/power/guest_channel.c | 48 + lib/power/power_ac

[RFC 08/13] ring: replace RTE_LOGTYPE_RING with dynamic type

2023-02-07 Thread Stephen Hemminger
The logtype for ring only used in library. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/ring/rte_ring.c | 31 +++ 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/

[RFC 06/13] acl: replace LOGTYPE_ACL with dynamic type

2023-02-07 Thread Stephen Hemminger
Get rid of RTE_LOGTYPE_ACL and RTE_LOGTYPE_MALLOC. For ACL library use a dynamic type. The one message using RTE_LOGTYPE_MALLOC should have been under the ACL logtype anyway. The test code should not have been using fixed log type so just change that to stderr. Signed-off-by: Stephen Hemminger -

[RFC 05/13] mbuf: replace RTE_LOGTYPE_MBUF with dynamic type

2023-02-07 Thread Stephen Hemminger
Introduce a new dynamic logtype for mbuf related messages. Since this is used in multiple files put one macro in mbuf_log.h Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/mbuf/mbuf_log.h | 10 ++ lib/m

[RFC 04/13] efd: replace RTE_LOGTYPE_EFD with local type

2023-02-07 Thread Stephen Hemminger
Replace all uses of global logtype with a local log type. Do not break message formats across source lines. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- lib/efd/rte_efd.c | 106 +++---

[RFC 03/13] log: drop unused RTE_LOGTYPE_TIMER

2023-02-07 Thread Stephen Hemminger
The timer code does not use rte_log --- lib/eal/common/eal_common_log.c | 1 - lib/eal/include/rte_log.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/eal/common/eal_common_log.c b/lib/eal/common/eal_common_log.c index c369154cb1ea..e7ccde1c9ccd 100644 --- a/lib/e

[RFC 02/13] gso: remove logtype

2023-02-07 Thread Stephen Hemminger
If a large packet is passed into GSO routines of unknown protocol then library would log a message and pass it through. This is incorrect behaviour on many levels: - it allows oversize packet to get passed on to NIC driver - no direct return is visible to applications - if it happens once, ma

[RFC 01/13] doc: document intention to deprecate RTE_LOGTYPE_USER*

2023-02-07 Thread Stephen Hemminger
These static log types should be deprecated in next stable release. Also, remove use of USER1 from example of doing mlockall. Signed-off-by: Stephen Hemminger --- doc/guides/prog_guide/writing_efficient_code.rst | 3 +-- doc/guides/rel_notes/deprecation.rst | 4 2 files changed

[RFC 00/13] Replace static logtypes with static

2023-02-07 Thread Stephen Hemminger
This is a first draft and tackling the removal of static logtypes. It starts with the easy one and goes on to the more complex ones. It does not address the biggest effort which is the eal, eventdev, cryptodev, and pmd log types. Mostly this is semi-automatic conversion but some places like hash

[PATCH v2] common/cnxk: remove unnecessary locks

2023-02-07 Thread pbhagavatula
From: Pavan Nikhilesh Remove unnecessary locks as locking is now taken care by mbox_get and mbox_put. Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Rebase on main drivers/common/cnxk/roc_sso.c | 25 - drivers/common/cnxk/roc_sso_priv.h | 1 - 2 files changed

[PATCH v9 4/5] app/testpmd: report lcore usage

2023-02-07 Thread Robin Jarry
The --record-core-cycles option already accounts for busy cycles. One turn of packet_fwd_t is considered "busy" if there was at least one received or transmitted packet. Rename core_cycles to busy_cycles in struct fwd_stream to make it more explicit. Add total_cycles to struct fwd_lcore. Add cycle

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

2023-02-07 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 v9 3/5] app/testpmd: add dump command for lcores

2023-02-07 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 Reviewed-by: Kevin Laatz --- Notes: v8 -> v9: no change app/test-pmd/cmdline.c | 3 +++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 7

[PATCH v9 2/5] eal: report applications lcore usage

2023-02-07 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 v9 1/5] eal: add lcore info in telemetry

2023-02-07 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 v9 0/5] lcore telemetry improvements

2023-02-07 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] telemetry: reset data before passing it to callback

2023-02-07 Thread Robin Jarry
If a telemetry endpoint callback returns 0 without modifying the data object, output_json() may be called with undefined contents in data. This can cause crashes and/or worse (double free, etc.). Reset data before passing it to the endpoint callbacks. Fixes: 6dd571fd07c3 ("telemetry: introduce ne

Re: [PATCH v2 19/21] net/virtio-user: forward control messages to shadow queue

2023-02-07 Thread Eugenio Perez Martin
On Tue, Feb 7, 2023 at 4:18 PM Maxime Coquelin wrote: > > This patch implements control messages forwarding from the > regular control queue to the shadow control queue. > > Signed-off-by: Maxime Coquelin Acked-by: Eugenio Pérez > --- > .../net/virtio/virtio_user/virtio_user_dev.c | 35 +

Re: [PATCH v2 20/21] net/virtio-user: advertize control VQ support with vDPA

2023-02-07 Thread Eugenio Perez Martin
On Tue, Feb 7, 2023 at 4:18 PM Maxime Coquelin wrote: > > This patch advertizes control virtqueue support by the vDPA > backend if it supports VIRTIO_NET_F_CTRL_VQ. > > Signed-off-by: Maxime Coquelin > Reviewed-by: Chenbo Xia Acked-by: Eugenio Pérez > --- > drivers/net/virtio/virtio_user/vho

[PATCH] pipeline: fix IPsec crypto session leak

2023-02-07 Thread Cristian Dumitrescu
In case of rte_ipsec_session_prepare() error, the crypto session was not freed, leading to its leakage. Fixes: 20777eb5f913 ("pipeline: add IPsec") Coverity issue: 383139 Signed-off-by: Cristian Dumitrescu --- lib/pipeline/rte_swx_ipsec.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(

Re: [PATCH v2 18/21] net/virtio-user: add new callback to enable control queue

2023-02-07 Thread Eugenio Perez Martin
On Tue, Feb 7, 2023 at 4:18 PM Maxime Coquelin wrote: > > This patch introduces a new callback that is to be called > when the backend supports control virtqueue. > > Implementation for Vhost-vDPA backend is added in this patch. > > Signed-off-by: Maxime Coquelin > Reviewed-by: Chenbo Xia Small

Re: [PATCH v2 17/21] net/virtio-user: send shadow virtqueue info to the backend

2023-02-07 Thread Eugenio Perez Martin
On Tue, Feb 7, 2023 at 4:18 PM Maxime Coquelin wrote: > > This patch adds sending the shadow control queue info > to the backend. > > Signed-off-by: Maxime Coquelin > Reviewed-by: Chenbo Xia Acked-by: Eugenio Pérez > --- > .../net/virtio/virtio_user/virtio_user_dev.c | 28 --

Re: [PATCH v2 16/21] net/virtio-user: allocate shadow control queue

2023-02-07 Thread Eugenio Perez Martin
On Tue, Feb 7, 2023 at 4:18 PM Maxime Coquelin wrote: > > If the backends supports control virtqueue, allocate a > shadow control virtqueue, and implement the notify callback > that writes into the kickfd. > > Signed-off-by: Maxime Coquelin > Reviewed-by: Chenbo Xia Even with the nitpick below,

Re: [PATCH v2 15/21] net/virtio-user: get max number of queue pairs from device

2023-02-07 Thread Eugenio Perez Martin
On Tue, Feb 7, 2023 at 4:18 PM Maxime Coquelin wrote: > > When supported by the backend (only vDPA for now), this > patch gets the maximum number of queue pairs supported by > the device by querying it in its config space. > > This is required for adding backend control queue support, > as is inde

[PATCH] app/dumpcap: don't pass negative value to strerror() on error

2023-02-07 Thread Stephen Hemminger
If eth_stats_get fails (for example with -ENOTSUPP) then dumpcap would pass that to strerror which is incorrect. Fixes: 8744f84bb255 ("app/dumpcap: add statistics mode") Coverity issue: 383136 Signed-off-by: Stephen Hemminger --- app/dumpcap/main.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

  1   2   3   4   >