• Pavel Emelyanov's avatar
    [IPV4]: Use ctl paths to register devinet sysctls · bfada697
    Pavel Emelyanov authored
    This looks very much like the patch for neighbors.
    
    The path is also located on the stack and is prepared
    inside the function. This time, the call to the registering
    function is guarded with the RTNL lock, but I decided
    to keep it on the stack not to litter the devinet.c file
    with unneeded names and to make it look similar to the
    neighbors code.
    
    This is also intended to help us with the net namespaces
    and saves the vmlinux size as well - this time by more
    than 670 bytes.
    
    The difference from the first version is just the patch
    offsets, that changed due to changes in the patch #2.
    Signed-off-by: default avatarPavel Emelyanov <xemul@openvz.org>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    bfada697
devinet.c 36.7 KB