Skip to content
Commit 7b6e7d60 authored by Robert Lubos's avatar Robert Lubos Committed by Maureen Helm
Browse files

net: ipv6: Improve Neighbor Discovery thread safety



Currently, the only thread-safe part of the IPv6 Neighbor processing
implementation are stale_counter related operation.

Fix this, by extending the mutex protection over all of the module, so
that message handlers, timers and API functions do not interfere with
each other.

As IPv6 Neighbor cache is tightly coupled with the Routing module, use
the same mutex to protect both, neighbor and routing tables, to prevent
deadlocks.

Also, replace the semaphore used with a mutex, as it seems more fit for
this particular job.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 3c5172ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment