Hi David,

On 15/10/2021 11:33, David Marchand wrote:
On Thu, Oct 14, 2021 at 7:55 PM Vladimir Medvedkin
<vladimir.medved...@intel.com> wrote:
@@ -1607,6 +1611,17 @@ static struct rte_hash_parameters hash_params_ex = {
  };

  /*
+ * Wrapper function around rte_jhash_32b.
+ * It is required because rte_jhash_32b() accepts the length
+ * as size of 4-byte units.
+ */
+static inline uint32_t
+test_jhash_32b(const void *k, uint32_t length, uint32_t initval)
+{
+       return rte_jhash_32b(k, length >> 2, initval);
+}

I am confused.
Does it mean that rte_jhash_32b is not compliant with rte_hash_create API?


I think so too, because despite the fact that the ABI is the same, the API remains different with respect to the length argument.



--
Regards,
Vladimir

Reply via email to