>-----Original Message----- >From: Dharmik Thakkar [mailto:dharmik.thak...@arm.com] >Sent: Thursday, May 9, 2019 10:19 AM >To: Wang, Yipeng1 <yipeng1.w...@intel.com>; Gobriel, Sameh ><sameh.gobr...@intel.com>; Richardson, Bruce ><bruce.richard...@intel.com>; De Lara Guarch, Pablo ><pablo.de.lara.gua...@intel.com> >Cc: dev@dpdk.org; honnappa.nagaraha...@arm.com; zhongdahulin...@163.com; >Dharmik Thakkar <dharmik.thak...@arm.com>; >sta...@dpdk.org >Subject: [PATCH v4 2/3] hash: fix total entries in free key with position > >In rte_hash, with current implementation, it is possible that keys >are stored at indexes greater than the number of total entries. > >Currently, in rte_hash_free_key_with_position(), due to incorrect >computation of total_entries, application cannot free keys with >indexes greater than the number of total entries. > >This patch fixes this incorrect computation of total_entries. > >Bugzilla ID: 261 >Fixes: 9d033dac7d7c ("hash: support no free on delete") >Cc: honnappa.nagaraha...@arm.com >Cc: sta...@dpdk.org > >Reported-by: Linfan <zhongdahulin...@163.com> >Suggested-by: Linfan <zhongdahulin...@163.com> >Signed-off-by: Dharmik Thakkar <dharmik.thak...@arm.com> Acked-by: Yipeng Wang <yipeng1.w...@intel.com>
- Re: [dpdk-dev] [dpdk-stable] [PATCH v2 1/2] h... Thomas Monjalon
- Re: [dpdk-dev] [dpdk-stable] [PATCH v2 1/... Dharmik Thakkar
- [dpdk-dev] [PATCH v3 0/3] hash: fix bugs in 'free key with... Dharmik Thakkar
- [dpdk-dev] [PATCH v3 1/3] hash: fix position bug in '... Dharmik Thakkar
- Re: [dpdk-dev] [PATCH v3 1/3] hash: fix position ... Wang, Yipeng1
- Re: [dpdk-dev] [PATCH v3 1/3] hash: fix posit... Dharmik Thakkar
- [dpdk-dev] [PATCH v3 2/3] hash: fix total entries in ... Dharmik Thakkar
- [dpdk-dev] [PATCH v3 3/3] test/hash: add test for 'fr... Dharmik Thakkar
- [dpdk-dev] [PATCH v4 0/3] hash: fix bugs in 'free key... Dharmik Thakkar
- [dpdk-dev] [PATCH v4 2/3] hash: fix total entries... Dharmik Thakkar
- Re: [dpdk-dev] [PATCH v4 2/3] hash: fix total... Wang, Yipeng1
- [dpdk-dev] [PATCH v4 3/3] test/hash: add test for... Dharmik Thakkar
- Re: [dpdk-dev] [PATCH v4 3/3] test/hash: add ... Wang, Yipeng1
- [dpdk-dev] [PATCH v4 1/3] hash: fix position bug ... Dharmik Thakkar
- Re: [dpdk-dev] [PATCH v4 1/3] hash: fix posit... Wang, Yipeng1
- Re: [dpdk-dev] [PATCH v4 1/3] hash: fix p... Dharmik Thakkar
- Re: [dpdk-dev] [dpdk-stable] [PATCH ... Thomas Monjalon
- Re: [dpdk-dev] [dpdk-stable] [PATCH ... Dharmik Thakkar
- Re: [dpdk-dev] [PATCH v4 0/3] hash: fix bugs in '... Thomas Monjalon
- Re: [dpdk-dev] [PATCH v4 0/3] hash: fix bugs ... Wang, Yipeng1
- Re: [dpdk-dev] [PATCH v4 0/3] hash: fix b... Thomas Monjalon