+ if (rte_thash_gfni_supported()) {
+ ctx->matrices = rte_zmalloc(NULL, key_len * sizeof(uint64_t),
+ RTE_CACHE_LINE_SIZE);
+ if (ctx->matrices == NULL) {
+ RTE_LOG(ERR, HASH, "Cannot allocate matrices\n");
+ rte_errno = ENOMEM;
+ goto free_ctx;
+ }
+
+ rte_thash_complete_matrix(ctx->matrices, ctx->hash_key,
+ key_len);
+ }
+