[PATCH v5 01/13] hash: remove some dead code

Ruifeng Wang Ruifeng.Wang at arm.com
Thu Dec 21 07:26:49 CET 2023


On 2023/12/20 11:35 PM, David Marchand wrote:
> This macro is not used.
> 
> Fixes: 769b2de7fb52 ("hash: implement RCU resources reclamation")
> Cc: stable at dpdk.org
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> Reviewed-by: Stephen Hemminger <stephen at networkplumber.org>
> Reviewed-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
> ---
>   lib/hash/rte_cuckoo_hash.h | 11 -----------
>   1 file changed, 11 deletions(-)
> 
> diff --git a/lib/hash/rte_cuckoo_hash.h b/lib/hash/rte_cuckoo_hash.h
> index f7afc4dd79..8ea793c66e 100644
> --- a/lib/hash/rte_cuckoo_hash.h
> +++ b/lib/hash/rte_cuckoo_hash.h
> @@ -29,17 +29,6 @@
>   #define RETURN_IF_TRUE(cond, retval)
>   #endif
>   
> -#if defined(RTE_LIBRTE_HASH_DEBUG)
> -#define ERR_IF_TRUE(cond, fmt, args...) do { \
> -	if (cond) { \
> -		RTE_LOG(ERR, HASH, fmt, ##args); \
> -		return; \
> -	} \
> -} while (0)
> -#else
> -#define ERR_IF_TRUE(cond, fmt, args...)
> -#endif
> -
>   #include <rte_hash_crc.h>
>   #include <rte_jhash.h>
>   
To correct the disclaimer issue.

Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>


More information about the stable mailing list