Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-27 Thread Van Haaren, Harry
dk-dev] [PATCH v3] hash: added a new API to hash to query > key id > > "Van Haaren, Harry" writes: > > >> -Original Message- > >> From: Van Haaren, Harry > >> Sent: Tuesday, November 26, 2019 1:19 PM > >> To: Aaron Conole ; Th

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-26 Thread Aaron Conole
; ; Yigit, Ferruh ; Thakur, >> Sham Singh ; David Marchand >> >> Subject: Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query >> key id >> >> Aaron Conole writes: >> >> > Thomas Monjalon writes: >> > >> >&g

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-26 Thread Aaron Conole
"Van Haaren, Harry" writes: >> -Original Message- >> From: Van Haaren, Harry >> Sent: Tuesday, November 26, 2019 1:19 PM >> To: Aaron Conole ; Thomas Monjalon > > > >> > EAL: Test assert service_lcore_en_dis_able line 487 failed: Ex-service >> core >> > function call had no effect. >> >

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-26 Thread Van Haaren, Harry
> -Original Message- > From: Van Haaren, Harry > Sent: Tuesday, November 26, 2019 1:19 PM > To: Aaron Conole ; Thomas Monjalon > > EAL: Test assert service_lcore_en_dis_able line 487 failed: Ex-service > core > > function call had no effect. > > > > So I'll spend some time in this area,

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-26 Thread Van Haaren, Harry
ject: Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query > key id > > Aaron Conole writes: > > > Thomas Monjalon writes: > > > >>> From: Aaron Conole > >>> > - if (!service_valid(id)) > >>> > + if (id &g

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Aaron Conole
Aaron Conole writes: > Thomas Monjalon writes: > >>> From: Aaron Conole >>> > - if (!service_valid(id)) >>> > + if (id >= RTE_SERVICE_NUM_MAX || !service_valid(id)) >> >> Why not adding this check in service_valid()? > > I think the best fix is to use SERVICE_VALID_GET_OR_ERR_RET() in these > p

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Wang, Yipeng1
Hi, Amber, Thanks for the patch! A bit comment inlined: >-Original Message- >From: Amber, Kumar >Sent: Monday, November 25, 2019 3:08 AM >To: dev@dpdk.org >Cc: Wang, Yipeng1 >Subject: [PATCH v3] hash: added a new API to hash to query key id > >Adding new API function to query the maximum

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Aaron Conole
Thomas Monjalon writes: >> From: Aaron Conole >> > - if (!service_valid(id)) >> > + if (id >= RTE_SERVICE_NUM_MAX || !service_valid(id)) > > Why not adding this check in service_valid()? I think the best fix is to use SERVICE_VALID_GET_OR_ERR_RET() in these places. For this, I at least want

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Thomas Monjalon
> From: Aaron Conole > > - if (!service_valid(id)) > > + if (id >= RTE_SERVICE_NUM_MAX || !service_valid(id)) Why not adding this check in service_valid()?

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Van Haaren, Harry
t: Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query > key id > > "Amber, Kumar" writes: > > > Hi all , > > > > I want to report random untouched unit test cases failed by Jenkins > > . pls can you guys check why it is unstable ?

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Aaron Conole
return -EINVAL; struct core_state *cs = &lcore_states[rte_lcore_id()]; --- Harry? > Regards > Amber > > -Original Message- > From: dev On Behalf Of Kumar Amber > Sent: Monday, November 25, 2019 4:38 PM > To: dev@dpdk.org > Cc: Wang, Yipeng1 > Su

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Aaron Conole
pdk.org/archives/test-report/2019-November/109120.html > > Regards > Amber > > -Original Message- > From: dev On Behalf Of Kumar Amber > Sent: Monday, November 25, 2019 4:38 PM > To: dev@dpdk.org > Cc: Wang, Yipeng1 > Subject: [dpdk-dev] [PATCH v3] hash: added a

Re: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Amber, Kumar
Behalf Of Kumar Amber Sent: Monday, November 25, 2019 4:38 PM To: dev@dpdk.org Cc: Wang, Yipeng1 Subject: [dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id Adding new API function to query the maximum key ID that could possibly returned by rte_hash_add_key and

[dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-25 Thread Kumar Amber
Adding new API function to query the maximum key ID that could possibly returned by rte_hash_add_key and rte_hash_add_key_with_hash. When RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD is set, the maximum key id is larger than the entry count specified by the user. Signed-off-by: Kumar Amber --- lib/libr

[dpdk-dev] [PATCH v3] hash: added a new API to hash to query key id

2019-11-22 Thread Kumar Amber
Adding new API function to query the maximum key ID that could possibly returned by rte_hash_add_key and rte_hash_add_key_with_hash. When RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD is set, the maximum key id is larger than the entry count specified by the user. Signed-off-by: Kumar Amber --- lib/libr