• David S. Miller's avatar
    net: Embed hh_cache inside of struct neighbour. · f6b72b62
    David S. Miller authored
    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>
    f6b72b62
ip6_output.c 40.3 KB