]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: fib: Add events for FIB replace and append
authorIdo Schimmel <idosch@mellanox.com>
Thu, 9 Feb 2017 09:28:41 +0000 (10:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 16:32:13 +0000 (11:32 -0500)
commit9aa6f32a947006a73bcefca46616a2cb8abd0ab8
tree74476aac40af2e1c35b7208e4dbc8fb9bb8a54fd
parent11da2912699245b2adb3249b8b0c5c393b91f764
ipv4: fib: Add events for FIB replace and append

The FIB notification chain currently uses the NLM_F_{REPLACE,APPEND}
flags to signal routes being replaced or appended.

Instead of using netlink flags for in-kernel notifications we can simply
introduce two new events in the FIB notification chain. This has the
added advantage of making the API cleaner, thereby making it clear that
these events should be supported by listeners of the notification chain.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
CC: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_trie.c