hash: fix total entries count
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: 9d033dac7d7c ("hash: support no free on delete")
Cc: stable@dpdk.org

Reported-by: Linfan <8817157ece3cefe87362682272e5750b7aa04638@163.com>
Suggested-by: Linfan <8817157ece3cefe87362682272e5750b7aa04638@163.com>
Signed-off-by: Dharmik Thakkar <724f3610823e4b14afc73144686337ac966281c2@arm.com>
Acked-by: Yipeng Wang <7cbe00ff6364999b5548d30abb0722f7c2a7092c@intel.com>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk