From: Suanming Mou Date: Fri, 6 Nov 2020 03:02:21 +0000 (+0800) Subject: net/mlx5: fix hash list entry assert X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3770feb8273fc778b58f8b570a2a81ea63b005c0;p=dpdk.git net/mlx5: fix hash list entry assert The entry variable assert in the mlx5_hlist_register() function is not correct. Remove the invalid entry variable. Fixes: e69a59227db0 ("net/mlx5: support concurrent access for hash list") Signed-off-by: Suanming Mou Acked-by: Viacheslav Ovsiienko --- diff --git a/drivers/net/mlx5/mlx5_utils.c b/drivers/net/mlx5/mlx5_utils.c index 13590dd0d1..9889437c56 100644 --- a/drivers/net/mlx5/mlx5_utils.c +++ b/drivers/net/mlx5/mlx5_utils.c @@ -132,7 +132,7 @@ mlx5_hlist_register(struct mlx5_hlist *h, uint64_t key, void *ctx) struct mlx5_hlist_entry *entry; uint32_t prev_gen_cnt = 0; - MLX5_ASSERT(h && entry); + MLX5_ASSERT(h); /* Use write lock directly for write-most list. */ if (!h->write_most) { prev_gen_cnt = __atomic_load_n(&h->gen_cnt, __ATOMIC_ACQUIRE);