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>
Showing
- include/net/ip_fib.h 15 additions, 0 deletionsinclude/net/ip_fib.h
- net/ipv4/Makefile 1 addition, 1 deletionnet/ipv4/Makefile
- net/ipv4/fib_notifier.c 86 additions, 0 deletionsnet/ipv4/fib_notifier.c
- net/ipv4/fib_rules.c 9 additions, 0 deletionsnet/ipv4/fib_rules.c
- net/ipv4/fib_trie.c 2 additions, 95 deletionsnet/ipv4/fib_trie.c
Please register or sign in to comment