Skip to content

neigh: respect default parms values

Jiri Pirko netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 4 repliesIn review
  2. 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 filesSizeRepliesApplied
1/5neigh: convert parms to an arrayinclude/net/neighbour.h net/802/hippi.c net/core/neighbour.c +4 more+238 -2570 replies
2/5neigh: wrap proc dointvec functionsinclude/net/neighbour.h net/core/neighbour.c net/ipv6/ndisc.c+59 -150 replies
3/5neigh: use tbl->family to distinguish ipv4 from ipv6include/net/neighbour.h net/core/neighbour.c net/ipv4/arp.c +3 more+23 -60 replies
4/5neigh: restore old behaviour of default parms valuesinclude/linux/inetdevice.h include/net/neighbour.h net/core/neighbour.c +2 more+92 -62 replies
5/5neigh: ipv6: respect default values set before an address is assigned to deviceinclude/net/addrconf.h net/core/neighbour.c net/ipv6/addrconf.c+15 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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