You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
David S. Miller
parent
71e8727ebe
commit
c0243892cb
@@ -232,9 +232,24 @@ enum fib_event_type {
|
||||
int register_fib_notifier(struct notifier_block *nb,
|
||||
void (*cb)(struct notifier_block *nb));
|
||||
int unregister_fib_notifier(struct notifier_block *nb);
|
||||
int call_fib_notifier(struct notifier_block *nb, struct net *net,
|
||||
enum fib_event_type event_type,
|
||||
struct fib_notifier_info *info);
|
||||
int call_fib_notifiers(struct net *net, enum fib_event_type event_type,
|
||||
struct fib_notifier_info *info);
|
||||
|
||||
void fib_notify(struct net *net, struct notifier_block *nb,
|
||||
enum fib_event_type event_type);
|
||||
#ifdef CONFIG_IP_MULTIPLE_TABLES
|
||||
void fib_rules_notify(struct net *net, struct notifier_block *nb,
|
||||
enum fib_event_type event_type);
|
||||
#else
|
||||
static inline void fib_rules_notify(struct net *net, struct notifier_block *nb,
|
||||
enum fib_event_type event_type)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
struct fib_table {
|
||||
struct hlist_node tb_hlist;
|
||||
u32 tb_id;
|
||||
|
||||
Reference in New Issue
Block a user