[dpdk-dev] [PATCH v3 0/2] lib/mempool: add debug stats

2021-04-19 Thread Dharmik Thakkar
v2: - Fix typo in the commit message --- Dharmik Thakkar (1): lib/mempool: make stats macro generic Joyce Kong (1): lib/mempool: distinguish debug counters from cache and pool lib/librte_mempool/rte_mempool.c | 24 +++ lib/librte_mempool/rte_mempool.h | 71

[dpdk-dev] [PATCH v3 1/2] lib/mempool: make stats macro generic

2021-04-19 Thread Dharmik Thakkar
Make __MEMPOOL_STAT_ADD macro more generic and delete __MEMPOOL_CONTIG_BLOCKS_STAT_ADD macro Suggested-by: Olivier Matz Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/librte_mempool/rte_mempool.h | 34 +++- 1

[dpdk-dev] [PATCH v3 2/2] lib/mempool: distinguish debug counters from cache and pool

2021-04-19 Thread Dharmik Thakkar
From: Joyce Kong If cache is enabled, objects will be retrieved/put from/to cache, subsequently from/to the common pool. Now the debug stats calculate the objects retrieved/put from/to cache and pool together, it is better to distinguish them. Signed-off-by: Joyce Kong Signed-off-by: Dharmik

Re: [dpdk-dev] [PATCH v2] lib/mempool: distinguish debug counters from cache and pool

2021-04-19 Thread Dharmik Thakkar
Hi Olivier, Apologies for the delayed response! I’m stepping in since Joyce is on vacation. I have updated the patch with the required changes. Thank you! > On Apr 7, 2021, at 9:28 AM, Olivier Matz wrote:

Re: [dpdk-dev] [PATCH v3 2/2] lib/mempool: distinguish debug counters from cache and pool

2021-04-22 Thread Dharmik Thakkar
Hi Olivier, Thank you for your comments! > On Apr 21, 2021, at 11:29 AM, Olivier Matz wrote: > > Hi Dharmik, > > Please see some comments below. > > On Mon, Apr 19, 2021 at 07:08:00PM -0500, Dharmik Thakkar wrote: >> From: Joyce Kong >> >> If cache is

[dpdk-dev] [PATCH v4 0/2] lib/mempool: add debug stats

2021-04-22 Thread Dharmik Thakkar
bulk counters v2: - Fix typo in the commit message --- Dharmik Thakkar (1): lib/mempool: make stats macro generic Joyce Kong (1): lib/mempool: distinguish debug counters from cache and pool lib/mempool/rte_mempool.c | 16 ++ lib/mempool/rte_mempool.h | 67

[dpdk-dev] [PATCH v4 2/2] lib/mempool: distinguish debug counters from cache and pool

2021-04-22 Thread Dharmik Thakkar
From: Joyce Kong If cache is enabled, objects will be retrieved/put from/to cache, subsequently from/to the common pool. Now the debug stats calculate the objects retrieved/put from/to cache and pool together, it is better to distinguish them. Signed-off-by: Joyce Kong Signed-off-by: Dharmik

[dpdk-dev] [PATCH v4 1/2] lib/mempool: make stats macro generic

2021-04-22 Thread Dharmik Thakkar
Make __MEMPOOL_STAT_ADD macro more generic and delete __MEMPOOL_CONTIG_BLOCKS_STAT_ADD macro Suggested-by: Olivier Matz Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli Acked-by: Olivier Matz --- lib/mempool/rte_mempool.h | 34

Re: [dpdk-dev] [PATCH v4 2/2] lib/mempool: distinguish debug counters from cache and pool

2021-04-23 Thread Dharmik Thakkar
+Honnappa > On Apr 22, 2021, at 8:29 PM, Dharmik Thakkar wrote: > > From: Joyce Kong > > If cache is enabled, objects will be retrieved/put from/to cache, > subsequently from/to the common pool. Now the debug stats calculate > the objects retrieved/put from/to cache and

[dpdk-dev] [PATCH v5 0/2] mempool: add debug stats

2021-04-27 Thread Dharmik Thakkar
ro generic - Remove other stat add/subtract macros - Rename counters for better understanding - Add put/get cache bulk counters v2: - Fix typo in the commit message --- Dharmik Thakkar (1): mempool: make stats macro generic Joyce Kong (1): mempool: distinguish debug counters from cache and

[dpdk-dev] [PATCH v5 1/2] mempool: make stats macro generic

2021-04-27 Thread Dharmik Thakkar
Make __MEMPOOL_STAT_ADD macro more generic and delete __MEMPOOL_CONTIG_BLOCKS_STAT_ADD macro Suggested-by: Olivier Matz Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli Acked-by: Olivier Matz --- lib/mempool/rte_mempool.h | 34

[dpdk-dev] [PATCH v5 2/2] mempool: distinguish debug counters from cache and pool

2021-04-27 Thread Dharmik Thakkar
From: Joyce Kong If cache is enabled, objects will be retrieved/put from/to cache, subsequently from/to the common pool. Now the debug stats calculate the objects retrieved/put from/to cache and pool together, it is better to distinguish them. Signed-off-by: Joyce Kong Signed-off-by: Dharmik

Re: [PATCH 1/1] mempool: implement index-based per core cache

2022-01-12 Thread Dharmik Thakkar
_bulk=32 n_keep=32 : > 1262052966.00/1007039283.00/-20.21 > cache=512 cores=2 n_get_bulk=32 n_put_bulk=32 n_keep=128 : > 1517853081.00/1230818508.00/-18.91 > cache=512 cores=8 n_get_bulk=32 n_put_bulk=32 n_keep=32 > :5054529533.00/4028052273.00/-20.31 > cache=512

Re: [PATCH 0/1] mempool: implement index-based per core cache

2022-01-12 Thread Dharmik Thakkar
gt;>> From: Bruce Richardson [mailto:bruce.richard...@intel.com] >>>>> Sent: Friday, 7 January 2022 12.16 >>>>> >>>>> On Sat, Dec 25, 2021 at 01:16:03AM +0100, Morten Brørup wrote: >>>>>>> From: Dharmik Thakkar [mailto:dha

[PATCH v2 0/1] mempool: implement index-based per core cache

2022-01-12 Thread Dharmik Thakkar
ing --- Dharmik Thakkar (1): mempool: implement index-based per core cache lib/mempool/rte_mempool.h | 150 +- lib/mempool/rte_mempool_ops_default.c | 7 ++ 2 files changed, 156 insertions(+), 1 deletion(-) -- 2.17.1

[PATCH v2 1/1] mempool: implement index-based per core cache

2022-01-12 Thread Dharmik Thakkar
cache L3Fwd performance testing reveals minor improvements in the cache performance (L1 and L2 misses reduced by 0.60%) with no change in throughput Suggested-by: Honnappa Nagarahalli Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- lib/mempool/rte_mempool.h | 150

Re: [PATCH 1/1] mempool: implement index-based per core cache

2022-01-19 Thread Dharmik Thakkar
Hi Konstatin, > On Jan 13, 2022, at 4:37 AM, Ananyev, Konstantin > wrote: > > > Hi Dharmik, > >>> Current mempool per core cache implementation stores pointers to mbufs On 64b architectures, each pointer consumes 8B This patch replaces it with index-based implementation,

[dpdk-dev] [PATCH v3 0/8] use compiler atomic builtins for examples

2021-10-13 Thread Dharmik Thakkar
Since atomic operations have been adopted in DPDK now[1], change rte_atomicNN_xxx APIs to compiler's atomic built-ins in examples module[2]. [1] https://www.dpdk.org/blog/2021/03/26/dpdk-adopts-the-c11-memory-model/ [2] https://doc.dpdk.org/guides/rel_notes/deprecation.html v3: Keep rte_atomic.

[dpdk-dev] [PATCH v3 1/8] examples/bbdev_app: use compiler atomics for flag sync

2021-10-13 Thread Dharmik Thakkar
From: Joyce Kong Convert rte_atomic usages to compiler atomic built-ins for global_exit_flag sync. Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang --- examples/bbdev_app/main.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/examples/bbdev_app/main.c b/ex

[dpdk-dev] [PATCH v3 2/8] examples/multi_process: use compiler atomics for sync

2021-10-13 Thread Dharmik Thakkar
From: Joyce Kong Convert rte_atomic32_test_and_set usage to compiler atomic CAS operation for display_stats sync. Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang --- examples/multi_process/client_server_mp/mp_server/main.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff

[dpdk-dev] [PATCH v3 3/8] examples/kni: use compiler atomics for status sync

2021-10-13 Thread Dharmik Thakkar
From: Joyce Kong Convert rte_atomic usages to compiler atomic builit-ins for kni_stop and kni_pause sync. Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang --- examples/kni/main.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/examples/kni/

[dpdk-dev] [PATCH v3 4/8] examples/performance-thread: use compiler atomics for sync

2021-10-13 Thread Dharmik Thakkar
From: Joyce Kong Convert rte_atomic usages to compiler atomic built-ins for thread sync. Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang --- examples/performance-thread/common/lthread.c | 10 +++--- .../performance-thread/common/lthread_diag.h | 10 +++--- .../performance-thread/common/

[dpdk-dev] [PATCH v3 5/8] examples/l2fwd-jobstats: use compiler atomics for stats sync

2021-10-13 Thread Dharmik Thakkar
From: Joyce Kong Convert rte_atomic usages to compiler atomic built-ins for stats_read_pending sync in l2fwd_jobstats module. Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang --- examples/l2fwd-jobstats/main.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/

[dpdk-dev] [PATCH v3 6/8] examples/vm_power_manager: use compiler atomics for sync

2021-10-13 Thread Dharmik Thakkar
From: Joyce Kong Convert rte_atomic32_cmpset to compiler atomic CAS operation for channel status sync. Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang --- examples/vm_power_manager/channel_monitor.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/v

[dpdk-dev] [PATCH v3 7/8] examples/server_node_efd: use compiler atomics for sync

2021-10-13 Thread Dharmik Thakkar
From: Joyce Kong Convert rte_atomic32_test_and_set to compiler CAS atomic operation for display_stats sync. Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang --- examples/server_node_efd/server/main.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/server

[dpdk-dev] [PATCH v3 8/8] examples: remove unnecessary include of atomic

2021-10-13 Thread Dharmik Thakkar
From: Joyce Kong Remove the unnecessary header file rte_atomic.h included in example module. Signed-off-by: Joyce Kong Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- examples/bond/main.c | 1 - examples/ip_fragmentation/main.c

[dpdk-dev] [PATCH v2] stack: remove duplicated include of atomic

2021-10-13 Thread Dharmik Thakkar
From: Joyce Kong In stack module, remove the header file rte_atomic.h as it is not being used. Signed-off-by: Joyce Kong Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- v2: Change commit message (Olivier) --- app/test/test_stack.c | 1 - lib/stack/rte_stack.c | 1 - lib

Re: [dpdk-dev] [PATCH v3 8/8] examples: remove unnecessary include of atomic

2021-10-15 Thread Dharmik Thakkar
towards examples dir. Another recently upstreamed patch series [1] also reported a similar CI failure. Thus, this looks like a common CI issue. [1] https://lab.dpdk.org/results/dashboard/patchsets/19456/ > On Oct 13, 2021, at 1:54 PM, Dharmik Thakkar wrote: > > From: Joyce Kong >

Re: [dpdk-dev] [RFC] mempool: implement index-based per core cache

2021-11-03 Thread Dharmik Thakkar
Hi, Thank you everyone for the comments! I am currently working on making the global pool ring’s implementation as index based. Once done, I will send a patch for community review. I will also make it as a compile time option. > On Oct 31, 2021, at 3:14 AM, Morten Brørup wrote: > >> From: Mor

Re: [dpdk-dev] [RFC] mempool: implement index-based per core cache

2021-11-03 Thread Dharmik Thakkar
> On Nov 3, 2021, at 10:52 AM, Morten Brørup wrote: > >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Dharmik Thakkar >> Sent: Wednesday, 3 November 2021 16.13 >> >> Hi, >> >> Thank you everyone for the comments! I am currently w

[dpdk-dev] [PATCH] test/hash: use compiler atomics for sync

2021-09-22 Thread Dharmik Thakkar
Convert rte_atomic usages to compiler atomic built-ins for stats sync Signed-off-by: Dharmik Thakkar Reviewed-by: Joyce Kong Reviewed-by: Ruifeng Wang --- app/test/test_hash_multiwriter.c | 19 app/test/test_hash_readwrite.c | 80 +++- 2 files changed

Re: [dpdk-dev] L3fwd mode in testpmd

2021-08-02 Thread Dharmik Thakkar
Hi, Kathleen has submitted an RFC patch [1] in this regard. We’d appreciate your comments. [1] https://patches.dpdk.org/project/dpdk/patch/20210430213747.41530-2-kathleen.cape...@arm.com/ Thank you! > On Apr 30, 2021, at 4:28 AM, Ananyev, Konstantin > wrote: > >> >> >> On Thu, Apr 29, 2021

[PATCH 1/1] mempool: implement index-based per core cache

2021-12-24 Thread Dharmik Thakkar
cache L3Fwd performance testing reveals minor improvements in the cache performance (L1 and L2 misses reduced by 0.60%) with no change in throughput Suggested-by: Honnappa Nagarahalli Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- lib/mempool/rte_mempool.h | 114

[PATCH 0/1] mempool: implement index-based per core cache

2021-12-24 Thread Dharmik Thakkar
red Dharmik Thakkar (1): mempool: implement index-based per core cache lib/mempool/rte_mempool.h | 114 +- lib/mempool/rte_mempool_ops_default.c | 7 ++ 2 files changed, 119 insertions(+), 2 deletions(-) -- 2.25.1

[PATCH v12 1/2] mempool cache: add zero-copy get and put functions

2023-07-21 Thread Dharmik Thakkar
: Dharmik Thakkar Reviewed-by: Ruifeng Wang Acked-by: Konstantin Ananyev Acked-by: Chengwen Feng --- v12: * Fix CI compilation issues on [patch 2/2] in the series v11: * Changed patch description and version to 23.07 v10: * Added mempool test cases with zero-copy API's v9: * Also set rte_err

[PATCH v12 2/2] net/i40e: replace put function

2023-07-21 Thread Dharmik Thakkar
From: Kamalakshitha Aligeri Integrated zero-copy put API in mempool cache in i40e PMD. On Ampere Altra server, l3fwd single core's performance improves by 5% with the new API Signed-off-by: Kamalakshitha Aligeri Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang Reviewed-by: F

[PATCH v2] doc: update QAT cryptodev guide to run on aarch64

2023-08-08 Thread Dharmik Thakkar
Update guide with instructions to run on Aarch64 based Ampere Altra platform Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- v2: - Update driver guide with instructions to run on aarch64 instead of release notes. --- .mailmap | 2 +- doc/guides/cryptodevs

[PATCH v3] doc: update QAT cryptodev guide to run on aarch64

2023-08-09 Thread Dharmik Thakkar
Update guide with instructions to run on Aarch64 based Ampere Altra platform Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- v3: - Fix duplicate target warning by using anonymous reference v2: - Update driver guide with instructions to run on aarch64 instead --- .mailmap

[PATCH] doc: announce QAT support on aarch64

2023-06-26 Thread Dharmik Thakkar
Update release notes with added support for QAT on Ampere Altra. Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- doc/guides/rel_notes/release_23_07.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_23_07.rst b/doc/guides/rel_notes

[dpdk-dev] [RFC] mempool: implement index-based per core cache

2021-09-30 Thread Dharmik Thakkar
d-off-by: Dharmik Thakkar --- drivers/mempool/ring/rte_mempool_ring.c | 2 +- lib/mempool/rte_mempool.c | 8 +++ lib/mempool/rte_mempool.h | 74 ++--- 3 files changed, 74 insertions(+), 10 deletions(-) diff --git a/drivers/mempool

Re: [dpdk-dev] [PATCH] checkpatch: enable volatile warning

2021-08-16 Thread Dharmik Thakkar
Hi, Apologies for the delayed response! > On Mar 10, 2021, at 9:10 AM, Stephen Hemminger > wrote: > > On Wed, 10 Mar 2021 12:10:01 +0100 > Thomas Monjalon wrote: > >> 10/03/2021 12:04, Dharmik Thakkar: >>> Enable volatile considered harmful warning sin

[dpdk-dev] [PATCH] checkpatch: enable volatile warning

2021-03-10 Thread Dharmik Thakkar
Enable volatile considered harmful warning since use of volatile is suspect. Suggested-by: Stephen Hemminger Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- devtools/checkpatches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/checkpatches.sh b

Re: [PATCH 1/1] mempool: implement index-based per core cache

2022-03-24 Thread Dharmik Thakkar
Hi, Thank you for the comments! Based on the suggestions, I tested the patch for single core L3Fwd performance with increased number of routes/flows (maximum 8K) to increase cache footprint. However, I don’t see much improvement with the patch. > On Jan 21, 2022, at 5:25 AM, Ananyev, Konstantin

Re: [dpdk-dev] [PATCH v6 2/4] lib/hash: integrate RCU QSBR

2020-10-23 Thread Dharmik Thakkar
Hi Yipeng, I have addressed the comments. Can you please take a look? Thank you! > On Oct 21, 2020, at 5:50 PM, Dharmik Thakkar wrote: > > Currently, users have to use external RCU mechanisms to free resources > when using lock free hash algorithm. > > Integrate RCU QSBR

Re: [dpdk-dev] [PATCH v6 0/4] hash: integrate RCU QSBR

2020-10-26 Thread Dharmik Thakkar
> On Oct 24, 2020, at 4:09 AM, David Marchand wrote: > > On Thu, Oct 22, 2020 at 12:51 AM Dharmik Thakkar > wrote: >> >> Integrate RCU QSBR to make it easier for the applications to use lock >> free algorithm. >> >> Resource reclamation implementa

Re: [dpdk-dev] [PATCH] doc: update build guide for armv8 crypto PMD

2020-10-26 Thread Dharmik Thakkar
> On Oct 22, 2020, at 4:25 PM, Honnappa Nagarahalli > wrote: > > + Dharmik > >> -Original Message- >> From: Thomas Monjalon >> Sent: Thursday, October 22, 2020 4:18 PM >> To: Ruifeng Wang >> Cc: dev@dpdk.org; akhil.go...@nxp.com; Honnappa Nagarahalli >> ; nd >> Subject: Re: [dpdk-

Re: [dpdk-dev] [PATCH] hash: fix dereference before null check

2020-10-27 Thread Dharmik Thakkar
ries + 1; > > if (h == NULL || cfg == NULL || cfg->v == NULL) { > rte_errno = EINVAL; > return 1; > } > > +const uint32_t total_entries = h->use_local_cache ? > +h->entries + (RTE_MAX_LCORE - 1) * (LCORE_CACHE_SIZE - 1) + 1 > +: h->entries + 1; > + > if

Re: [dpdk-dev] [PATCH] hash: fix dereference before null check

2020-10-27 Thread Dharmik Thakkar
Apologies for the disclaimer! > On Oct 27, 2020, at 9:59 AM, Dharmik Thakkar wrote: > > Hi Yunjian, > > Thank you for fixing the issue! > >> On Oct 27, 2020, at 7:51 AM, wangyunjian wrote: >> >> From: Yunjian Wang >> >> Coverity flags that

Re: [dpdk-dev] [PATCH] app/testpmd: don't allow to dynamic change nbcore

2020-10-28 Thread Dharmik Thakkar
Hi Zhou, Although, I see that a few of the configuration options are checking for ’test_done’, I am wondering if it is truly required. Since, as per the documentation guidelines: 'Configuration changes only become active when forwarding is started/restarted.’ > On Oct 27, 2020, at 1:42 AM, Zhou

[dpdk-dev] [PATCH 1/4] test/lpm: fix cycle calculation in rcu qsbr perf

2020-10-29 Thread Dharmik Thakkar
Fix incorrect calculations for LPM adds, LPM deletes, and average cycles in RCU QSBR perf tests Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang ---

[dpdk-dev] [PATCH 3/4] test/lpm: remove error checking in rcu qsbr perf

2020-10-29 Thread Dharmik Thakkar
Remove redundant error checking for reader threads since they never return error. Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_p

[dpdk-dev] [PATCH 2/4] test/lpm: return error on failure in rcu qsbr perf

2020-10-29 Thread Dharmik Thakkar
Return error if Add/Delete fail in multiwriter perf test Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_perf.c | 4 1 file

[dpdk-dev] [PATCH 4/4] test/lpm: avoid code duplication in rcu qsbr perf

2020-10-29 Thread Dharmik Thakkar
Avoid code duplication by combining single and multi threaded tests Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_perf.c | 338 +-- 1 file changed, 73 insertions(+), 265 deletions(-) diff --git a/app/test/test_lpm_perf.c b

Re: [dpdk-dev] [PATCH 3/3 v4] app/testpmd: support hardware offload to drop error packets

2020-10-29 Thread Dharmik Thakkar
nfo**: > ``rx_err_drop_offload_capa:RTE_DEV_RX_ERR_PKT_DROP_OFFLOAD_L4_CSUM``. > + > + > +.. _nic_features_all_rx_error_packet_drop: > + > +All/any Error Packet drop on Rx > +--- > + > +Supports dropping of packets having any of the errors like L1 FSC, L3/L4 > Checksum on Rx. s/FSC/FCS > + > +* **[uses] user config**: ``dev_conf.err_pkt_drop_conf.all``. > +* **[provides] rte_eth_dev_info**: > ``rx_err_drop_offload_capa:RTE_DEV_RX_ERR_PKT_DROP_OFFLOAD_ALL``. > + > + > .. _nic_features_packet_type_parsing: > > Packet type parsing > diff --git a/doc/guides/testpmd_app_ug/run_app.rst > b/doc/guides/testpmd_app_ug/run_app.rst > index e2539f693..20f2f8083 100644 > --- a/doc/guides/testpmd_app_ug/run_app.rst > +++ b/doc/guides/testpmd_app_ug/run_app.rst > @@ -213,6 +213,10 @@ The command line options are: > > Enable hardware QINQ strip. > > +* ``--enable-hw-drop-err-all`` > + > +Enable hardware packet drop for any error packets > + > * ``--enable-drop-en`` > > Enable per-queue packet drop for packets with no descriptors. > — > 2.17.1 > Reviewed-by: Dharmik Thakkar

Re: [dpdk-dev] [PATCH 1/4] test/lpm: fix cycle calculation in rcu qsbr perf

2020-11-02 Thread Dharmik Thakkar
> On Nov 2, 2020, at 9:11 AM, Bruce Richardson > wrote: > > On Thu, Oct 29, 2020 at 10:36:31AM -0500, Dharmik Thakkar wrote: >> Fix incorrect calculations for LPM adds, LPM deletes, >> and average cycles in RCU QSBR perf tests >> > > To help review thi

Re: [dpdk-dev] [PATCH 4/4] test/lpm: avoid code duplication in rcu qsbr perf

2020-11-02 Thread Dharmik Thakkar
> On Nov 2, 2020, at 11:17 AM, Medvedkin, Vladimir > wrote: > > Hi Dharmik, > > Thanks for the patches, see comments inlined > > > On 29/10/2020 15:36, Dharmik Thakkar wrote: >> Avoid code duplication by combining single and multi threaded tests

[dpdk-dev] [PATCH v2 0/4] test/lpm: fix rcu qsbr perf test

2020-11-02 Thread Dharmik Thakkar
- Replace hard coded values with an enum - Remove lock acquire/release for single writer Dharmik Thakkar (4): test/lpm: fix cycle calculation in rcu qsbr perf test/lpm: return error on failure in rcu qsbr perf test/lpm: remove error checking in rcu qsbr perf test/lpm: avoid code duplication in

[dpdk-dev] [PATCH v2 4/4] test/lpm: avoid code duplication in rcu qsbr perf

2020-11-02 Thread Dharmik Thakkar
Avoid code duplication by combining single and multi threaded tests Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_perf.c | 362 ++- 1 file changed, 91 insertions(+), 271 deletions(-) diff --git a/app/test/test_lpm_perf.c b

[dpdk-dev] [PATCH v2 2/4] test/lpm: return error on failure in rcu qsbr perf

2020-11-02 Thread Dharmik Thakkar
Return error if Add/Delete fail in multiwriter perf test Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_perf.c | 4 1 file

[dpdk-dev] [PATCH v2 3/4] test/lpm: remove error checking in rcu qsbr perf

2020-11-02 Thread Dharmik Thakkar
Remove redundant error checking for reader threads since they never return error. Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_p

[dpdk-dev] [PATCH v2 1/4] test/lpm: fix cycle calculation in rcu qsbr perf

2020-11-02 Thread Dharmik Thakkar
ance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_perf.c | 45 ++-- 1 file changed, 16 insertions(+), 29 deletions(-) diff --git a/app/test/test_lpm_perf.c b/app/

Re: [dpdk-dev] [PATCH v2 4/4] test/lpm: avoid code duplication in rcu qsbr perf

2020-11-02 Thread Dharmik Thakkar
> On Nov 2, 2020, at 10:21 PM, Honnappa Nagarahalli > wrote: > > >> >> Avoid code duplication by combining single and multi threaded tests >> >> Signed-off-by: Dharmik Thakkar >> Reviewed-by: Ruifeng Wang

Re: [dpdk-dev] [PATCH v2 2/4] test/lpm: return error on failure in rcu qsbr perf

2020-11-02 Thread Dharmik Thakkar
> On Nov 2, 2020, at 7:28 PM, Honnappa Nagarahalli > wrote: > > > >> >> Return error if Add/Delete fail in multiwriter perf test >> >> Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") >> Cc: honnappa.nagaraha...@arm.c

Re: [dpdk-dev] [PATCH v2 3/4] test/lpm: remove error checking in rcu qsbr perf

2020-11-02 Thread Dharmik Thakkar
;> Cc: honnappa.nagaraha...@arm.com >> Cc: sta...@dpdk.org >> >> Signed-off-by: Dharmik Thakkar >> Reviewed-by: Ruifeng Wang >> --- >> app/test/test_lpm_perf.c | 21 - >> 1 file changed, 8 insertions(+), 13 deletions(-) >> >> d

[dpdk-dev] [PATCH v3 0/4] test/lpm: fix rcu qsbr perf test

2020-11-02 Thread Dharmik Thakkar
tement v2: - Add more details about the fix to the commit message - Replace hard coded values with an enum - Remove lock acquire/release for single writer Dharmik Thakkar (4): test/lpm: fix cycle calculation in rcu qsbr perf test/lpm: return error on failure in rcu qsbr perf test/lpm: re

[dpdk-dev] [PATCH v3 2/4] test/lpm: return error on failure in rcu qsbr perf

2020-11-02 Thread Dharmik Thakkar
Return error if Add/Delete fail in multiwriter perf test Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_perf.c | 6 ++ 1 file

[dpdk-dev] [PATCH v3 4/4] test/lpm: avoid code duplication in rcu qsbr perf

2020-11-02 Thread Dharmik Thakkar
Avoid code duplication by combining single and multi threaded tests Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_perf.c | 359 ++- 1 file changed, 89 insertions(+), 270 deletions(-) diff --git a/app/test/test_lpm_perf.c b

[dpdk-dev] [PATCH v3 1/4] test/lpm: fix cycle calculation in rcu qsbr perf

2020-11-02 Thread Dharmik Thakkar
ance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- app/test/test_lpm_perf.c | 45 ++-- 1 file changed, 16 insertions(+), 29 deletions(-) diff --git a/

[dpdk-dev] [PATCH v3 3/4] test/lpm: remove error checking in rcu qsbr perf

2020-11-02 Thread Dharmik Thakkar
Remove redundant error checking for reader threads since they never return error. Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") Cc: honnappa.nagaraha...@arm.com Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ruifeng Wang --- app/test/test_lpm_p

Re: [dpdk-dev] [PATCH v5 4/4] hash: use partial-key hashing

2018-10-02 Thread Dharmik Thakkar
I am attempting to test the patch on an Arm machine, but it failed to apply. I’m getting the following error: error: patch failed: test/test/test_hash_perf.c:18 error: test/test/test_hash_perf.c: patch does not apply Patch failed at 0003 test/hash: implement extendable bucket hash test > On Oct

Re: [dpdk-dev] [PATCH v4 0/4] hash: add extendable bucket and partial key hashing

2018-10-03 Thread Dharmik Thakkar
implement extendable bucket hash test > hash: use partial-key hashing > > lib/librte_hash/rte_cuckoo_hash.c | 585 ++++------ > lib/librte_hash/rte_cuckoo_hash.h | 11 +- > lib/librte_hash/rte_hash.h| 8 +- > test/test/test_hash.c | 159 ++- > test/test/test_hash_perf.c| 114 ++-- > 5 files changed, 683 insertions(+), 194 deletions(-) > > -- > 2.7.4 > Acked-by: Dharmik Thakkar

Re: [dpdk-dev] [PATCH v5 0/4] hash: add extendable bucket and partial key hashing

2018-10-03 Thread Dharmik Thakkar
ucket hash test > hash: use partial-key hashing > > lib/librte_hash/rte_cuckoo_hash.c | 580 ++++-- > lib/librte_hash/rte_cuckoo_hash.h | 11 +- > lib/librte_hash/rte_hash.h| 8 +- > test/test/test_hash.c | 159 ++- > test/test/test_hash_perf.c| 114 ++-- > 5 files changed, 677 insertions(+), 195 deletions(-) > > -- > 2.7.4 > Acked-by: Dharmik Thakkar

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] test/hash: solve unit test hash compilation error

2018-10-26 Thread Dharmik Thakkar
> On Oct 26, 2018, at 3:24 PM, Thomas Monjalon wrote: > > +Cc Yipeng > > 18/09/2018 21:22, Dharmik Thakkar: >> Enable print_key_info() function compilation always. > > Please see my first comment: you need to show the compilation error > in this message. Otherwi

[dpdk-dev] [PATCH v3] test/hash: solve unit test hash compilation error

2018-10-26 Thread Dharmik Thakkar
nings being treated as errors' Fixes: af75078fece36 ("first public release") Cc: sta...@dpdk.org Suggested-by: Honnappa Nagarahalli Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu --- v3: * Add compilation error message --- v2: * Fix checkpatc

Re: [dpdk-dev] [dpdk-stable] [PATCH v2] test/hash: solve unit test hash compilation error

2018-10-26 Thread Dharmik Thakkar
> On Oct 26, 2018, at 4:05 PM, Wang, Yipeng1 wrote: > >> -Original Message- >> From: Thomas Monjalon [mailto:tho...@monjalon.net] >> Sent: Friday, October 26, 2018 1:25 PM >> To: Dharmik Thakkar >> Cc: Richardson, Bruce ; De Lara Guarch, Pablo >

[dpdk-dev] [PATCH] test/hash: reset iter and found in perf test

2018-11-29 Thread Dharmik Thakkar
Reset 'iter' and 'tbl_rw_test_param.found' on each iteration to give correct result for lost and duplicated keys. Fixes: 0eb3726ebcf14 ("test/hash: add test for read/write concurrency") Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar --- test/test/test_hash

[dpdk-dev] [PATCH 1/3] test/hash: replace macro with log-level approach

2018-11-29 Thread Dharmik Thakkar
Need to set hash log type to debug to print debug information, using following eal parameter: --log-type=hash,8 Suggested-by: Thomas Monjalon Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu Reviewed-by: Phil Yang --- test/test/test_hash.c | 3 +-- 1

[dpdk-dev] [PATCH 2/3] test/efd: enable unit test compilation always

2018-11-29 Thread Dharmik Thakkar
This patch enables compilation of print_key_info() always using log-level based approach instead of a macro. Need to set efd log type to debug to print debug information, using the following eal parameter: --log-type=efd,8 Suggested-by: Thomas Monjalon Signed-off-by: Dharmik Thakkar Reviewed-by

[dpdk-dev] [PATCH 0/3] Replace compilation time options with log level

2018-11-29 Thread Dharmik Thakkar
code always. Log levels can be set using eal parameters. Dharmik Thakkar (3): test/hash: replace macro with log-level approach test/efd: enable unit test compilation always test/timer: enable unit test compilation always test/test/test_efd.c| 24 test/test

[dpdk-dev] [PATCH 3/3] test/timer: enable unit test compilation always

2018-11-29 Thread Dharmik Thakkar
This patch replaces macro with log-level based approach to print debug information. Need to set timer log type to debug using the following eal parameter: --log-level=timer,8 Suggested-by: Thomas Monjalon Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu

[dpdk-dev] [PATCH] test/hash: solve unit test hash compilation error

2018-08-27 Thread Dharmik Thakkar
Enable print_key_info() function compilation always. Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu Suggested-by: Honnappa Nagarahalli --- test/test/test_hash.c | 24 +--- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git

[dpdk-dev] [PATCH v2] test/hash: solve unit test hash compilation error

2018-09-18 Thread Dharmik Thakkar
Enable print_key_info() function compilation always. Fixes: af75078fece36 ("first public release") Cc: sta...@dpdk.org Suggested-by: Honnappa Nagarahalli Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu --- v2: * Fix checkpatch coding style i

Re: [dpdk-dev] [dpdk-stable] [PATCH] test/hash: reset iter and found in perf test

2019-01-13 Thread Dharmik Thakkar
Thank you Ferruh and Yipeng! I will make the recommended changes and update the version. > On Jan 12, 2019, at 12:07 AM, Wang, Yipeng1 wrote: > > Thanks for the bug fix! Nice catch! > >> -Original Message- >> From: Yigit, Ferruh >> Sent: Friday, January 1

[dpdk-dev] [PATCH v2] test/hash: reset iter and found in perf test

2019-01-14 Thread Dharmik Thakkar
ad/write concurrency") Cc: sta...@dpdk.org Signed-off-by: Dharmik Thakkar Reviewed-by: Ferruh Yigit Reviewed-by: Yipeng Wang -- v2: * Update commit message * Change 'found' array type to uint8_t * Restore declaration of 'iter' to the start --- test/test/test_has

[dpdk-dev] [PATCH v2 0/3] Replace compilation time options with log level

2019-02-20 Thread Dharmik Thakkar
code always. Log levels can be set using eal parameters. Dharmik Thakkar (3): test/hash: replace macro with log-level approach test/efd: enable unit test compilation always test/timer: enable unit test compilation always test/test/test_efd.c| 24 test/test

[dpdk-dev] [PATCH v2 3/3] test/timer: enable unit test compilation always

2019-02-20 Thread Dharmik Thakkar
This patch replaces macro with log-level based approach to print debug information. Need to set timer log type to debug using the following eal parameter: --log-level=timer,8 Change-Id: I31e660e31b556ccade314a948226f0f076231a15 Suggested-by: Thomas Monjalon Signed-off-by: Dharmik Thakkar

[dpdk-dev] [PATCH v2 1/3] test/hash: replace macro with log-level approach

2019-02-20 Thread Dharmik Thakkar
Need to set hash log type to debug to print debug information, using following eal parameter: --log-type=hash,8 Change-Id: I19c56d6e79c0b6d5c20284be3576a80e6bcca920 Suggested-by: Thomas Monjalon Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu Reviewed-by

[dpdk-dev] [PATCH v2 2/3] test/efd: enable unit test compilation always

2019-02-20 Thread Dharmik Thakkar
Monjalon Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Ferruh Yigit --- v2: * Add Reviewed-by tag --- test/test/test_efd.c | 24 1 file changed, 8 insertions(+), 16 deletions(-) diff --git

[dpdk-dev] [PATCH v3 0/3] Replace compilation time options with log level

2019-02-20 Thread Dharmik Thakkar
code always. Log levels can be set using eal parameters. Dharmik Thakkar (3): test/hash: replace macro with log-level approach test/efd: enable unit test compilation always test/timer: enable unit test compilation always test/test/test_efd.c| 24 test/test

[dpdk-dev] [PATCH v3 1/3] test/hash: replace macro with log-level approach

2019-02-20 Thread Dharmik Thakkar
Need to set hash log type to debug to print debug information, using following eal parameter: --log-type=hash,8 Suggested-by: Thomas Monjalon Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Ferruh Yigit --- v3

[dpdk-dev] [PATCH v3 3/3] test/timer: enable unit test compilation always

2019-02-20 Thread Dharmik Thakkar
This patch replaces macro with log-level based approach to print debug information. Need to set timer log type to debug using the following eal parameter: --log-level=timer,8 Suggested-by: Thomas Monjalon Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu

[dpdk-dev] [PATCH v3 2/3] test/efd: enable unit test compilation always

2019-02-20 Thread Dharmik Thakkar
This patch enables compilation of print_key_info() always using log-level based approach instead of a macro. Need to set efd log type to debug to print debug information, using the following eal parameter: --log-type=efd,8 Suggested-by: Thomas Monjalon Signed-off-by: Dharmik Thakkar Reviewed-by

[dpdk-dev] [PATCH v4 0/3] Replace compilation time options with log level

2019-02-26 Thread Dharmik Thakkar
code always. Log levels can be set using eal parameters. Dharmik Thakkar (3): test/hash: replace macro with log-level approach test/efd: enable unit test compilation always test/timer: enable unit test compilation always test/test/test_efd.c| 24 +++- test/test

[dpdk-dev] [PATCH v4 2/3] test/efd: enable unit test compilation always

2019-02-26 Thread Dharmik Thakkar
This patch enables compilation of print_key_info() always using log-level based approach instead of a macro. Need to set efd log type to debug to print debug information, using the following eal parameter: --log-level=test.efd:debug Suggested-by: Thomas Monjalon Signed-off-by: Dharmik Thakkar

[dpdk-dev] [PATCH v4 3/3] test/timer: enable unit test compilation always

2019-02-26 Thread Dharmik Thakkar
This patch replaces macro with log-level based approach to print debug information. Need to set timer log type to debug using the following eal parameter: --log-level=test.timer:debug Suggested-by: Thomas Monjalon Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by

[dpdk-dev] [PATCH v4 1/3] test/hash: replace macro with log-level approach

2019-02-26 Thread Dharmik Thakkar
Need to set hash log type to debug to print debug information, using following eal parameter: --log-level=test.hash:debug Suggested-by: Thomas Monjalon Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu Reviewed-by: Phil Yang Reviewed-by: Ferruh Yigit

Re: [dpdk-dev] [PATCH v3 0/3] Replace compilation time options with log level

2019-02-26 Thread Dharmik Thakkar
> On Feb 20, 2019, at 5:08 PM, Stephen Hemminger > wrote: > > On Wed, 20 Feb 2019 17:00:20 -0600 > Dharmik Thakkar wrote: > >> Currently, in test code, for printing extra information, >> compilation time options are used. This approach does not compile the >

[dpdk-dev] [RFC 0/2] hash: add lock free support for ext bkt

2019-03-01 Thread Dharmik Thakkar
This patch series: - Enables lock-free read-write concurrency support for extendable bucket feature. - Adds lock-free read-write concurrency tests for ext bkt Dharmik Thakkar (2): hash: add lock free support for extendable bucket test/hash: lock-free rw concurrency test ext bkt app/test

[dpdk-dev] [RFC 1/2] hash: add lock free support for extendable bucket

2019-03-01 Thread Dharmik Thakkar
This patch enables lock-free read-write concurrency support for extendable bucket feature. Suggested-by: Honnappa Nagarahalli Signed-off-by: Dharmik Thakkar --- doc/guides/prog_guide/hash_lib.rst | 3 +- lib/librte_hash/rte_cuckoo_hash.c | 150 +++-- lib/librte_hash

[dpdk-dev] [RFC 2/2] test/hash: lock-free rw concurrency test ext bkt

2019-03-01 Thread Dharmik Thakkar
Add unit test to check for hash lookup and bulk-lookup perf. Test with lock-free enabled and with lock-free disabled. Test include: - hash lookup on keys in ext bkt, hash delete causing key-shifts of keys from ext bkt to secondary bkt Suggested-by: Honnappa Nagarahalli Signed-off-by: Dharmik

  1   2   3   >