Go to file
Dharmik Thakkar 52c7abbea9 hash: fix total entries count
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: 9d033dac7d ("hash: support no free on delete")
Cc: stable@dpdk.org

Reported-by: Linfan <zhongdahulinfan@163.com>
Suggested-by: Linfan <zhongdahulinfan@163.com>
Signed-off-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
2019-05-09 22:31:29 +02:00
.ci ci: fix arm64 config filename 2019-03-30 00:01:35 +01:00
app test/barrier: fix for Power CPUs 2019-05-09 21:58:31 +02:00
buildtools build: fix ninja install on FreeBSD 2019-05-02 23:07:04 +02:00
config build: add libbsd to pkg-config file if enabled 2019-05-02 23:07:14 +02:00
devtools devtools: fix ABI compatibility check 2019-05-02 01:44:20 +02:00
doc ipc: add warnings about correct API usage 2019-05-09 17:50:59 +02:00
drivers net/mlx5: fix errno for unsupported Direct Rules 2019-05-08 17:29:31 +02:00
examples examples/power: fix json null termination 2019-05-03 01:41:42 +02:00
kernel kni: fix type for MAC address 2019-04-19 23:07:17 +02:00
lib hash: fix total entries count 2019-05-09 22:31:29 +02:00
license fix dpdk.org URLs 2018-11-26 20:19:24 +01:00
mk mk: disable warning for packed member pointer 2019-05-02 23:04:38 +02:00
usertools net/ipn3ke: add new driver 2019-04-19 14:51:54 +02:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore doc: fix missing asymmetric crypto table 2019-04-18 16:01:28 +02:00
.travis.yml ci: add a distinguisher to the extra Travis builds 2019-04-17 13:56:23 +02:00
GNUmakefile test: move to app directory 2019-02-26 15:29:27 +01:00
MAINTAINERS maintainers: claim maintainership of IPC 2019-05-03 22:02:51 +02:00
Makefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
meson_options.txt build: use integer for max ethdev ports option 2019-03-26 23:08:09 +01:00
meson.build build: add libbsd to pkg-config file if enabled 2019-05-02 23:07:14 +02:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
VERSION version: 19.05-rc3 2019-05-05 00:28:48 +02:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org