• Stephen Hemminger's avatar
    net: neighbour table ABI problem · b9f5f52c
    Stephen Hemminger authored
    The neighbor table time of last use information is returned in the
    incorrect unit. Kernel to user space ABI's need to use USER_HZ (or
    milliseconds), otherwise the application has to try and discover the
    real system HZ value which is problematic.  Linux has standardized on
    keeping USER_HZ consistent (100hz) even when kernel is running
    internally at some other value.
    
    This change is small, but it breaks the ABI for older version of
    iproute2 utilities.  But these utilities are already broken since they
    are looking at the psched_hz values which are completely different. So
    let's just go ahead and fix both kernel and user space. Older
    utilities will just print wrong values.
    Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b9f5f52c
neighbour.c 66.7 KB