efd: fix write unlock during ring creation
In rte_efd_create() write lock has already been unlocked
before ring creation itself.
So second unlock after the ring creation has been removed.
Fixes: 56b6ef874f
("efd: new Elastic Flow Distributor library")
Cc: stable@dpdk.org
Signed-off-by: Chaitanya Babu Talluri <tallurix.chaitanya.babu@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
parent
c04e679e86
commit
f493119397
@ -692,7 +692,8 @@ rte_efd_create(const char *name, uint32_t max_num_rules, uint32_t key_len,
|
||||
offline_cpu_socket, 0);
|
||||
if (r == NULL) {
|
||||
RTE_LOG(ERR, EFD, "memory allocation failed\n");
|
||||
goto error_unlock_exit;
|
||||
rte_efd_free(table);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Populate free slots ring. Entry zero is reserved for key misses. */
|
||||
|
Loading…
Reference in New Issue
Block a user