]> git.baikalelectronics.ru Git - kernel.git/commit
net: fib_rules: Implement notification logic in core
authorIdo Schimmel <idosch@mellanox.com>
Thu, 3 Aug 2017 11:28:14 +0000 (13:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 22:35:59 +0000 (15:35 -0700)
commit303ac888fe6f256d95805afe3b4ef9f28aa2f992
treec21cbae70c8a580cf3ddf76cc735d6f5f8f78dd9
parent9c2154d86d05f6affd8c35f93797defc6b2caff5
net: fib_rules: Implement notification logic in core

Unlike the routing tables, the FIB rules share a common core, so instead
of replicating the same logic for each address family we can simply dump
the rules and send notifications from the core itself.

To protect the integrity of the dump, a rules-specific sequence counter
is added for each address family and incremented whenever a rule is
added or deleted (under RTNL).

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/fib_rules.h
include/net/ip_fib.h
net/core/fib_rules.c
net/ipv4/fib_notifier.c
net/ipv4/fib_rules.c