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.
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 ma
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
@@