summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/neighbor_cache.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-11-24 23:40:55 +0000
committergVisor bot <gvisor-bot@google.com>2020-11-24 23:40:55 +0000
commit7e4b4bcc8c5bf7a0c2133137cd3b6c57ca127d43 (patch)
tree20fa31f4029f92e6d35e6a86ad532aaa52c1918a /pkg/tcpip/stack/neighbor_cache.go
parent5a994e663e1c392ef01cdc86b4c6b2782d6e2f65 (diff)
parent99f2d0ea2f2ec7a9758584d53db64008be33fac4 (diff)
Merge release-20201109.0-114-g99f2d0ea2 (automated)
Diffstat (limited to 'pkg/tcpip/stack/neighbor_cache.go')
-rw-r--r--pkg/tcpip/stack/neighbor_cache.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/neighbor_cache.go b/pkg/tcpip/stack/neighbor_cache.go
index 13ea2d1d9..0d3f626cf 100644
--- a/pkg/tcpip/stack/neighbor_cache.go
+++ b/pkg/tcpip/stack/neighbor_cache.go
@@ -233,6 +233,8 @@ func (n *neighborCache) addStaticEntry(addr tcpip.Address, linkAddr tcpip.LinkAd
}
// removeEntryLocked removes the specified entry from the neighbor cache.
+//
+// Prerequisite: n.mu and entry.mu MUST be locked.
func (n *neighborCache) removeEntryLocked(entry *neighborEntry) {
if entry.neigh.State != Static {
n.dynamic.lru.Remove(entry)