Skip to content
Snippets Groups Projects
Commit f6b72b62 authored by David S. Miller's avatar David S. Miller
Browse files

net: Embed hh_cache inside of struct neighbour.


Now that there is a one-to-one correspondance between neighbour
and hh_cache entries, we no longer need:

1) dynamic allocation
2) attachment to dst->hh
3) refcounting

Initialization of the hh_cache entry is indicated by hh_len
being non-zero, and such initialization is always done with
the neighbour's lock held as a writer.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 390fd0b3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment