X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fhash%2Frte_thash.h;h=451f64043ae4c84b2c323b40b06d0a061f1228ad;hb=6de0ea50e9b9d0129079689be1e335d1ffbf17d3;hp=40146cf97a29caf85e1eb61de07cf9dbe207abcd;hpb=4fd8c4cb0de198b405d6af4a31742d0982250bde;p=dpdk.git diff --git a/lib/hash/rte_thash.h b/lib/hash/rte_thash.h index 40146cf97a..451f64043a 100644 --- a/lib/hash/rte_thash.h +++ b/lib/hash/rte_thash.h @@ -21,7 +21,6 @@ extern "C" { #include #include -#include #include #include #include @@ -418,6 +417,25 @@ __rte_experimental const uint8_t * rte_thash_get_key(struct rte_thash_ctx *ctx); +/** + * Get a pointer to the toeplitz hash matrices contained in the context. + * These matrices could be used with fast toeplitz hash implementation if + * CPU supports GFNI. + * Matrices changes after each addition of a helper. + * + * @warning + * @b EXPERIMENTAL: this API may change without prior notice. + * + * @param ctx + * Thash context + * @return + * A pointer to the toeplitz hash key matrices on success + * NULL if GFNI is not supported. + */ +__rte_experimental +const uint64_t * +rte_thash_get_gfni_matrices(struct rte_thash_ctx *ctx); + /** * Function prototype for the rte_thash_adjust_tuple * to check if adjusted tuple could be used.