OSDN Git Service

ipv4: fib: Move FIB notification code to a separate file
authorIdo Schimmel <idosch@mellanox.com>
Fri, 10 Mar 2017 07:56:18 +0000 (08:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 17:45:09 +0000 (09:45 -0800)
commitc0243892cbb0e48873d6132f673c830602808245
tree8791a5ccdf38e91a3b9d7a091772287cb8c03088
parent71e8727ebee78f7f6711f272d6ba5d78d0852835
ipv4: fib: Move FIB notification code to a separate file

Most of the code concerned with the FIB notification chain currently
resides in fib_trie.c, but this isn't really appropriate, as the FIB
notification chain is also used for FIB rules.

Therefore, it makes sense to move the common FIB notification code to a
separate file and have it export the relevant functions, which can be
invoked by its different users (e.g., fib_trie.c, fib_rules.c).

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/Makefile
net/ipv4/fib_notifier.c [new file with mode: 0644]
net/ipv4/fib_rules.c
net/ipv4/fib_trie.c