summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/neighbor_cache.go
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2021-04-10 00:58:43 -0700
committergVisor bot <gvisor-bot@google.com>2021-04-10 01:00:41 -0700
commit2fea7d096b6224da50e09fa4bace7f3c203ed074 (patch)
tree34e3420bf4e5822d55a49cecf6f9092d3b30363c /pkg/tcpip/stack/neighbor_cache.go
parentd1edabdca016b9d80295855a3ce6d2816486d65c (diff)
Don't store accepted endpoints in a channel
Use a linked list with cached length and capacity. The current channel is already composed with a mutex and condition variable, and is never used for its channel-like properties. Channels also require eager allocation equal to their capacity, which a linked list does not. PiperOrigin-RevId: 367766626
Diffstat (limited to 'pkg/tcpip/stack/neighbor_cache.go')
0 files changed, 0 insertions, 0 deletions