• David Miller's avatar
    ipv4: Inline neigh binding. · 3769cffb
    David Miller authored
    Get rid of all of the useless and costly indirection
    by doing the neigh hash table lookup directly inside
    of the neighbour binding.
    
    Rename from arp_bind_neighbour to rt_bind_neighbour.
    
    Use new helpers {__,}ipv4_neigh_lookup()
    
    In rt_bind_neighbour() get rid of useless tests which
    are never true in the context this function is called,
    namely dev is never NULL and the dst->neighbour is
    always NULL.
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3769cffb
arp.c 35.5 KB