ipv6: fib_rules: Check if rule is a default rule
authorIdo Schimmel <idosch@mellanox.com>
Thu, 3 Aug 2017 11:28:15 +0000 (13:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 22:35:59 +0000 (15:35 -0700)
commite3ea973159d53559c5ae9a9dbc824da9aba6cac0
treeab5d466ecd8c66c880b490069e15ba213ede6949
parent1b2a4440858857f2f93bb2ec5bb3a60f4fcc25be
ipv6: fib_rules: Check if rule is a default rule

As explained in commit 3c71006d15fd ("ipv4: fib_rules: Check if rule is
a default rule"), drivers supporting IPv6 FIB offload need to be able to
sanitize the rules they don't support and potentially flush their
tables.

Add an IPv6 helper to check if a FIB rule is a default rule.

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/ip6_fib.h
net/ipv6/fib6_rules.c