Re: [ovs-dev] [PATCH RFC 1/5] Native tunnel: Read/write expires atomically.

2021-11-01 Thread Paolo Valerio
Flavio Leitner writes: > Hi Paolo, > > The lookup does not change cmap, but it changes the entry which can > be used by multiple threads. In that case, we would need a mutex to > modify the entry. However, in this specific case only 'expires' is > required to change, and other fields are static.

Re: [ovs-dev] [PATCH RFC 1/5] Native tunnel: Read/write expires atomically.

2021-10-25 Thread Flavio Leitner
Hi Paolo, The lookup does not change cmap, but it changes the entry which can be used by multiple threads. In that case, we would need a mutex to modify the entry. However, in this specific case only 'expires' is required to change, and other fields are static. Therefore, going with atomic op

[ovs-dev] [PATCH RFC 1/5] Native tunnel: Read/write expires atomically.

2021-10-07 Thread Paolo Valerio
Signed-off-by: Paolo Valerio --- lib/tnl-neigh-cache.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/lib/tnl-neigh-cache.c b/lib/tnl-neigh-cache.c index 5bda4af7e..a37456e6d 100644 --- a/lib/tnl-neigh-cache.c +++ b/lib/tnl-neigh-cache.c @@