netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch net-next v2 0/5] neigh: respect default parms values
@ 2013-12-07 18:26 Jiri Pirko
  2013-12-07 18:26 ` [patch net-next v2 1/5] neigh: convert parms to an array Jiri Pirko
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Jiri Pirko @ 2013-12-07 18:26 UTC (permalink / raw)
  To: netdev
  Cc: davem, kuznet, jmorris, yoshfuji, kaber, hannes, bcrl, gaofeng,
	joe, herbert

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(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-12-10 14:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-07 18:26 [patch net-next v2 0/5] neigh: respect default parms values Jiri Pirko
2013-12-07 18:26 ` [patch net-next v2 1/5] neigh: convert parms to an array Jiri Pirko
2013-12-07 18:26 ` [patch net-next v2 2/5] neigh: wrap proc dointvec functions Jiri Pirko
2013-12-07 18:26 ` [patch net-next v2 3/5] neigh: use tbl->family to distinguish ipv4 from ipv6 Jiri Pirko
2013-12-07 18:26 ` [patch net-next v2 4/5] neigh: restore old behaviour of default parms values Jiri Pirko
2013-12-10 14:09   ` Or Gerlitz
2013-12-10 14:51     ` Jiri Pirko
2013-12-07 18:26 ` [patch net-next v2 5/5] neigh: ipv6: respect default values set before an address is assigned to device Jiri Pirko
2013-12-09 11:52 ` [patch net-next v2 0/5] neigh: respect default parms values Herbert Xu
2013-12-10  1:56 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).