Re: [EXTERNAL] Re: [PATCH v5] cnxk: disable building template files

2024-05-29 Thread Jerin Jacob
On Tue, May 28, 2024 at 3:31 PM Pavan Nikhilesh Bhagavatula wrote: > > > > > -Original Message- > > From: Bruce Richardson > > Sent: Tuesday, May 28, 2024 3:10 PM > > To: Pavan Nikhilesh Bhagavatula > > Cc: Jerin Jacob ; Nithin Kumar Dabilpuram > > ; Kiran Kumar Kokkilagadda > > ; Sunil

Re: [Help] O-RAN Fronthaul CUS-U data structure implementation

2024-05-29 Thread Mattia Milani
Dear Lincoln, Thank you very much for providing this reference. I've to admit that I didn't know about this library but I'm looking into it but I have some questions/concerns. This library seems to be abandoned since 2 years, at least this is what I see from both the documentation and also thei

RE: [EXTERNAL] [PATCH v1] crypto: fix build issues on crypto callbacks macro undefined

2024-05-29 Thread Akhil Goyal
> Crypto callbacks macro is defined with value 1 and being used with ifdef, > on config value is changed to 0 to disable, crypto callback changes > still being compiled. I believe we can use #if instead of ifdefs. It seems convenient to enable/disable in my opinion. We can use both, but whatever w

Re: [EXTERNAL] Re: [PATCH v5] cnxk: disable building template files

2024-05-29 Thread Bruce Richardson
On Wed, May 29, 2024 at 01:31:39PM +0530, Jerin Jacob wrote: > On Tue, May 28, 2024 at 3:31 PM Pavan Nikhilesh Bhagavatula > wrote: > > > > > > > > > -Original Message- > > > From: Bruce Richardson > > > Sent: Tuesday, May 28, 2024 3:10 PM > > > To: Pavan Nikhilesh Bhagavatula > > > Cc:

RE: [EXTERNAL] [PATCH v1] crypto: fix build issues on crypto callbacks macro undefined

2024-05-29 Thread Kundapura, Ganapati
> -Original Message- > From: Akhil Goyal > Sent: Wednesday, May 29, 2024 2:05 PM > To: Kundapura, Ganapati ; dev@dpdk.org; > Ferruh Yigit ; tho...@monjalon.net; Richardson, > Bruce > Cc: Gujjar, Abhinandan S ; > ciara.po...@intel.com; fanzhang@gmail.com > Subject: RE: [EXTERNAL] [P

[PATCH v12 1/6] lib: allow libraries with no sources

2024-05-29 Thread Paul Szczepanek
Allow header only libraries. Signed-off-by: Paul Szczepanek Reviewed-by: Honnappa Nagarahalli Acked-by: Bruce Richardson --- lib/meson.build | 16 1 file changed, 16 insertions(+) diff --git a/lib/meson.build b/lib/meson.build index 179a272932..7c90602bf5 100644 --- a/lib/mes

[PATCH v12 2/6] mempool: add functions to get extra mempool info

2024-05-29 Thread Paul Szczepanek
Add two functions: - rte_mempool_get_mem_range - get virtual memory range of the objects in the mempool, - rte_mempool_get_obj_alignment - get alignment of objects in the mempool. Add two tests that test these new functions. Signed-off-by: Paul Szczepanek Reviewed-by: Jack Bond-Preston Reviewed

[PATCH v12 0/6] add pointer compression API

2024-05-29 Thread Paul Szczepanek
This patchset is proposing adding a new header only library with utility functions that allow compression of arrays of pointers. Since this is a header only library a patch needed to be added to amend the build system to allow adding libraries without source files. When passing caches full of poi

[PATCH v12 4/6] test: add pointer compress tests to ring perf test

2024-05-29 Thread Paul Szczepanek
Add a test that runs a zero copy burst enqueue and dequeue on a ring of raw pointers and compressed pointers at different burst sizes to showcase performance benefits of newly added pointer compression APIs. Refactored threading code to pass more parameters to threads to reuse existing code. Added

[PATCH v12 3/6] ptr_compress: add pointer compression library

2024-05-29 Thread Paul Szczepanek
Add a new utility header for compressing pointers. The provided functions can store pointers as 32-bit or 16-bit offsets. The compression takes advantage of the fact that pointers are usually located in a limited memory region (like a mempool). We can compress them by converting them to offsets fr

[PATCH v12 6/6] test: add unit test for ptr compression

2024-05-29 Thread Paul Szczepanek
Test compresses and decompresses pointers with various combinations of memory regions and alignments and verifies the pointers are recovered correctly. Additionally tests helper macros perform calculations correctly. Signed-off-by: Paul Szczepanek Reviewed-by: Honnappa Nagarahalli Reviewed-by: N

[PATCH v12 5/6] docs: add pointer compression guide

2024-05-29 Thread Paul Szczepanek
Documentation added in the prog guide for the new utility functions for pointer compression showing example code and potential usecases. Signed-off-by: Paul Szczepanek Reviewed-by: Honnappa Nagarahalli Reviewed-by: Nathan Brown Reviewed-by: Jack Bond-Preston --- MAINTAINERS

Re: [PATCH v5 0/4] add pointer compression API

2024-05-29 Thread Paul Szczepanek
On 28/05/2024 20:29, Paul Szczepanek wrote: > > > On 24/05/2024 10:09, Konstantin Ananyev wrote: >> >> >>> I have added macros to help find the parameters and I have added mempool >>> functions that allow you to determine if you can use the mempool and >>> what params it needs. The new mempool

Re: [PATCH v6 0/2] Methodology change for hugepage configuration

2024-05-29 Thread Juraj Linkeš
On Wed, May 15, 2024 at 4:50 PM Nicholas Pratte wrote: > > >What's the difference between this version and v4? > > Version 5 was a response to your suggestions regarding the semantics > of the hugepage variable names as it relates to countable or > uncountable nouns. This patch, which was original

RE: [PATCH v2 0/3] cryptodev: add API to get used queue pair depth

2024-05-29 Thread Anoob Joseph
> > Added a new fast path API to get the number of used crypto device queue pair > depth at any given point. > > An implementation in cnxk crypto driver is also added along with a test case > in > test app. > > The addition of new API causes an ABI warning. > This is suppressed as the updated s

Re: [PATCH v2 0/2] dts: update mypy and clean up

2024-05-29 Thread Juraj Linkeš
On Tue, May 28, 2024 at 2:05 PM Luca Vizzarro wrote: > > On 24/05/2024 17:17, Patrick Robb wrote: > > Luca, I assume what you had in mind was we will run > > dts-check-format.sh, so including isort and pylama, as opposed to just > > mypy? Thanks. > I originally thought of mypy only, Juraj suggeste

Re: [PATCH v2 1/2] dts: update mypy static checker

2024-05-29 Thread Juraj Linkeš
On Tue, May 28, 2024 at 2:00 PM Luca Vizzarro wrote: > > On 24/05/2024 15:51, Patrick Robb wrote: > > I think this is fine. Another option would be to move sut_nodes and > > tg_nodes up as DTSRunner attributes. This is a good suggestion. Everything in DTSRunner is tied to a particular execution/b

[PATCH] maintainers: update for networking mlx5 driver

2024-05-29 Thread Dariusz Sosnowski
Adding Bing Zhao as NVIDIA mlx5 maintainer. Signed-off-by: Dariusz Sosnowski --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index c9adff9846..af22c2c9fb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -868,6 +868,7 @@ F: doc/guides/nics/features/mlx4.

Re: [PATCH 1/2] dts: update mypy static checker

2024-05-29 Thread Juraj Linkeš
On Tue, May 14, 2024 at 1:30 PM Luca Vizzarro wrote: > > On 13/05/2024 17:02, Juraj Linkeš wrote: > >> def _filter_test_cases( > >> self, test_suite_class: type[TestSuite], test_cases_to_run: > >> Sequence[str] > >> -) -> tuple[list[MethodType], list[MethodType]]: > >> +)

Re: [PATCH v2 1/2] dts: update mypy static checker

2024-05-29 Thread Juraj Linkeš
> diff --git a/dts/poetry.lock b/dts/poetry.lock > index a734fa71f0..df9cecb7e0 100644 > --- a/dts/poetry.lock > +++ b/dts/poetry.lock > @@ -1,4 +1,4 @@ > -# This file is automatically @generated by Poetry 1.5.1 and should not be > changed by hand. > +# This file is automatically @generated by Poe

RE: [EXTERNAL] [PATCH v1] crypto: fix build issues on crypto callbacks macro undefined

2024-05-29 Thread Akhil Goyal
> > Subject: RE: [EXTERNAL] [PATCH v1] crypto: fix build issues on crypto > > callbacks > > macro undefined > > > > > Crypto callbacks macro is defined with value 1 and being used with > > > ifdef, on config value is changed to 0 to disable, crypto callback > > > changes still being compiled. > >

Re: [PATCH 2/2] dts: clean up config types

2024-05-29 Thread Juraj Linkeš
On Thu, May 9, 2024 at 12:57 PM Luca Vizzarro wrote: > > Clean up types used with the configuration classes, and use Self from > the newly added typing_extensions module. > > Methods that instantiate their own class should be @classmethod instead > of @staticmethod. > > Bugzilla ID: 1433 > > Signe

Re: [PATCH 1/2] eal: provide macro for GCC builtin constant intrinsic

2024-05-29 Thread Andrew Rybchenko
On 4/1/24 11:34, Morten Brørup wrote: From: Stephen Hemminger [mailto:step...@networkplumber.org] Sent: Monday, 1 April 2024 00.03 On Wed, 20 Mar 2024 14:33:35 -0700 Tyler Retzlaff wrote: +#ifdef RTE_TOOLCHAIN_MSVC +#define __rte_constant(e) 0 +#else +#define __rte_constant(e) __extension__(_

Re: [PATCH 1/2] eal: provide macro for GCC builtin constant intrinsic

2024-05-29 Thread Andrew Rybchenko
On 5/27/24 15:00, Bruce Richardson wrote: On Wed, Mar 20, 2024 at 02:33:35PM -0700, Tyler Retzlaff wrote: MSVC does not have a __builtin_constant_p intrinsic so provide __rte_constant(e) that expands false for MSVC and to the intrinsic for GCC. Signed-off-by: Tyler Retzlaff --- lib/eal/inclu

Re: [PATCH 2/2] mempool: use rte constant macro instead of GCC builtin

2024-05-29 Thread Andrew Rybchenko
On 3/26/24 12:57, Morten Brørup wrote: From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] Sent: Wednesday, 20 March 2024 22.34 Use newly introduced __rte_constant(e) macro instead of directly using __builtin_constant_p() allowing mempool to be built by MSVC. Signed-off-by: Tyler Retzlaf

RE: [PATCH v12 2/6] mempool: add functions to get extra mempool info

2024-05-29 Thread Morten Brørup
> From: Paul Szczepanek [mailto:paul.szczepa...@arm.com] > Sent: Wednesday, 29 May 2024 12.23 > > Add two functions: > - rte_mempool_get_mem_range - get virtual memory range > of the objects in the mempool, > - rte_mempool_get_obj_alignment - get alignment of > objects in the mempool. > > Add two

RE: [PATCH v12 3/6] ptr_compress: add pointer compression library

2024-05-29 Thread Morten Brørup
> From: Paul Szczepanek [mailto:paul.szczepa...@arm.com] > Sent: Wednesday, 29 May 2024 12.23 > > Add a new utility header for compressing pointers. The provided > functions can store pointers as 32-bit or 16-bit offsets. > > The compression takes advantage of the fact that pointers are > usually

Re: [PATCH 01/25] common/idpf: added NVME CPF specific code with defines

2024-05-29 Thread Bruce Richardson
On Tue, May 28, 2024 at 07:28:31AM +, Soumyadeep Hore wrote: > The aim of the changes is to remove NVME dependency on Hi, The intro words "The aim of the changes" is unnecessary. Just shorten the commit log by stating what the patch is for without any intro: "Remove NVME dependency on memory

Re: [PATCH 03/25] common/idpf: update ADD QUEUE GROUPS offset

2024-05-29 Thread Bruce Richardson
On Tue, May 28, 2024 at 07:28:33AM +, Soumyadeep Hore wrote: > Some compilers will use 64-bit addressing and compiler will detect > such loss of data > > virtchnl2.h(1890,40): warning C4244: '=': conversion from '__int64' to > '__le32', possible loss of data > > on line 1890 > offset = (u8 *)

Re: [PATCH] mempool: dump includes list of memory chunks

2024-05-29 Thread Paul Szczepanek
On 16/05/2024 09:59, Morten Brørup wrote: > Added information about the memory chunks holding the objects in the > mempool when dumping the status of the mempool to a file. > > Signed-off-by: Morten Brørup > --- > lib/mempool/rte_mempool.c | 10 ++ > 1 file changed, 10 insertions(+) >

RE: [PATCH v2] net/af_xdp: fix umem map size for zero copy

2024-05-29 Thread Loftus, Ciara
> -Original Message- > From: Du, Frank > Sent: Thursday, May 23, 2024 8:56 AM > To: Morten Brørup ; Ferruh Yigit > ; dev@dpdk.org; Andrew Rybchenko > ; Burakov, Anatoly > > Cc: Loftus, Ciara > Subject: RE: [PATCH v2] net/af_xdp: fix umem map size for zero copy > > > -Original Mess

Re: [PATCH 04/25] common/idpf: update in PTP message validation

2024-05-29 Thread Bruce Richardson
On Tue, May 28, 2024 at 07:28:34AM +, Soumyadeep Hore wrote: > When the message for getting timestamp latches is sent by the driver, > number of latches is equal to 0. Current implementation of message > validation function incorrectly notifies this kind of message length as > invalid. > This

Re: [PATCH v2] windows: install sched.h header

2024-05-29 Thread Thomas Monjalon
12/03/2024 18:54, Tyler Retzlaff: > rte_os.h includes sched.h so install sched.h to allow DPDK installed to > DESTDIR to be usable. > > Fixes: e8428a9d89f1 ("eal/windows: add some basic functions and macros") > Cc: sta...@dpdk.org > Cc: pallavi.ka...@intel.com > > Signed-off-by: Tyler Retzlaff >

Re: [PATCH 10/25] common/idpf: avoid variable 0-init

2024-05-29 Thread Bruce Richardson
On Tue, May 28, 2024 at 07:35:50AM +, Soumyadeep Hore wrote: > Dont initialize the variables if not needed. > > Also use 'err' instead of 'status', 'ret_code', 'ret' etc. > for consistency and change the return label 'sq_send_command_out' > to 'err_unlock'. This is consistency of naming withi

Re: [PATCH v1 1/1] net/e1000/base: fix link power down

2024-05-29 Thread Bruce Richardson
On Tue, May 14, 2024 at 04:17:16PM +0100, Anatoly Burakov wrote: > Current code is a result of work to reduce duplication between various > device models. However, the logic that was replaced did not exactly > match the new logic, and as a result the link power down was not > working correctly for

Re: [PATCH v1 1/1] net/e1000/base: fix link power down

2024-05-29 Thread Bruce Richardson
On Wed, May 29, 2024 at 02:34:16PM +0100, Bruce Richardson wrote: > On Tue, May 14, 2024 at 04:17:16PM +0100, Anatoly Burakov wrote: > > Current code is a result of work to reduce duplication between various > > device models. However, the logic that was replaced did not exactly > > match the new l

RE: [PATCH v12 2/6] mempool: add functions to get extra mempool info

2024-05-29 Thread Morten Brørup
> From: Paul Szczepanek [mailto:paul.szczepa...@arm.com] > Sent: Wednesday, 29 May 2024 12.23 > > Add two functions: > - rte_mempool_get_mem_range - get virtual memory range > of the objects in the mempool, > - rte_mempool_get_obj_alignment - get alignment of > objects in the mempool. > > Add two

RE: [PATCH] mempool: dump includes list of memory chunks

2024-05-29 Thread Morten Brørup
> From: Paul Szczepanek [mailto:paul.szczepa...@arm.com] > Sent: Wednesday, 29 May 2024 14.55 > > On 16/05/2024 09:59, Morten Brørup wrote: > > Added information about the memory chunks holding the objects in the > > mempool when dumping the status of the mempool to a file. > > > > Signed-off-by:

RE: [PATCH v2] net/af_xdp: fix umem map size for zero copy

2024-05-29 Thread Morten Brørup
> From: Loftus, Ciara [mailto:ciara.lof...@intel.com] > Sent: Wednesday, 29 May 2024 14.58 > > > From: Du, Frank > > Sent: Thursday, May 23, 2024 8:56 AM > > > > > From: Morten Brørup > > > Sent: Thursday, May 23, 2024 3:41 PM > > > > > > > From: Du, Frank [mailto:frank...@intel.com] > > > > Sen

Re: [PATCH v5 2/2] eal: initialize shared plugins on Windows

2024-05-29 Thread Thomas Monjalon
12/03/2024 17:52, Tyler Retzlaff: > When EAL is built with MSVC it is possible to dynamically load plugins > on Windows. Hook eal_plugins_init into rte_eal_init if built with MSVC > and provide code to load plugins on Windows. > > Signed-off-by: Tyler Retzlaff > Acked-by: Dmitry Kozlyuk > --- >

Re: Depends-on

2024-05-29 Thread Aaron Conole
Morten Brørup writes: > Aaron, > > I have been trying to submit a patch with a dependency on another > patch, but it keeps failing, and the error message "Apply patch set > 140352 failed: 404 Not Found" isn't very helpful. > > Could you please take a look at it and let me know what's going on: >

Re: [PATCH] latencystats: fix missing f suffix on literal float

2024-05-29 Thread Thomas Monjalon
16/04/2024 01:14, Tyler Retzlaff: > On Mon, Apr 15, 2024 at 03:17:38PM -0700, Stephen Hemminger wrote: > > On Mon, 15 Apr 2024 14:32:26 -0700 > > Tyler Retzlaff wrote: > > > > > Add missing f suffix to floating point literal to avoid warning about > > > truncation from double to float. > > > > >

RE: Depends-on

2024-05-29 Thread Morten Brørup
> From: Aaron Conole [mailto:acon...@redhat.com] > Sent: Wednesday, 29 May 2024 16.34 > > Morten Brørup writes: > > > Aaron, > > > > I have been trying to submit a patch with a dependency on another > > patch, but it keeps failing, and the error message "Apply patch set > > 140352 failed: 404 No

[PATCH v2 2/2] crypto: validate crypto callbacks from next node

2024-05-29 Thread Ganapati Kundapura
Crypto callbacks are invoked on checking from head node which is always valid pointer. This patch checks next node from the head node if callbacks registered before invoking callbacks. Fixes: 1c3ffb95595e ("cryptodev: add enqueue and dequeue callbacks") Signed-off-by: Ganapati Kundapura --- v2:

[PATCH v2 1/2] crypto: fix build issues on unsetting crypto callbacks macro

2024-05-29 Thread Ganapati Kundapura
Crypto callbacks macro is defined with value 1 and being used with ifdef, on config value is changed to 0 to disable, crypto callback changes still being compiled. Used #if instead of #ifdef and also wrapped crypto callback changes under RTE_CRYPTO_CALLBACKS macro to fix build issues when macro is

Re: [PATCH v2] build: exclude rather than include libs in MSVC build

2024-05-29 Thread Thomas Monjalon
03/04/2024 20:50, Morten Brørup: > > From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > > Sent: Wednesday, 3 April 2024 20.23 > > > > Some libraries that could be built with MSVC were not being built. > > > > Switch from explicit include to exclude of libs to get immediate CI > > covera

Re: [PATCH 2/2] mempool: use rte constant macro instead of GCC builtin

2024-05-29 Thread Thomas Monjalon
20/03/2024 22:33, Tyler Retzlaff: > Use newly introduced __rte_constant(e) macro instead of directly using > __builtin_constant_p() allowing mempool to be built by MSVC. Does it mean we should enable mempool build? If yes, please send a v2.

Re: [PATCH v2 1/2] dts: update mypy static checker

2024-05-29 Thread Luca Vizzarro
On 29/05/2024 12:39, Juraj Linkeš wrote: diff --git a/dts/poetry.lock b/dts/poetry.lock index a734fa71f0..df9cecb7e0 100644 --- a/dts/poetry.lock +++ b/dts/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. +# This file is auto

[PATCH v4] lib/hash: add siphash

2024-05-29 Thread Stephen Hemminger
The existing hash functions in DPDK are not cryptographically secure and can be subject to carefully crafted packets causing DoS attack. Add SipHash which is a fast and cryptographicly sound hash created by Jean-Philippe Aumasson and Daniel J. Bernstein. Siphash is widely used by Linux, FreeBSD, O

Re: [PATCH v2 7/8] dts: rework interactive shells

2024-05-29 Thread Luca Vizzarro
On 28/05/2024 22:07, Jeremy Spewock wrote: +if start_on_init: +self.start_application() What's the reason for including start_on_init? Is there a time when someone would create an application but not want to start it when they create it? It seems like it is always true curre

Re: [PATCH v2 5/8] dts: add testpmd shell params

2024-05-29 Thread Luca Vizzarro
On 28/05/2024 22:05, Jeremy Spewock wrote: This looks good, the only comment I had was in some classes the docstrings didn't get updated to what was discussed previously in the comments (making sure the comments are included in the class' docstring). I tried to point out a few places where I noti

[PATCH v2 0/2] Fix pdump and dumpcap leaks on SIGTERM

2024-05-29 Thread Stephen Hemminger
Fix bug where dumpcap and pdump programs would leave resources if killed with SIGTERM (or if file gets full). v2 - rebase and rewording Stephen Hemminger (2): app/dumpcap: handle SIGTERM and SIGHUP app/pdump: handle SIGTERM and SIGHUP app/dumpcap/main.c | 14 -- app/pdump/main.c

[PATCH v2 1/2] app/dumpcap: handle SIGTERM and SIGHUP

2024-05-29 Thread Stephen Hemminger
If the dumpcap is killed it does not cleanup which leaves the ring buffer and the memory pool behind. Until resource are exhausted devices will continue to fill the ring. Fix by having the application handle SIGTERM, SIGHUP, and SIGPIPE. These are the same signals handled in same way by the wiresh

[PATCH v2 2/2] app/pdump: handle SIGTERM and SIGHUP

2024-05-29 Thread Stephen Hemminger
The pdump application will leak ring and memory pool if killed by SIGTERM. Like dumpcap, the pdump process should cleanup if process terminates due to being killed or hangup. Fixes: caa7028276b8 ("app/pdump: add tool for packet capturing") Signed-off-by: Stephen Hemminger --- app/pdump/main.c

Re: [PATCH v12 2/6] mempool: add functions to get extra mempool info

2024-05-29 Thread Paul Szczepanek
On 29/05/2024 14:56, Morten Brørup wrote: >> From: Paul Szczepanek [mailto:paul.szczepa...@arm.com] >> Sent: Wednesday, 29 May 2024 12.23 >> >> Add two functions: >> - rte_mempool_get_mem_range - get virtual memory range >> of the objects in the mempool, >> - rte_mempool_get_obj_alignment - get

Re: [PATCH v2 5/8] dts: add testpmd shell params

2024-05-29 Thread Jeremy Spewock
On Wed, May 29, 2024 at 11:59 AM Luca Vizzarro wrote: > > On 28/05/2024 22:05, Jeremy Spewock wrote: > > This looks good, the only comment I had was in some classes the > > docstrings didn't get updated to what was discussed previously in the > > comments (making sure the comments are included in

Re: [PATCH v5] graph: expose node context as pointers

2024-05-29 Thread Nithin Dabilpuram
Acked-by: Nithin Dabilpuram On Wed, Mar 27, 2024 at 2:47 PM Robin Jarry wrote: > > In some cases, the node context data is used to store two pointers > because the data is larger than the reserved 16 bytes. Having to define > intermediate structures just to be able to cast is tedious. And withou

Re: [PATCH v5 2/2] eal: initialize shared plugins on Windows

2024-05-29 Thread Tyler Retzlaff
On Wed, May 29, 2024 at 04:29:29PM +0200, Thomas Monjalon wrote: > 12/03/2024 17:52, Tyler Retzlaff: > > When EAL is built with MSVC it is possible to dynamically load plugins > > on Windows. Hook eal_plugins_init into rte_eal_init if built with MSVC > > and provide code to load plugins on Windows.

[PATCH v3 0/3] Improve interactive shell output gathering and logging

2024-05-29 Thread jspewock
From: Jeremy Spewock This version addresses the small comments that were on the previous version such as documentation of variable name changes. Jeremy Spewock (3): dts: Improve output gathering in interactive shells dts: Add missing docstring from XML-RPC server dts: Improve logging for i

[PATCH v3 1/3] dts: Improve output gathering in interactive shells

2024-05-29 Thread jspewock
From: Jeremy Spewock The current implementation of consuming output from interactive shells relies on being able to find an expected prompt somewhere within the output buffer after sending the command. This is useful in situations where the prompt does not appear in the output itself, but in some

[PATCH v3 2/3] dts: Add missing docstring from XML-RPC server

2024-05-29 Thread jspewock
From: Jeremy Spewock When this XML-RPC server implementation was added, the docstring had to be shortened in order to reduce the chances of this race condition being encountered. Now that this race condition issue is resolved, the full docstring can be restored. Signed-off-by: Jeremy Spewock --

[PATCH v3 3/3] dts: Improve logging for interactive shells

2024-05-29 Thread jspewock
From: Jeremy Spewock The messages being logged by interactive shells currently are using the same logger as the node they were created from. Because of this, when sending interactive commands, the logs make no distinction between when you are sending a command directly to the host and when you ar

Re: [PATCH v1 2/4] dts: add context manager for interactive shells

2024-05-29 Thread Jeremy Spewock
On Mon, May 20, 2024 at 1:31 PM Luca Vizzarro wrote: > > On 14/05/2024 21:14, jspew...@iol.unh.edu wrote: > > +class CriticalInteractiveShell(InteractiveShell): > > > +_get_priviledged_command: Callable[[str], str] | None > typo: privileged Ack. > > + > > +def __init__( > > +sel

Re: [PATCH v1 2/4] dts: add context manager for interactive shells

2024-05-29 Thread Jeremy Spewock
On Wed, May 22, 2024 at 9:53 AM Patrick Robb wrote: > > Reviewed-by: Patrick Robb > > I don't have any comments beyond Luca's suggestions, but saw the typo below. > > On Tue, May 14, 2024 at 4:15 PM wrote: > > +def __exit__(self, type: BaseException, value: BaseException, > > traceback: Tra

Re: [PATCH v1 3/4] dts: add methods for modifying MTU to testpmd shell

2024-05-29 Thread Jeremy Spewock
On Mon, May 20, 2024 at 1:35 PM Luca Vizzarro wrote: > > On 14/05/2024 21:14, jspew...@iol.unh.edu wrote: > > diff --git a/dts/framework/remote_session/testpmd_shell.py > > b/dts/framework/remote_session/testpmd_shell.py > > index 33b3e7c5a3..4e608998f9 100644 > > --- a/dts/framework/remote_sessi

Re: [PATCH v1 4/4] dts: add test case that utilizes offload to pmd_buffer_scatter

2024-05-29 Thread Jeremy Spewock
On Mon, May 20, 2024 at 1:56 PM Luca Vizzarro wrote: > > On 14/05/2024 21:14, jspew...@iol.unh.edu wrote: > > +# adjust the MTU of the SUT ports > > +testpmd.set_port_mtu(0, 9000) > > +testpmd.set_port_mtu(1, 9000) > > should you perhaps do this for every port i

[PATCH] net/mlx5: break resource release forever loop

2024-05-29 Thread Alexander Kozyrev
There is a loop inside the flow_hw_resource_release() function that tries to free all the template patterns and tables until they are successfully released. But some of the tables may be still in use in case of the ungraceful application termination. Which causes the forever loop in the app on the

[PATCH v6 0/8] latencystats: improvements to algorithm and test

2024-05-29 Thread Stephen Hemminger
Latencystats uses unnecessary floating point and is inaccurate if the number of cycles per ns is not an integral value. Cleanup the code and add more tests as well. v6 - rebase and combine updates to test Stephen Hemminger (8): latencystats: replace use of VLA latencystats: handle fractional

[PATCH v6 1/8] latencystats: replace use of VLA

2024-05-29 Thread Stephen Hemminger
The temporary array latencystats is not needed if the algorithm is converted into one pass. Signed-off-by: Stephen Hemminger Acked-by: Morten Brørup Acked-by: Tyler Retzlaff --- lib/latencystats/rte_latencystats.c | 31 +++-- 1 file changed, 16 insertions(+), 15 deletio

[PATCH v6 2/8] latencystats: handle fractional cycles per ns

2024-05-29 Thread Stephen Hemminger
The TSC frequency is not always an integral number of nanoseconds. For examples, cycles per nanoseconds on my test system is 2.8. Fix by using floating point where needed and calculate value once. Signed-off-by: Stephen Hemminger --- lib/latencystats/rte_latencystats.c | 17 ++--- 1

[PATCH v6 3/8] latencystats: do not use floating point

2024-05-29 Thread Stephen Hemminger
The cycle counts do not need to be stored as floating point. Instead keep track of latency in cycles, and convert to nanoseconds when read. Use scaled math with exponential Weighted Moving Average weight of .25 to avoid use of floating point for that. The average latency took too long to "warm up

[PATCH v6 4/8] latencystats: fix log messages

2024-05-29 Thread Stephen Hemminger
All messages that because of an error should be at log level NOTICE or above. Do not break log messages across lines. Reword message for the case where getting info about a port fails and it is skipped. Signed-off-by: Stephen Hemminger Acked-by: Tyler Retzlaff --- lib/latencystats/rte_latencyst

[PATCH v6 5/8] latencystats: update include files

2024-05-29 Thread Stephen Hemminger
Include what is used here. Signed-off-by: Stephen Hemminger --- lib/latencystats/rte_latencystats.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/lib/latencystats/rte_latencystats.c b/lib/latencystats/rte_latencystats.c index c0ac60134f..bd8fde2f0c 100

[PATCH v6 6/8] latencystats: enforce that unused callback function is NULL

2024-05-29 Thread Stephen Hemminger
ISO C does not allow casting function pointer to void *. Resolve by enforcing the reserved argument. The user_cb argument for rte_latencystats_init() was not implemented, and had to be NULL anyway. The log type is local to this function and therefore can be local to this file. Signed-off-by: Step

[PATCH v6 7/8] latencystats: add metric for number of samples

2024-05-29 Thread Stephen Hemminger
Keeping track of the number of samples is useful when doing debug and testing to make sure that samples are actually happening. Signed-off-by: Stephen Hemminger --- lib/latencystats/rte_latencystats.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/lib/l

[PATCH v6 8/8] test: update to latencystats tests

2024-05-29 Thread Stephen Hemminger
No need for loop and memset() here. Just use structure initialization. Remove unnecessary initializations. Look at the number of samples, min, max and average numbers to make sure they look correct. Forward for longer to make sure multiple samples are taken. Signed-off-by: Stephen Hemminger ---

[PATCH v10 00/20] Remove use of noninclusive term sanity

2024-05-29 Thread Stephen Hemminger
This is a subset of earlier larger set of changes to fix non inclusive terms in the DPDK. The term sanity-check is on the Tier 2 word list from the Inclusive Naming project. https://inclusivenaming.org/word-lists/tier-2/sanity-check/ Rationale This term might be derogatory to neurodive

[PATCH v10 01/20] mbuf: replace term sanity check

2024-05-29 Thread Stephen Hemminger
Replace rte_mbuf_sanity_check() with rte_mbuf_verify() to match the similar macro RTE_VERIFY() in rte_debug.h The term sanity check is on the Tier 2 list of words that should be replaced. Signed-off-by: Stephen Hemminger Acked-by: Andrew Rybchenko Acked-by: Morten Brørup --- app/test/test_mbu

[PATCH v10 02/20] eal: replace use of sanity check in comments and messages

2024-05-29 Thread Stephen Hemminger
Sanity check is on the Tier 2 non-inclusive list. Replace or remove it. Signed-off-by: Stephen Hemminger Acked-by: Anatoly Burakov --- lib/eal/common/eal_common_memory.c | 2 +- lib/eal/common/eal_common_proc.c | 3 ++- lib/eal/common/eal_common_trace.c | 2 +- lib/eal/common/eal_memcfg.h

[PATCH v10 03/20] test: replace use word sanity

2024-05-29 Thread Stephen Hemminger
The word "sanity" is on the not-allowed inclusive naming list. Replace the unnecessary usage in tests. Signed-off-by: Stephen Hemminger --- app/test/test_bitmap.c | 4 +-- app/test/test_bpf.c| 6 ++-- app/test/test_common.c | 2 +- app/test/test_distrib

[PATCH v10 04/20] examples: remove term sanity

2024-05-29 Thread Stephen Hemminger
Do not use non-inclusive terms. Signed-off-by: Stephen Hemminger --- examples/ipsec-secgw/event_helper.c | 2 +- examples/qos_sched/args.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ipsec-secgw/event_helper.c b/examples/ipsec-secgw/event_helper.c i

[PATCH v10 05/20] lib: replace use of sanity check in comments and messages

2024-05-29 Thread Stephen Hemminger
Sanity check is on the Tier 2 non-inclusive list. Replace or remove it. Signed-off-by: Stephen Hemminger --- lib/graph/graph.c | 2 +- lib/graph/graph_stats.c | 2 +- lib/graph/node.c| 2 +- lib/jobstats/rte_jobstats.c | 6 +++--- lib/metrics/rte_metrics.c | 2 +- lib

[PATCH v10 06/20] doc/eventdev_pipeline: remove sanity

2024-05-29 Thread Stephen Hemminger
The word sanity check is unnecessary here. Signed-off-by: Stephen Hemminger --- doc/guides/gpus/cuda.rst | 2 +- doc/guides/sample_app_ug/eventdev_pipeline.rst | 2 +- doc/guides/tools/testbbdev.rst | 8 3 files changed, 6 insertions(+), 6 deletions

[PATCH v10 07/20] net/ring: replace use of sanity

2024-05-29 Thread Stephen Hemminger
Don't use term sanity check Signed-off-by: Stephen Hemminger --- drivers/net/ring/rte_eth_ring.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index b16f5d55f2..1788e68cf3 100644 --- a/drivers/net/ring

[PATCH v10 08/20] net/fm10k, net/ixgbe: remove word sanity

2024-05-29 Thread Stephen Hemminger
Remove non-inclusive term sanity from these Intel drivers. Signed-off-by: Stephen Hemminger --- drivers/net/fm10k/fm10k_ethdev.c | 2 +- drivers/net/fm10k/fm10k_rxtx.c | 2 +- drivers/net/ixgbe/ixgbe_fdir.c | 2 +- drivers/net/ixgbe/ixgbe_ipsec.c | 2 +- drivers/net/ixgbe/ixgbe_rxtx.c | 2

[PATCH v10 09/20] net/mlx[45]: remove word sanity

2024-05-29 Thread Stephen Hemminger
The term "sanity" is on non-inclusive naming list. Remove it from the Nvidia drivers. Signed-off-by: Stephen Hemminger --- drivers/common/mlx5/linux/mlx5_common_os.c | 2 +- drivers/net/mlx4/mlx4.c| 2 +- drivers/net/mlx4/mlx4_flow.c | 6 +++--- drivers/net/mlx5

[PATCH v10 10/20] net/sfc: remove term "sanity check"

2024-05-29 Thread Stephen Hemminger
Remove term sanity check in comment. Signed-off-by: Stephen Hemminger Acked-by: Andrew Rybchenko --- drivers/net/sfc/sfc_dp_rx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sfc/sfc_dp_rx.h b/drivers/net/sfc/sfc_dp_rx.h index ed667c68d1..17ab10616b 100644 ---

[PATCH v10 11/20] net/ark: replace use of term sanity

2024-05-29 Thread Stephen Hemminger
Do not use non inclusive terms. Signed-off-by: Stephen Hemminger --- drivers/net/ark/ark_ethdev.c| 8 drivers/net/ark/ark_ethdev_rx.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ark/ark_ethdev.c b/drivers/net/ark/ark_ethdev.c index c029dc46b3..

[PATCH v10 12/20] net/bnxt: replace use of term sanity

2024-05-29 Thread Stephen Hemminger
Do not use non-inclusive terms. Signed-off-by: Stephen Hemminger --- drivers/net/bnxt/bnxt_hwrm.c | 2 +- drivers/net/bnxt/hsi_struct_def_dpdk.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 6ea7

[PATCH v10 13/20] net/bnx2x: remove reference to sanity

2024-05-29 Thread Stephen Hemminger
Replace "sanity check" Signed-off-by: Stephen Hemminger --- drivers/net/bnx2x/bnx2x.c | 2 +- drivers/net/bnx2x/bnx2x_stats.c | 8 drivers/net/bnx2x/ecore_sp.c| 2 +- drivers/net/bnx2x/elink.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drive

[PATCH v10 14/20] net/nfp: replace use of term sanity

2024-05-29 Thread Stephen Hemminger
Replace "sanity check" Signed-off-by: Stephen Hemminger --- drivers/net/nfp/nfp_net_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/nfp/nfp_net_flow.c b/drivers/net/nfp/nfp_net_flow.c index ea743eed73..2d443bbcfc 100644 --- a/drivers/net/nfp/nfp_net_flow.c

[PATCH v10 15/20] net/txgbe: replace term sanity

2024-05-29 Thread Stephen Hemminger
Don't use term sanity. Signed-off-by: Stephen Hemminger --- drivers/net/txgbe/txgbe_ipsec.c | 2 +- drivers/net/txgbe/txgbe_rxtx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/txgbe/txgbe_ipsec.c b/drivers/net/txgbe/txgbe_ipsec.c index f9f8108fb8..cadb0943c

[PATCH v10 16/20] net/cxgbe: remove use of term sanity

2024-05-29 Thread Stephen Hemminger
Remove non-inclusive terminolgy. Signed-off-by: Stephen Hemminger --- drivers/net/cxgbe/cxgbe_ethdev.c | 10 ++ drivers/net/cxgbe/cxgbevf_main.c | 4 ++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/net/cxgbe/cxgbe_ethdev.c b/drivers/net/cxgbe/cxgbe_ethdev.c

[PATCH v10 17/20] cnxk: replace term sanity

2024-05-29 Thread Stephen Hemminger
Do not use non-inclusive naming. Signed-off-by: Stephen Hemminger --- drivers/common/cnxk/roc_nix_tm_ops.c | 2 +- drivers/common/cnxk/roc_npa.c| 4 ++-- drivers/net/cnxk/cnxk_ethdev.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/common/cnxk/roc_

[PATCH v10 18/20] event/opdl: remove term sanity

2024-05-29 Thread Stephen Hemminger
Don't use non-inclusive term. Signed-off-by: Stephen Hemminger --- drivers/event/opdl/opdl_evdev.c | 2 +- drivers/event/opdl/opdl_evdev_init.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/event/opdl/opdl_evdev.c b/drivers/event/opdl/opdl_evdev.c index b34a

[PATCH v10 19/20] crypto/bcmfs: replace term sanity check

2024-05-29 Thread Stephen Hemminger
Do not use non-inclusive naming here. Signed-off-by: Stephen Hemminger --- drivers/crypto/bcmfs/hw/bcmfs4_rm.c | 6 +++--- drivers/crypto/bcmfs/hw/bcmfs5_rm.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/bcmfs/hw/bcmfs4_rm.c b/drivers/crypto/bcmfs/hw

[PATCH v10 20/20] drivers: remove use of term sanity check

2024-05-29 Thread Stephen Hemminger
Replace non-inclusive language with better comments. Covers multiple drivers Signed-off-by: Stephen Hemminger Acked-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/qbman_sys_decl.h | 2 +- drivers/common/cnxk/roc_npa.c | 2 +- drivers/common/dpaax/caamflib/desc.h | 2 +- driver

RE: [PATCH v12 2/6] mempool: add functions to get extra mempool info

2024-05-29 Thread Du, Frank
> -Original Message- > From: Paul Szczepanek > Sent: Thursday, May 30, 2024 12:18 AM > To: Morten Brørup ; dev@dpdk.org; Du, Frank > > Cc: n...@arm.com; Ferruh Yigit ; Andrew Rybchenko > ; Burakov, Anatoly > ; Loftus, Ciara > Subject: Re: [PATCH v12 2/6] mempool: add functions to get ext

[PATCH] net/mlx5: fix flow discover IPv6 traffic class support issue

2024-05-29 Thread Gavin Li
ipv6_tc_fallback will be checked in calling mlx5_flow_discover_ipv6_tc_support. It should be set "supported" before checking so that the workaround to use old value would not be used. The corrected result could be gotten only in this case. Fixes: edc80bbfcf54 ("net/mlx5: store IPv6 TC detection re