[PATCH v2] net/iavf: fix checksum offloading

2023-08-22 Thread David Marchand
l2_len and l3_len fields are related to Tx offloading features. It is undefined in the DPDK API what those fields may contain if an application did not request a Tx offload. Skip reading them if no Tx offloads has been requested. Fixes: 1e728b01120c ("net/iavf: rework Tx path") Cc: sta...@dpdk.o

RE: [PATCH 3/3] test/event_crypto_adapter: fix crypto null dev creation

2023-08-22 Thread Gujjar, Abhinandan S
Hi Anoob, > -Original Message- > From: Anoob Joseph > Sent: Wednesday, August 23, 2023 11:17 AM > To: Gujjar, Abhinandan S > Cc: Jerin Jacob Kollanukkaran ; Shijith Thotton > ; dev@dpdk.org; Aakash Sasidharan > ; Akhil Goyal > Subject: RE: [PATCH 3/3] test/event_crypto_adapter: fix cryp

[PATCH v1 2/2] net/cnxk: update sa to port map

2023-08-22 Thread Ankur Dwivedi
The sa to port map is updated when the sa is created. In this patch the portid field is also added to macsec event callback function. Signed-off-by: Ankur Dwivedi --- drivers/net/cnxk/cnxk_ethdev_mcs.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/net

[PATCH v1 1/2] common/cnxk: add sa to port mapping

2023-08-22 Thread Ankur Dwivedi
Adds sa to port mapping in roc mcs. This helps to propagate the tx and rx pn threshold events to the correct ethernet device. Signed-off-by: Ankur Dwivedi --- drivers/common/cnxk/roc_mcs.c | 22 +++--- drivers/common/cnxk/roc_mcs.h | 8 ++-- drivers/common/cn

[PATCH v1 0/2] support of MACsec PN threshold events on multiple ports

2023-08-22 Thread Ankur Dwivedi
This patch series adds support for packet number threshold events to be received on the respective ethernet port. For this a sa to port mapping is created during sa creation. When the pn threshold event is received then the check for port id is made to receive the event on the correct port. Ankur

RE: [PATCH 3/3] test/event_crypto_adapter: fix crypto null dev creation

2023-08-22 Thread Anoob Joseph
Hi Abhinandan, Please see inline. Thanks, Anoob > -Original Message- > From: Gujjar, Abhinandan S > Sent: Wednesday, August 23, 2023 10:19 AM > To: Aakash Sasidharan ; Akhil Goyal > > Cc: Jerin Jacob Kollanukkaran ; Shijith Thotton > ; Anoob Joseph ; > dev@dpdk.org > Subject: [EXT] RE:

RE: [PATCH v4] net/iavf: fix VLAN offload strip flag inconsistency

2023-08-22 Thread Zhang, Qi Z
> -Original Message- > From: Wenjing Qiao > Sent: Monday, August 21, 2023 5:52 PM > To: Wu, Jingjing ; Xing, Beilei > Cc: dev@dpdk.org; Huang, ZhiminX ; Qiao, Wenjing > ; sta...@dpdk.org > Subject: [PATCH v4] net/iavf: fix VLAN offload strip flag inconsistency > > For i40e kernel driv

RE: [PATCH 3/3] test/event_crypto_adapter: fix crypto null dev creation

2023-08-22 Thread Gujjar, Abhinandan S
> -Original Message- > From: Aakash Sasidharan > Sent: Tuesday, August 22, 2023 6:47 PM > To: Gujjar, Abhinandan S ; Akhil Goyal > > Cc: jer...@marvell.com; sthot...@marvell.com; ano...@marvell.com; > dev@dpdk.org; asasidha...@marvell.com > Subject: [PATCH 3/3] test/event_crypto_adapte

RE: [PATCH 2/3] test/event_crypto_adapter: skip unsupported test

2023-08-22 Thread Gujjar, Abhinandan S
> -Original Message- > From: Aakash Sasidharan > Sent: Tuesday, August 22, 2023 6:47 PM > To: Gujjar, Abhinandan S > Cc: jer...@marvell.com; sthot...@marvell.com; ano...@marvell.com; > dev@dpdk.org; asasidha...@marvell.com > Subject: [PATCH 2/3] test/event_crypto_adapter: skip unsuppor

RE: [PATCH 2/3] test/event_crypto_adapter: skip unsupported test

2023-08-22 Thread Anoob Joseph
> > Skip the test if rte_event_crypto_adapter_caps_get() > returns -ENOTSUP. > > Signed-off-by: Aakash Sasidharan > --- > app/test/test_event_crypto_adapter.c | 17 + > 1 file changed, 17 insertions(+) > Acked-by: Anoob Joseph

RE: [PATCH 3/3] test/event_crypto_adapter: fix crypto null dev creation

2023-08-22 Thread Anoob Joseph
> Create crypto null device only if no other crypto devices were found. > > Fixes: 3c2c535ecfc0 ("test: add event crypto adapter auto-test") > Cc: abhinandan.guj...@intel.com > > Signed-off-by: Aakash Sasidharan > --- > app/test/test_event_crypto_adapter.c | 7 +++ > 1 file changed, 3 inser

RE: [PATCH 1/3] event/cnxk: fix return values for capability API

2023-08-22 Thread Anoob Joseph
> > crypto adapter capability now returns -ENOTSUP instead of -EINVAL when [Anoob] Better to start with caps (crypto -> Crypto). May be reword to, When event_cnxk or crypto_cnxk PMDs are not available, return -ENOTSUP instead of -EINVAL. > event_cnxk or crypto_cnxk device is not available. Thi

Tech Board Meeting - Tomorrow, Wed., Aug, 23, 2023 @ 8am Pacific/11am Eastern/1500h UTC

2023-08-22 Thread Nathan Southern
Good evening, Tomorrow is our biweekly Tech Board Meeting. A read-only agenda can be found here: https://annuel.framapad.org/p/r.0c3cc4d1e011214183872a98f6b5c7db And our login link: https://meet.jit.si/dpdk See you soon Thanks, Nathan Nathan C. Southern, Project Coordinator Data Plane Deve

Re: [PATCH v11 2/4] net/i40e: implement mbufs recycle mode

2023-08-22 Thread Konstantin Ananyev
22/08/2023 08:27, Feifei Wang пишет: Define specific function implementation for i40e driver. Currently, mbufs recycle mode can support 128bit vector path and avx2 path. And can be enabled both in fast free and no fast free mode. Suggested-by: Honnappa Nagarahalli Signed-off-by: Feifei Wang Re

Re: [PATCH v11 1/4] ethdev: add API for mbufs recycle mode

2023-08-22 Thread Konstantin Ananyev
Hi Feifei, Add 'rte_eth_recycle_rx_queue_info_get' and 'rte_eth_recycle_mbufs' APIs to recycle used mbufs from a transmit queue of an Ethernet device, and move these mbufs into a mbuf ring for a receive queue of an Ethernet device. This can bypass mempool 'put/get' operations hence saving CPU cy

Re: [PATCH v5 3/3] power: amd power monitor support

2023-08-22 Thread Konstantin Ananyev
18/08/2023 14:48, Bruce Richardson пишет: On Fri, Aug 18, 2023 at 02:25:14PM +0100, Ferruh Yigit wrote: On 8/17/2023 3:18 PM, Konstantin Ananyev wrote: Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding. On We

Re: [dpdk-dev] [RFC v2 7/8] test/virtual_pmd: support queue start/stop

2023-08-22 Thread Stephen Hemminger
On Fri, 16 Jul 2021 15:27:59 +0100 Ferruh Yigit wrote: > @@ -271,6 +319,10 @@ static const struct eth_dev_ops > virtual_ethdev_default_dev_ops = { > .dev_stop = virtual_ethdev_stop, > .dev_close = virtual_ethdev_close, > .dev_infos_get = virtual_ethdev_info_get, > + .rx_que

Re: [dpdk-dev] [RFC v2 8/8] test: support ethdev

2023-08-22 Thread Stephen Hemminger
On Fri, 16 Jul 2021 15:28:00 +0100 Ferruh Yigit wrote: > +/** > + * Device flags set on ``eth_dev->data->dev_flags`` by drivers. > + * These values can be received via ``rte_eth_dev_info_get()`` > + */ Already done in later patches. > @@ -3036,7 +3050,7 @@ int rte_eth_macaddr_get(uint16_t port_i

Re: [dpdk-dev] [RFC v2 2/8] test/virtual_pmd: enable getting device operations

2023-08-22 Thread Stephen Hemminger
Looking at this old patch. On Fri, 16 Jul 2021 15:27:54 +0100 Ferruh Yigit wrote: > diff --git a/app/test/virtual_pmd.c b/app/test/virtual_pmd.c > index 6098e633f35a..17f28c5a304c 100644 > --- a/app/test/virtual_pmd.c > +++ b/app/test/virtual_pmd.c > @@ -355,8 +355,8 @@ virtual_ethdev_rx_burst_s

[PATCH v6 5/6] bpf: adapt for EAL optional atomics API changes

2023-08-22 Thread Tyler Retzlaff
Adapt bpf for EAL optional atomics API changes Signed-off-by: Tyler Retzlaff Reviewed-by: Morten Brørup Acked-by: Konstantin Ananyev --- lib/bpf/bpf_pkt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bpf/bpf_pkt.c b/lib/bpf/bpf_pkt.c index ffd2db7..7a8e4a6 1006

[PATCH v6 6/6] devtools: forbid new direct use of GCC atomic builtins

2023-08-22 Thread Tyler Retzlaff
Refrain from using compiler __atomic_xxx builtins DPDK now requires the use of rte_atomic__explicit macros when operating on DPDK atomic variables. Signed-off-by: Tyler Retzlaff Suggested-by: Morten Brørup Acked-by: Bruce Richardson Acked-by: Morten Brørup Acked-by: Konstantin Ananyev --- de

[PATCH v6 2/6] eal: adapt EAL to present rte optional atomics API

2023-08-22 Thread Tyler Retzlaff
Adapt the EAL public headers to use rte optional atomics API instead of directly using and exposing toolchain specific atomic builtin intrinsics. Signed-off-by: Tyler Retzlaff Reviewed-by: Morten Brørup Acked-by: Konstantin Ananyev --- app/test/test_mcslock.c| 6 ++-- lib/eal/

[PATCH v6 4/6] distributor: adapt for EAL optional atomics API changes

2023-08-22 Thread Tyler Retzlaff
Adapt distributor for EAL optional atomics API changes Signed-off-by: Tyler Retzlaff Reviewed-by: Morten Brørup Acked-by: Konstantin Ananyev --- lib/distributor/distributor_private.h| 2 +- lib/distributor/rte_distributor_single.c | 44 2 files changed, 23

[PATCH v6 3/6] eal: add rte atomic qualifier with casts

2023-08-22 Thread Tyler Retzlaff
Introduce __rte_atomic qualifying casts in rte_optional atomics inline functions to prevent cascading the need to pass __rte_atomic qualified arguments. Warning, this is really implementation dependent and being done temporarily to avoid having to convert more of the libraries and tests in DPDK in

[PATCH v6 0/6] rte atomics API for optional stdatomic

2023-08-22 Thread Tyler Retzlaff
This series introduces API additions prefixed in the rte namespace that allow the optional use of stdatomics.h from C11 using enable_stdatomics=true for targets where enable_stdatomics=false no functional change is intended. Be aware this does not contain all changes to use stdatomics across the D

[PATCH v6 1/6] eal: provide rte stdatomics optional atomics API

2023-08-22 Thread Tyler Retzlaff
Provide API for atomic operations in the rte namespace that may optionally be configured to use C11 atomics with meson option enable_stdatomics=true Signed-off-by: Tyler Retzlaff Reviewed-by: Morten Brørup Acked-by: Konstantin Ananyev --- config/meson.build | 1 + doc/api

Re: [PATCH 06/14] pci: define some command constants

2023-08-22 Thread Adam Hassick
Recheck-request: iol-sample-apps-testing, This email is a test of the community lab's retesting system, please ignore. Testing superseded reply on a patch. On Thu, Aug 3, 2023 at 3:51 AM David Marchand wrote: > Define some PCI command constants and use them in existing drivers. > > Signed-off-b

Re: [PATCH v4 6/6] devtools: forbid new direct use of GCC atomic builtins

2023-08-22 Thread Tyler Retzlaff
On Fri, Aug 18, 2023 at 09:13:29AM +0200, Morten Brørup wrote: > > From: Tyler Retzlaff [mailto:roret...@linux.microsoft.com] > > Sent: Thursday, 17 August 2023 21.14 > > > > On Thu, Aug 17, 2023 at 01:57:01PM +0200, Morten Brørup wrote: > > > > From: Tyler Retzlaff [mailto:roret...@linux.microsof

[PATCH] test/security: fix buffer leaks in error path

2023-08-22 Thread Akhil Goyal
In case of failure of a test in macsec autotest, the buffers were not getting cleaned. Added appropriate code to clean the buffers. Fixes: 993ea577a006 ("test/security: add inline MACsec cases") Cc: sta...@dpdk.org Signed-off-by: Akhil Goyal --- app/test/test_security_inline_macsec.c | 70 +

[PATCH] common/cnxk: explicitly clear aura bp ena on cleanup

2023-08-22 Thread Ashwin Sekhar T K
As done in FLR, similar to CQ disable, in process of aura disable we needs explicitly clear BP_ENA in order to deassert backpressure if it was earlier asserted. Signed-off-by: Nithin Dabilpuram Signed-off-by: Ashwin Sekhar T K --- drivers/common/cnxk/roc_npa.c | 2 ++ 1 file changed, 2 insertio

[PATCH] mempool/cnxk: support CNF10KA SoC

2023-08-22 Thread Ashwin Sekhar T K
From: Sibaranjan Pattnayak Support for CNF10KA SoC by adding its PCI device ID. Signed-off-by: Sibaranjan Pattnayak Signed-off-by: Ashwin Sekhar T K --- drivers/mempool/cnxk/cnxk_mempool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mempool/cnxk/cnxk_mempool.c b/drivers/mem

[PATCH 3/3] mempool/cnxk: fix alloc from non-EAL pthreads

2023-08-22 Thread Ashwin Sekhar T K
For non-EAL pthreads, rte_lcore_id() will not be valid. So, batch allocation cannot be used as we won't have a dedicated alloc buffer for the thread. So, fallback to bulk alloc in such cases. Fixes: 91531e63f43b ("mempool/cnxk: add cn10k batch dequeue") Signed-off-by: Ashwin Sekhar T K --- driv

[PATCH 2/3] mempool/cnxk: fix free from non-EAL pthreads

2023-08-22 Thread Ashwin Sekhar T K
From: Harman Kalra For non-EAL pthreads, rte_lcore_id() will not be valid. So, batch free cannot be used as those threads won't have dedicated lmtlines. So, fallback to bulk alloc in such cases. Fixes: ecbc731a2286 ("mempool/cnxk: add cn10k batch enqueue") Signed-off-by: Harman Kalra Signed-of

[PATCH 1/3] mempool/cnxk: limit usage of async allocs

2023-08-22 Thread Ashwin Sekhar T K
Currently mempool_cnxk driver uses asynchronous allocation for all pools. This asynchronous allocation can result in local caching of additional 512 objects on a single core even when cache is disabled. This will eventually lead to starvation on pools where the number of objects is very less. This

[PATCH] mempool/cnxk: limit usage of async allocs

2023-08-22 Thread Ashwin Sekhar T K
Currently mempool_cnxk driver uses asynchronous allocation for all pools. This asynchronous allocation can result in local caching of additional 512 objects on a single core even when cache is disabled. This will eventually lead to starvation on pools where the number of objects is very less. This

Re: [PATCH 00/14] Cleanup PCI(e) drivers

2023-08-22 Thread Adam Hassick
Recheck-request: iol-sample-apps-testing, This is a test email of the retesting framework, please ignore. On Thu, Aug 3, 2023 at 3:50 AM David Marchand wrote: > Rather than rely on Linux headers to find some PCI(e) standard constants > or reinvent the same PCI capability helper, this series com

RE: [RFC] lib/st_ring: add single thread ring

2023-08-22 Thread Honnappa Nagarahalli
> >> Subject: Re: [RFC] lib/st_ring: add single thread ring > >> > >> On 2023-08-21 08:04, Honnappa Nagarahalli wrote: > >>> Add a single thread safe and multi-thread unsafe ring data structure. > >> > >> One must have set the bar very low, if one needs to specify that an > >> API is single-threa

Re: [PATCH 00/14] Cleanup PCI(e) drivers

2023-08-22 Thread Adam Hassick
Recheck-request: iol-sample-apps-testing This is a test email of the retesting framework, please ignore. Testing the behavior of replying to a superseded patch. On Thu, Aug 3, 2023 at 3:50 AM David Marchand wrote: > Rather than rely on Linux headers to find some PCI(e) standard constants > or r

Re: [PATCH] net/tap: fix L4 checksum

2023-08-22 Thread David Marchand
On Tue, Aug 22, 2023 at 10:55 AM Olivier Matz wrote: > > Hi David, > > On Tue, Aug 22, 2023 at 09:32:44AM +0200, David Marchand wrote: > > The L4 checksum offloading API does not require l4_len to be set. > > Make the driver discover the L4 headers size by itself. > > > > Fixes: 6546e76056e3 ("net

Re: [PATCH v2 00/15] Cleanup PCI(e) drivers

2023-08-22 Thread Patrick Robb
Recheck-request: iol-unit-arm64-testing, iol-broadcom-Performance, iol-compile-amd64-testing, iol-sample-apps-testing This email is just a test of the new email based retesting request framework.

[PATCH] app/testpmd: add support for MPLS TTL

2023-08-22 Thread Michael Baum
Add support for matching "ttl" field in MPLS item. Signed-off-by: Michael Baum --- app/test-pmd/cmdline_flow.c | 9 + 1 file changed, 9 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 94827bcc4a..95c0a19beb 100644 --- a/app/test-pmd/cmdline_flo

RE: [PATCH v1 0/2] ethdev: add random item support

2023-08-22 Thread Michael Baum
Hi Ivan, On Tue, 22 Aug 2023, Ivan Malov wrote: > > Hi Michael, > > Very interesting proposal. However, could you please provide a use case > example for this feature I can think about 2 different use cases: 1. Sampling - when application wants to sample certain percentage of the flow, it c

[PATCH 3/3] test/event_crypto_adapter: fix crypto null dev creation

2023-08-22 Thread Aakash Sasidharan
Create crypto null device only if no other crypto devices were found. Fixes: 3c2c535ecfc0 ("test: add event crypto adapter auto-test") Cc: abhinandan.guj...@intel.com Signed-off-by: Aakash Sasidharan --- app/test/test_event_crypto_adapter.c | 7 +++ 1 file changed, 3 insertions(+), 4 deleti

[PATCH 2/3] test/event_crypto_adapter: skip unsupported test

2023-08-22 Thread Aakash Sasidharan
Skip the test if rte_event_crypto_adapter_caps_get() returns -ENOTSUP. Signed-off-by: Aakash Sasidharan --- app/test/test_event_crypto_adapter.c | 17 + 1 file changed, 17 insertions(+) diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c ind

[PATCH 1/3] event/cnxk: fix return values for capability API

2023-08-22 Thread Aakash Sasidharan
crypto adapter capability now returns -ENOTSUP instead of -EINVAL when event_cnxk or crypto_cnxk device is not available. This would allow unit test to be skipped when the devices are not available. Fixes: 19f81cb59cb4 ("event/cnxk: add crypto adapter operations") Signed-off-by: Aakash Sasidharan

[PATCH v2] event/cnxk: add get remaining ticks routine

2023-08-22 Thread pbhagavatula
From: Pavan Nikhilesh Add support to get the remaining ticks to expire for a given event timer. Signed-off-by: Pavan Nikhilesh --- doc/guides/rel_notes/release_23_11.rst | 5 drivers/event/cnxk/cnxk_tim_evdev.c| 1 + drivers/event/cnxk/cnxk_tim_evdev.h| 3 +++ drivers/event/cnx

Re: [PATCH v1 0/2] ethdev: add random item support

2023-08-22 Thread Ivan Malov
Hi Michael, Very interesting proposal. However, could you please provide a use case example for this feature and also provide an example of where such value could come from, theoretically. Thank you. On Tue, 22 Aug 2023, Michael Baum wrote: Add support for matching random value using new "rte

Re: [PATCH v2 1/3] eventdev: introduce event dispatcher

2023-08-22 Thread Jerin Jacob
On Tue, Aug 22, 2023 at 2:12 PM Mattias Rönnblom wrote: > > On 2023-08-18 08:09, Jerin Jacob wrote: > > On Fri, Jun 16, 2023 at 1:17 PM Mattias Rönnblom > > wrote: > >> > > > > Hi Mattais, > > > > Finally, got some time to review this series, and thanks for excellent > > documentation. > > > > I

[PATCH 1/2] net/mlx5/hws: add support for random number match

2023-08-22 Thread Michael Baum
From: Erez Shitrit The HW adds a random number per each hash, this value can be used for statistic calculation over the packets, for example by setting one bit in the mask of that filed we will get half of the traffic in the flow, and so on with the rest of the mask. Signed-off-by: Erez Shitrit

[PATCH 2/2] net/mlx5: add random item support

2023-08-22 Thread Michael Baum
Add support for random item in HWS mode. Signed-off-by: Michael Baum --- doc/guides/nics/features/mlx5.ini | 1 + doc/guides/nics/mlx5.rst | 10 +- doc/guides/rel_notes/release_23_11.rst | 4 drivers/net/mlx5/mlx5_flow_dv.c| 5 + drivers/net/mlx5/ml

[PATCH 0/2] net/mlx5: add random item support

2023-08-22 Thread Michael Baum
Add support for matching random value using the "rte_flow_item_random" structure. Depends-on: series-29307 ("ethdev: add random item support") Erez Shitrit (1): net/mlx5/hws: add support for random number match Michael Baum (1): net/mlx5: add random item support doc/guides/nics/features/ml

Minutes of Technical Board Meeting, 2023-August -9

2023-08-22 Thread Jerin Jacob Kollanukkaran
Minutes of Technical Board Meeting, 2023-August -9 Members Attending - -Aaron -Bruce -Hemant -Honnappa -Jerin (Chair) -Konstantin -Stephen -Thomas -Tyler -Morten NOTE: The technical board meetings every second Wednesday at https://meet.jit.si/DPDK at 3 pm UTC. Meetings are publ

RE: [PATCH] net/iavf: fix checksum offloading

2023-08-22 Thread Zhang, Qi Z
> -Original Message- > From: Zhang, Qi Z > Sent: Tuesday, August 22, 2023 3:59 PM > To: 'David Marchand' > Cc: dev@dpdk.org; echau...@redhat.com; m...@redhat.com; > sta...@dpdk.org; Wu, Jingjing ; Xing, Beilei > ; Doherty, Declan ; Sinha, > Abhijit ; Nicolau, Radu > Subject: RE: [PATCH]

[PATCH v1 2/2] app/testpmd: add random item support

2023-08-22 Thread Michael Baum
Add support for random item, usage example: pattern random spec value 0x1 mask value 0x3 / eth / end Flow rule with above pattern matching 25% of the traffic, it hits only when random value suffix is "01" and miss the others ("00", "10", "11"). Signed-off-by: Michael Baum --- app/test-

[PATCH v1 1/2] ethdev: add random item support

2023-08-22 Thread Michael Baum
Add support for a new item type "RTE_FLOW_ITEM_TYPE_RANDOM". This item enables to match on some random value as a part of flow rule. Signed-off-by: Michael Baum --- doc/guides/nics/features/default.ini | 1 + doc/guides/prog_guide/rte_flow.rst | 11 + doc/guides/rel_notes/release_

[PATCH v1 0/2] ethdev: add random item support

2023-08-22 Thread Michael Baum
Add support for matching random value using new "rte_flow_item_random" structure. This random value is not based on the packet data/headers. Application shouldn't assume that this value is kept during the life time of the packet. Michael Baum (2): ethdev: add random item support app/testpmd: a

Re: [PATCH] net/tap: fix L4 checksum

2023-08-22 Thread Olivier Matz
Hi David, On Tue, Aug 22, 2023 at 09:32:44AM +0200, David Marchand wrote: > The L4 checksum offloading API does not require l4_len to be set. > Make the driver discover the L4 headers size by itself. > > Fixes: 6546e76056e3 ("net/tap: calculate checksums of multi segs packets") > Cc: sta...@dpdk.

Re: [PATCH v2 1/3] eventdev: introduce event dispatcher

2023-08-22 Thread Mattias Rönnblom
On 2023-08-18 08:09, Jerin Jacob wrote: On Fri, Jun 16, 2023 at 1:17 PM Mattias Rönnblom wrote: The purpose of the event dispatcher is to help reduce coupling in an Eventdev-based DPDK application. In addition, the event dispatcher also provides a convenient and flexible way for the applicati

Re: [PATCH] app: fix silent enqueue fail in test_mbuf test_refcnt_iter

2023-08-22 Thread Olivier Matz
Hello Julien, On Tue, Aug 22, 2023 at 08:34:53AM +0200, jhascoet wrote: > From: Julien Hascoet > > In case of ring full state, we retry the enqueue > operation in order to avoid mbuf loss. > > Fixes: af75078fece ("first public release") > > Signed-off-by: Julien Hascoet > --- > app/test/test

[PATCH] app: fix silent enqueue fail in test_mbuf test_refcnt_iter

2023-08-22 Thread jhascoet
From: Julien Hascoet In case of ring full state, we retry the enqueue operation in order to avoid mbuf loss. Fixes: af75078fece ("first public release") Signed-off-by: Julien Hascoet --- app/test/test_mbuf.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/

DPDK KNI problem

2023-08-22 Thread chetan bhasin
Hello DPDK mentors, We are facing an issue, KNI core stuck after 4-5 days of traffic. Can anybody guide us on this? We have set isolcpu, rcu_nocbs in grub for given cores. Aug 22 01:38:29 kernel: INFO: rcu_sched self-detected stall on CPU { 2} (t=60001 jiffies g=426362199 c=426362198 q=150932)

Re: [RFC] lib/st_ring: add single thread ring

2023-08-22 Thread Mattias Rönnblom
On 2023-08-22 07:43, Honnappa Nagarahalli wrote: -Original Message- From: Mattias Rönnblom Sent: Monday, August 21, 2023 4:14 PM To: Honnappa Nagarahalli ; jack...@nvidia.com; konstantin.v.anan...@yandex.ru Cc: dev@dpdk.org; Ruifeng Wang ; Aditya Ambadipudi ; Wathsala Wathawana Vithan

RE: [PATCH] net/iavf: fix checksum offloading

2023-08-22 Thread Zhang, Qi Z
> -Original Message- > From: David Marchand > Sent: Tuesday, August 22, 2023 3:40 PM > To: Zhang, Qi Z > Cc: dev@dpdk.org; echau...@redhat.com; m...@redhat.com; > sta...@dpdk.org; Wu, Jingjing ; Xing, Beilei > ; Doherty, Declan ; Sinha, > Abhijit ; Nicolau, Radu > Subject: Re: [PATCH]

[PATCH v1] config/arm: correct cpu arch for cross build

2023-08-22 Thread Joyce Kong
The cn10k cross build file sets cpu to 'armv8.6-a' while N2 is armv8.5-a arch. The cpu field in the cross file doesn't take effect as config/arm/meson.build controls machine_args for march. Then correct the value in arm cross files to 'auto'. Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang -

Re: [PATCH] net/iavf: fix checksum offloading

2023-08-22 Thread David Marchand
On Tue, Aug 22, 2023 at 9:33 AM Zhang, Qi Z wrote: > > If the driver reads l2_len or l3_len, this is an undefined behavior: > > for example, OVS might have been using l2_len or l3_len for its internal > > uses > > (though I agree it would be risky for an application to do so). > > > > We probably

RE: [PATCH] net/iavf: fix checksum offloading

2023-08-22 Thread Zhang, Qi Z
> -Original Message- > From: David Marchand > Sent: Tuesday, August 22, 2023 2:12 PM > To: Zhang, Qi Z > Cc: dev@dpdk.org; echau...@redhat.com; m...@redhat.com; > sta...@dpdk.org; Wu, Jingjing ; Xing, Beilei > ; Doherty, Declan ; Sinha, > Abhijit ; Nicolau, Radu > Subject: Re: [PATCH]

RE: [PATCH v11 0/4] Recycle mbufs from Tx queue into Rx queue

2023-08-22 Thread Feifei Wang
Hi, Ferruh Would you please give some comments on these patches? If no comments, would mbufs recycle mode be merged in dpdk-next branch? Thanks very much. Best Regards Feifei > -Original Message- > From: Feifei Wang > Sent: Tuesday, August 22, 2023 3:27 PM > Cc: dev@dpdk.org; nd ; Feif

[PATCH] net/tap: fix L4 checksum

2023-08-22 Thread David Marchand
The L4 checksum offloading API does not require l4_len to be set. Make the driver discover the L4 headers size by itself. Fixes: 6546e76056e3 ("net/tap: calculate checksums of multi segs packets") Cc: sta...@dpdk.org Signed-off-by: David Marchand Tested-by: Ales Musil --- .mailmap

[PATCH v11 3/4] net/ixgbe: implement mbufs recycle mode

2023-08-22 Thread Feifei Wang
Define specific function implementation for ixgbe driver. Currently, recycle buffer mode can support 128bit vector path. And can be enabled both in fast free and no fast free mode. Suggested-by: Honnappa Nagarahalli Signed-off-by: Feifei Wang Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Naga

[PATCH v11 4/4] app/testpmd: add recycle mbufs engine

2023-08-22 Thread Feifei Wang
Add recycle mbufs engine for testpmd. This engine forward pkts with I/O forward mode. But enable mbufs recycle feature to recycle used txq mbufs for rxq mbuf ring, which can bypass mempool path and save CPU cycles. Suggested-by: Jerin Jacob Signed-off-by: Feifei Wang Reviewed-by: Ruifeng Wang -

[PATCH v11 2/4] net/i40e: implement mbufs recycle mode

2023-08-22 Thread Feifei Wang
Define specific function implementation for i40e driver. Currently, mbufs recycle mode can support 128bit vector path and avx2 path. And can be enabled both in fast free and no fast free mode. Suggested-by: Honnappa Nagarahalli Signed-off-by: Feifei Wang Reviewed-by: Ruifeng Wang Reviewed-by: H

[PATCH v11 1/4] ethdev: add API for mbufs recycle mode

2023-08-22 Thread Feifei Wang
Add 'rte_eth_recycle_rx_queue_info_get' and 'rte_eth_recycle_mbufs' APIs to recycle used mbufs from a transmit queue of an Ethernet device, and move these mbufs into a mbuf ring for a receive queue of an Ethernet device. This can bypass mempool 'put/get' operations hence saving CPU cycles. For eac

[PATCH v11 0/4] Recycle mbufs from Tx queue into Rx queue

2023-08-22 Thread Feifei Wang
Currently, the transmit side frees the buffers into the lcore cache and the receive side allocates buffers from the lcore cache. The transmit side typically frees 32 buffers resulting in 32*8=256B of stores to lcore cache. The receive side allocates 32 buffers and stores them in the receive side