RE: [PATCH 0/4] RFC samples converting VLA to alloca

2024-04-09 Thread Konstantin Ananyev
> > From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > > Sent: Monday, 8 April 2024 17.27 > > > > For next technboard meeting. > > > > On Sun, Apr 07, 2024 at 10:03:06AM -0700, Stephen Hemminger wrote: > > > On Sun, 7 Apr 2024 13:07:06 +0200 > > > Morten Brørup wrote: > > > > > > > >

[PATCH v3 0/5] vhost: FD manager improvements

2024-04-09 Thread Maxime Coquelin
This series aims at improving the Vhost FD manager. The fdset internals is hidden from its callers, the notification/synchronization is made systematic for every FD add/del operations and finally the code is reworked to make use of epoll insteal of poll which reduces the complexity (less locks in

[PATCH v3 1/5] vhost: rename polling mutex

2024-04-09 Thread Maxime Coquelin
This trivial patch fixes a typo in fd's manager polling mutex name. Reviewed-by: David Marchand Signed-off-by: Maxime Coquelin --- lib/vhost/fd_man.c | 8 lib/vhost/fd_man.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/vhost/fd_man.c b/lib/vhost/fd_man.c i

[PATCH v3 2/5] vhost: make use of FD manager init function

2024-04-09 Thread Maxime Coquelin
Instead of statically initialize the fdset, this patch converts VDUSE and Vhost-user to use fdset_init() function, which now also initialize the mutexes. This is preliminary rework to hide FDs manager pipe from its users. Signed-off-by: Maxime Coquelin --- lib/vhost/fd_man.c | 11 +-- l

[PATCH v3 3/5] vhost: hide synchronization within FD manager

2024-04-09 Thread Maxime Coquelin
This patch forces synchronization for all FDs additions or deletions in the FD set. With that, it is no more necessary for the user to know about the FD set pipe, so hide its initialization in the FD manager. Signed-off-by: Maxime Coquelin --- lib/vhost/fd_man.c | 180 ---

[PATCH v3 4/5] vhost: improve fdset initialization

2024-04-09 Thread Maxime Coquelin
This patch heavily reworks fdset initialization: - fdsets are now dynamically allocated by the FD manager - the event dispatcher is now created by the FD manager - struct fdset is now opaque to VDUSE and Vhost Signed-off-by: Maxime Coquelin --- lib/vhost/fd_man.c | 177 +++

[PATCH v3 5/5] vhost: manage FD with epoll

2024-04-09 Thread Maxime Coquelin
From: David Marchand Switch to epoll so that the concern over the poll() fd array is removed. Add a simple list of used entries and track the next free entry. epoll() is thread safe, we no more need a synchronization mechanism and so can remove the notification pipe. Signed-off-by: David Marcha

Re: [PATCH 1/6] dts: add parameters data structure

2024-04-09 Thread Juraj Linkeš
On Tue, Mar 26, 2024 at 8:04 PM Luca Vizzarro wrote: > > This commit introduces a new "params" module, which adds a new way > to manage command line parameters. The provided Params dataclass > is able to read the fields of its child class and produce a string > representation to supply to the comm

RE: [PATCH v2 3/8] mbuf: fix Tx checksum offload examples

2024-04-09 Thread Konstantin Ananyev
> > From: David Marchand [mailto:david.march...@redhat.com] > > Sent: Friday, 5 April 2024 16.46 > > > > Mandate use of rte_eth_tx_prepare() in the mbuf Tx checksum offload > > examples. > > I strongly disagree with this change! > > It will cause a huge performance degradation for shaping appl

RE: [PATCH v2 3/8] mbuf: fix Tx checksum offload examples

2024-04-09 Thread Morten Brørup
> From: Konstantin Ananyev [mailto:konstantin.anan...@huawei.com] > Sent: Tuesday, 9 April 2024 15.39 > > > > From: David Marchand [mailto:david.march...@redhat.com] > > > Sent: Friday, 5 April 2024 16.46 > > > > > > Mandate use of rte_eth_tx_prepare() in the mbuf Tx checksum offload > > > example

Re: [PATCH 2/6] dts: use Params for interactive shells

2024-04-09 Thread Juraj Linkeš
On Thu, Mar 28, 2024 at 5:48 PM Jeremy Spewock wrote: > > On Tue, Mar 26, 2024 at 3:04 PM Luca Vizzarro wrote: > > > > Make it so that interactive shells accept an implementation of `Params` > > for app arguments. Convert EalParameters to use `Params` instead. > > > > String command line paramete

Re: [PATCH 0/4] RFC samples converting VLA to alloca

2024-04-09 Thread Tyler Retzlaff
On Tue, Apr 09, 2024 at 08:28:48AM +, Konstantin Ananyev wrote: > > > > > From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > > > Sent: Monday, 8 April 2024 17.27 > > > > > > For next technboard meeting. > > > > > > On Sun, Apr 07, 2024 at 10:03:06AM -0700, Stephen Hemminger wrote: >

Re: [PATCH v2 1/3] dts: rework arguments framework

2024-04-09 Thread Luca Vizzarro
On 04/04/2024 10:25, Juraj Linkeš wrote: Judging from the code, this patch seems like a convoluted way to implement: 1. An association between an Argument and the corresponding environment variable, 2. A better way to add the env vars names to the help message of each argument as well as adding t

Re: [PATCH 1/6] dts: add parameters data structure

2024-04-09 Thread Luca Vizzarro
Thank you for your review Jeremy! On 28/03/2024 16:48, Jeremy Spewock wrote: I might add some kind of block comment here as a separator that delimits that metadata modifiers start here. Something like what is written in scapy.py which creates sections for XML-RPC method vs ones that are run by t

Re: [PATCH 1/6] dts: add parameters data structure

2024-04-09 Thread Luca Vizzarro
Thank you so much for your review Juraj! On 09/04/2024 13:10, Juraj Linkeš wrote: We shouldn't list what the patch does, but rather explain the choices made within. It seems to me the patch is here to give devs an API instead of them having to construct strings - explaining why this approach imp

Re: [PATCH 3/6] dts: add testpmd shell params

2024-04-09 Thread Juraj Linkeš
As Jeremy pointed out, going forward, this is likely to become bloated and moving it to params.py (for example) may be better. There's a lot of testpmd args here. I commented on the implementation of some of them. I didn't verify that the actual values match the docs or, god forbid, tested all of

Re: [PATCH] dts: Change hugepage runtime config to 2MB Exclusively

2024-04-09 Thread Nicholas Pratte
I will change the default hugepage total back to 256. Much of the justification for changing the default amount was based on guidelines in the DPDK documentation. In the system requirements section, an example is provided demonstrating how to allocate 2GB of 2MB hugepages. We used this reasoning wh

[PATCH v4 0/2] uuid: generator functions and unit test

2024-04-09 Thread Stephen Hemminger
While looking at using uuid's in some logging cases, discovered that the existing uuid support in EAL was missing some functions add in later versions of libuuid. Add functions to generate Uuid values, and add missing functional tests for uuid's. v4 - review comments and use stdatomic Stephen He

[PATCH v4 1/2] eal: add functions to generate uuid values

2024-04-09 Thread Stephen Hemminger
Useful to be able to generate uuid values for tests or for interaction with other subsystems as magic cookie. Naming and overall algorithm come from libuuid which is used by permission of original author. Signed-off-by: Stephen Hemminger --- lib/eal/common/eal_common_uuid.c | 56

[PATCH v4 2/2] test: add functional test for uuid

2024-04-09 Thread Stephen Hemminger
The uuid functions in EAL were not covered by existing functional tests. Signed-off-by: Stephen Hemminger --- app/test/meson.build | 1 + app/test/test_uuid.c | 138 +++ 2 files changed, 139 insertions(+) create mode 100644 app/test/test_uuid.c diff --

[PATCH v2] dts: Change hugepage runtime config to 2MB Exclusively

2024-04-09 Thread Nicholas Pratte
The previous implementation configures and allocates hugepage sizes based on a system default. This can lead to two problems: overallocation of hugepages (which may crash the remote host), and configuration of hugepage sizes that are not recommended during runtime. This new implementation allows on

Re: [PATCH 4/6] dts: use testpmd params for scatter test suite

2024-04-09 Thread Juraj Linkeš
On Tue, Mar 26, 2024 at 8:04 PM Luca Vizzarro wrote: > > Update the buffer scatter test suite to use TestPmdParameters > instead of the StrParams implementation. > > Signed-off-by: Luca Vizzarro > Reviewed-by: Jack Bond-Preston > Reviewed-by: Honnappa Nagarahalli > --- > dts/tests/TestSuite_pm

RE: [PATCH v2 34/45] event/dlb2: use rte stdatomic API

2024-04-09 Thread Sevincer, Abdullah
>+uint32_t *credit_pool[DLB2_NUM_QUEUE_TYPES]; /* use __atomic builtins */ Spell check complains here you can add a space after the '*' if you don’t want that complaint. (e.g. uint32_t * credit_pool). > case nb_events_limit: > return dlb2->new_event_limit; > case infl

Re: [PATCH v3 2/5] vhost: make use of FD manager init function

2024-04-09 Thread Maxime Coquelin
On 4/9/24 18:38, Stephen Hemminger wrote: On Tue, 9 Apr 2024 13:48:42 +0200 Maxime Coquelin wrote: -void +int fdset_init(struct fdset *pfdset) { int i; if (pfdset == NULL) - return; + return -1; This test is unnecessary. The function is not

Re: [PATCH 5/6] dts: add statefulness to InteractiveShell

2024-04-09 Thread Juraj Linkeš
I have a general question. What are these changes for? Do you anticipate us needing this in the future? Wouldn't it be better to add it only when we need it? On Thu, Mar 28, 2024 at 5:48 PM Jeremy Spewock wrote: > > On Tue, Mar 26, 2024 at 3:04 PM Luca Vizzarro wrote: > > > diff --git a/dts/fra