Skip to content
  • Neil Horman's avatar
    core: add stat to track unresolved discards in neighbor cache · 9a6d276e
    Neil Horman authored
    
    
    in __neigh_event_send, if we have a neighbour entry which is in
    NUD_INCOMPLETE state, we enqueue any outbound frames to that neighbour
    to the neighbours arp_queue, which is default capped to a length of 3
    skbs.  If that queue exceeds its set length, it will drop an skb on
    the queue to enqueue the newly arrived skb.  This results in a drop
    for which we have no statistics incremented.  This patch adds an
    unresolved_discards stat to /proc/net/stat/ndisc_cache to track these
    lost frames.
    
    Signed-off-by: default avatarNeil Horman <nhorman@tuxdriver.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9a6d276e