]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
neigh: restore old behaviour of default parms values
authorJiri Pirko <jiri@resnulli.us>
Sat, 7 Dec 2013 18:26:56 +0000 (19:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Dec 2013 01:56:12 +0000 (20:56 -0500)
commit1d4c8c29841b9991cdf3c7cc4ba7f96a94f104ca
tree735b39613dad7918e27f2348fa07c6f101d27e17
parent73af614aedd221df8495fc8c9993c50e87f899f2
neigh: restore old behaviour of default parms values

Previously inet devices were only constructed when addresses are added.
Therefore the default neigh parms values they get are the ones at the
time of these operations.

Now that we're creating inet devices earlier, this changes the behaviour
of default neigh parms values in an incompatible way (see bug #8519).

This patch creates a compromise by setting the default values at the
same point as before but only for those that have not been explicitly
set by the user since the inet device's creation.

Introduced by:
commit 8030f54499925d073a88c09f30d5d844fb1b3190
Author: Herbert Xu <herbert@gondor.apana.org.au>
Date:   Thu Feb 22 01:53:47 2007 +0900

    [IPV4] devinet: Register inetdev earlier.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/inetdevice.h
include/net/neighbour.h
net/core/neighbour.c
net/ipv4/devinet.c
net/ipv4/ipmr.c