aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/fib6_notifier.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2017-08-03 13:28:18 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-03 15:36:00 -0700
commitdcb18f762f6ac83a6dc9cdc26dd694dcc167beb7 (patch)
treefad7aaa2d2aac7cb2db4908987cf0da97e9c25a7 /net/ipv6/fib6_notifier.c
parentipv6: fib: Add in-kernel notifications for route add / delete (diff)
downloadlinux-dev-dcb18f762f6ac83a6dc9cdc26dd694dcc167beb7.tar.xz
linux-dev-dcb18f762f6ac83a6dc9cdc26dd694dcc167beb7.zip
ipv6: fib_rules: Dump rules during registration to FIB chain
Allow users of the FIB notification chain to receive a complete view of the IPv6 FIB rules upon registration to the chain. The integrity of the dump is ensured by a per-family sequence counter that is incremented (under RTNL) whenever a rule is added or deleted. All the sequence counters are read (under RTNL) and summed, prior and after the dump. In case the counters differ, then the dump is either restarted or the registration fails. 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>
Diffstat (limited to 'net/ipv6/fib6_notifier.c')
-rw-r--r--net/ipv6/fib6_notifier.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/fib6_notifier.c b/net/ipv6/fib6_notifier.c
index c2bb1ab5b5eb..298efc678f3b 100644
--- a/net/ipv6/fib6_notifier.c
+++ b/net/ipv6/fib6_notifier.c
@@ -23,12 +23,12 @@ int call_fib6_notifiers(struct net *net, enum fib_event_type event_type,
static unsigned int fib6_seq_read(struct net *net)
{
- return 0;
+ return fib6_rules_seq_read(net);
}
static int fib6_dump(struct net *net, struct notifier_block *nb)
{
- return 0;
+ return fib6_rules_dump(net, nb);
}
static const struct fib_notifier_ops fib6_notifier_ops_template = {