neigh: respect default parms values
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 4 repliesIn review
- v15 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- use neigh_parms->tbl->family as suggested by davem
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | neigh: convert parms to an arrayinclude/ net/ net/ +4 more | +238 | 0 replies | |
| 2/5 | neigh: wrap proc dointvec functionsinclude/ net/ net/ | +59 | 0 replies | |
| 3/5 | neigh: use tbl->family to distinguish ipv4 from ipv6include/ net/ net/ +3 more | +23 | 0 replies | |
| 4/5 | neigh: restore old behaviour of default parms valuesinclude/ include/ net/ +2 more | +92 | 2 replies | |
| 5/5 | neigh: ipv6: respect default values set before an address is assigned to deviceinclude/ net/ net/ | +15 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [patch net-next v2 0/5] neigh: respect default parms values
This is a long standing regression. But since the patchset is bigger and the regression happened in 2007, I'm proposing this to net-next instead.
Basically the problem is that if user wants to use /etc/sysctl.conf to specify default values of neigh related params, he is not able to do that.
The reason is that the default values are copied to dev instance right after netdev is registered. And that is way to early. The original behaviour for ipv4 was that this happened after first address was assigned to device. For ipv6 this was apparently from the very beginning.
So this patchset basically reverts the behaviour back to what it was in 2007 for ipv4 and changes the behaviour for ipv6 so they are both the same.
v1->v2:
- use neigh_parms->tbl->family as suggested by davem
Jiri Pirko (5):
neigh: convert parms to an array
neigh: wrap proc dointvec functions
neigh: use tbl->family to distinguish ipv4 from ipv6
neigh: restore old behaviour of default parms values
neigh: ipv6: respect default values set before an address is assigned
to device
include/linux/inetdevice.h | 7 + include/net/addrconf.h | 7 + include/net/neighbour.h | 77 ++++++-- net/802/hippi.c | 4 +- net/core/neighbour.c | 451 +++++++++++++++++++++++++-------------------- net/decnet/dn_neigh.c | 28 +-- net/ipv4/arp.c | 35 ++-- net/ipv4/devinet.c | 4 +- net/ipv4/ipmr.c | 2 + net/ipv6/addrconf.c | 16 +- net/ipv6/ndisc.c | 55 +++--- 11 files changed, 414 insertions(+), 272 deletions(-)
Signature · 1 line
1.8.3.1