From 74c4155dc472651be9c40528657bdf35bfffd87c Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 26 Sep 2020 16:30:37 +0200 Subject: ipcpd: Improve locking np1_flow_set in eth and udp A flow_set is thread-safe and doesn't need to be protected by a lock. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/eth/eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ipcpd/eth') diff --git a/src/ipcpd/eth/eth.c b/src/ipcpd/eth/eth.c index 618ba44f..324c1ddc 100644 --- a/src/ipcpd/eth/eth.c +++ b/src/ipcpd/eth/eth.c @@ -1790,10 +1790,10 @@ static int eth_ipcp_flow_dealloc(int fd) #endif ipcp_flow_fini(fd); - pthread_rwlock_wrlock(ð_data.flows_lock); - fset_del(eth_data.np1_flows, fd); + pthread_rwlock_wrlock(ð_data.flows_lock); + #if defined(BUILD_ETH_DIX) eth_data.fd_to_ef[fd].r_eid = -1; #elif defined BUILD_ETH_LLC -- cgit v1.2.3