net: fib_notifier: Add temporary events to the FIB notification chain
authorIdo Schimmel <idosch@mellanox.com>
Mon, 23 Dec 2019 13:28:12 +0000 (15:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Dec 2019 06:37:29 +0000 (22:37 -0800)
Subsequent patches are going to simplify the IPv6 route offload API,
which will only use three events - replace, delete and append.

Introduce a temporary version of replace and delete in order to make the
conversion easier to review. Note that append does not need a temporary
version, as it is currently not used.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/fib_notifier.h

index 6d59221..b3c5432 100644 (file)
@@ -23,6 +23,8 @@ enum fib_event_type {
        FIB_EVENT_NH_DEL,
        FIB_EVENT_VIF_ADD,
        FIB_EVENT_VIF_DEL,
+       FIB_EVENT_ENTRY_REPLACE_TMP,
+       FIB_EVENT_ENTRY_DEL_TMP,
 };
 
 struct fib_notifier_ops {