]> git.baikalelectronics.ru Git - 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)
commit42a0bb58b736e53634a4940c3200d9941013aa8a
tree735b39613dad7918e27f2348fa07c6f101d27e17
parenta6865c9b501795e46f5f7135d109ab2b71fb84b2
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 da6b8022120955a56dbf326e7a4b9097756b56ed
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