[dpdk-stable] [PATCH v4 2/3] hash: fix total entries in free key with position

Wang, Yipeng1 yipeng1.wang at intel.com
Thu May 9 21:32:46 CEST 2019


>-----Original Message-----
>From: Dharmik Thakkar [mailto:dharmik.thakkar at arm.com]
>Sent: Thursday, May 9, 2019 10:19 AM
>To: Wang, Yipeng1 <yipeng1.wang at intel.com>; Gobriel, Sameh <sameh.gobriel at intel.com>; Richardson, Bruce
><bruce.richardson at intel.com>; De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>
>Cc: dev at dpdk.org; honnappa.nagarahalli at arm.com; zhongdahulinfan at 163.com; Dharmik Thakkar <dharmik.thakkar at arm.com>;
>stable at 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.nagarahalli at arm.com
>Cc: stable at dpdk.org
>
>Reported-by: Linfan <zhongdahulinfan at 163.com>
>Suggested-by: Linfan <zhongdahulinfan at 163.com>
>Signed-off-by: Dharmik Thakkar <dharmik.thakkar at arm.com>
Acked-by: Yipeng Wang <yipeng1.wang at intel.com>


More information about the stable mailing list