[DPDK/core Bug 1436] DPDK20.11.9 runs failure on intel atom cpu

2024-05-05 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=1436 Bug ID: 1436 Summary: DPDK20.11.9 runs failure on intel atom cpu Product: DPDK Version: 20.11 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: critical

Re: [PATCH v3] devtools: add .clang-format file

2024-05-05 Thread Stephen Hemminger
On Sun, 5 May 2024 22:42:57 +0300 Abdullah Ömer Yamaç wrote: > > Also, this looks wrong. The initialized arrays looked better before. > > > > > > -static const char *tuntap_types[ETH_TUNTAP_TYPE_MAX] = { > > - "UNKNOWN", "TUN", "TAP" > > -}; > > +static const char *tuntap_types[ETH_TUNTAP_

Re: [PATCH v3] devtools: add .clang-format file

2024-05-05 Thread Abdullah Ömer Yamaç
On Sun, May 5, 2024 at 7:21 PM Stephen Hemminger wrote: > On Sat, 4 May 2024 19:18:37 + > Abdullah Ömer Yamaç wrote: > > > clang-format is a tool to format C/C++/Objective-C code. It can be used > > to reformat code to match a given coding style, or to ensure that code > > adheres to a spec

Re: [PATCH v3] devtools: add .clang-format file

2024-05-05 Thread Abdullah Ömer Yamaç
On Sun, May 5, 2024 at 7:18 PM Stephen Hemminger wrote: > On Sat, 4 May 2024 19:18:37 + > Abdullah Ömer Yamaç wrote: > > > clang-format is a tool to format C/C++/Objective-C code. It can be used > > to reformat code to match a given coding style, or to ensure that code > > adheres to a spec

[PATCH v2] common/qat: add legacy algorithm option

2024-05-05 Thread Arkadiusz Kusztal
This commit adds legacy algorithms flag to the qat_device struct. This will allow handling this flag within the device itself, and not using the global variable. Signed-off-by: Arkadiusz Kusztal --- v2: - added session parameters handling drivers/common/qat/qat_common.h | 9 ++

Re: [PATCH v3] devtools: add .clang-format file

2024-05-05 Thread Stephen Hemminger
On Sat, 4 May 2024 19:18:37 + Abdullah Ömer Yamaç wrote: > clang-format is a tool to format C/C++/Objective-C code. It can be used > to reformat code to match a given coding style, or to ensure that code > adheres to a specific coding style. It helps to maintain a consistent > coding style a

Re: [PATCH v3] devtools: add .clang-format file

2024-05-05 Thread Stephen Hemminger
On Sat, 4 May 2024 19:18:37 + Abdullah Ömer Yamaç wrote: > clang-format is a tool to format C/C++/Objective-C code. It can be used > to reformat code to match a given coding style, or to ensure that code > adheres to a specific coding style. It helps to maintain a consistent > coding style a

Re: High packet capturing rate in DPDK enabled port

2024-05-05 Thread Stephen Hemminger
On Sun, 5 May 2024 13:09:42 +0600 Fuji Nafiul wrote: > I have a DPDK-enabled port (Linux server) that serves around 5,000-50,000 > concurrent calls, per packet size of 80 bytes to 200 bytes. so in peak > time, I require packet capture + file writing speed of around 1GByte/s or 8 > Gbit/sec (at le

Re: Need help with reducing VIRT memory

2024-05-05 Thread Dmitry Kozlyuk
2024-05-05 03:25 (UTC+), Lombardo, Ed: > Hi Dmitry, > I tried your settings tonight and the application VIRT memory is now 7.9G and > is in the ball park, you are amazing. > > #define RTE_MAX_MEMSEG_LISTS 2 > #define RTE_MAX_MEMSEG_PER_LIST 1024 > #define RTE_MAX_MEM_MB_PER_LIST 2048 > #defin

[RFC v7 6/6] eal: add unit tests for atomic bit access functions

2024-05-05 Thread Mattias Rönnblom
Extend bitops tests to cover the rte_bit_atomic_*() family of functions. RFC v4: * Add atomicity test for atomic bit flip. RFC v3: * Rename variable 'main' to make ICC happy. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by: Tyler Retzlaff --- app/test/test_bitops.c | 315 +

[RFC v7 5/6] eal: add atomic bit operations

2024-05-05 Thread Mattias Rönnblom
Add atomic bit test/set/clear/assign/flip and test-and-set/clear/assign/flip functions. All atomic bit functions allow (and indeed, require) the caller to specify a memory order. RFC v7: * Replace compare-exchange-based rte_bitset_atomic_test_and_*() and flip() with implementations that use t

[RFC v7 4/6] eal: add unit tests for exactly-once bit access functions

2024-05-05 Thread Mattias Rönnblom
Extend bitops tests to cover the rte_bit_once_*() family of functions. RFC v5: * Atomic bit op implementation moved from this patch to the proper patch in the series. (Morten Brørup) RFC v4: * Remove redundant continuations. Signed-off-by: Mattias Rönnblom Acked-by: Morten Brørup Acked-by

[RFC v7 3/6] eal: add exactly-once bit access functions

2024-05-05 Thread Mattias Rönnblom
Add test/set/clear/assign/flip functions which prevents certain compiler optimizations and guarantees that program-level memory loads and/or stores will actually occur. These functions are useful when interacting with memory-mapped hardware devices. The "once" family of functions does not promise

[RFC v7 2/6] eal: add unit tests for bit operations

2024-05-05 Thread Mattias Rönnblom
Extend bitops tests to cover the rte_bit_[test|set|clear|assign|flip]() functions. The tests are converted to use the test suite runner framework. RFC v6: * Test rte_bit_*test() usage through const pointers. RFC v4: * Remove redundant line continuations. Signed-off-by: Mattias Rönnblom Acked

[RFC v7 1/6] eal: extend bit manipulation functionality

2024-05-05 Thread Mattias Rönnblom
Add functionality to test and modify the value of individual bits in 32-bit or 64-bit words. These functions have no implications on memory ordering, atomicity and does not use volatile and thus does not prevent any compiler optimizations. RFC v6: * Have rte_bit_test() accept const-marked bitset

[RFC v7 0/6] Improve EAL bit operations API

2024-05-05 Thread Mattias Rönnblom
This patch set represent an attempt to improve and extend the RTE bitops API, in particular for functions that operate on individual bits. All new functionality is exposed to the user as generic selection macros, delegating the actual work to private (__-marked) static inline functions. Public fun

[RFC v5 5/6] service: use multi-word bitset to represent service flags

2024-05-05 Thread Mattias Rönnblom
Use a multi-word bitset to track which services are mapped to which lcores, allowing the RTE_SERVICE_NUM_MAX compile-time constant to be > 64. Replace array-of-bytes service-currently-active flags with a more compact multi-word bitset-based representation, reducing memory footprint somewhat. Sign

[RFC v5 6/6] event/dsw: optimize serving port logic

2024-05-05 Thread Mattias Rönnblom
To reduce flow migration overhead, replace the array-based representation of which set of ports are bound to a particular queue by a multi-word bitset. Signed-off-by: Mattias Rönnblom --- drivers/event/dsw/dsw_evdev.c | 19 +++ drivers/event/dsw/dsw_evdev.h | 3 ++- drivers/even

[RFC v5 1/6] eal: add bitset type

2024-05-05 Thread Mattias Rönnblom
Introduce a set of functions and macros that operate on sets of bits, kept in arrays of 64-bit words. RTE bitset is designed for bitsets which are larger than what fits in a single machine word (i.e., 64 bits). For very large bitsets, the API may be a more appropriate choice. Depends-on: series-

[RFC v5 2/6] eal: add bitset test suite

2024-05-05 Thread Mattias Rönnblom
Add test suite to exercise . RFC v5: * Parameterize tests to allow reuse across both atomic and non-atomic functions. RFC v4: * Fix signed char issue in test cases. (Stephen Hemminger) * Add test cases for logic operations. * Use the unit test suite runner helper. Signed-off-by: Mattias R

[RFC v5 4/6] eal: add unit tests for atomic bitset operations

2024-05-05 Thread Mattias Rönnblom
Extend bitset tests to cover the basic operation of the rte_bitset_atomic_*() family of functions. Signed-off-by: Mattias Rönnblom --- app/test/test_bitset.c | 48 ++ 1 file changed, 48 insertions(+) diff --git a/app/test/test_bitset.c b/app/test/test_bit

[RFC v5 3/6] eal: add atomic bitset functions

2024-05-05 Thread Mattias Rönnblom
Extend the bitset API with atomic versions of the most basic bitset operations. Signed-off-by: Mattias Rönnblom --- lib/eal/include/rte_bitset.h | 155 +++ 1 file changed, 155 insertions(+) diff --git a/lib/eal/include/rte_bitset.h b/lib/eal/include/rte_bitset.h

High packet capturing rate in DPDK enabled port

2024-05-05 Thread Fuji Nafiul
I have a DPDK-enabled port (Linux server) that serves around 5,000-50,000 concurrent calls, per packet size of 80 bytes to 200 bytes. so in peak time, I require packet capture + file writing speed of around 1GByte/s or 8 Gbit/sec (at least 0.5Gbyte/s is expected). dpdk official packet capture examp