aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip_fib.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/ip_fib.h')
-rw-r--r--include/net/ip_fib.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h
index dfb95d732aa5..025b225181e1 100644
--- a/include/net/ip_fib.h
+++ b/include/net/ip_fib.h
@@ -120,8 +120,6 @@ struct fib_result_nl {
120 int err; 120 int err;
121}; 121};
122 122
123extern struct hlist_head fib_table_hash[];
124
125#ifdef CONFIG_IP_ROUTE_MULTIPATH 123#ifdef CONFIG_IP_ROUTE_MULTIPATH
126 124
127#define FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel]) 125#define FIB_RES_NH(res) ((res).fi->fib_nh[(res).nh_sel])
@@ -170,8 +168,8 @@ static inline struct fib_table *fib_get_table(struct net *net, u32 id)
170 struct hlist_head *ptr; 168 struct hlist_head *ptr;
171 169
172 ptr = id == RT_TABLE_LOCAL ? 170 ptr = id == RT_TABLE_LOCAL ?
173 &fib_table_hash[TABLE_LOCAL_INDEX] : 171 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX] :
174 &fib_table_hash[TABLE_MAIN_INDEX]; 172 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX];
175 return hlist_entry(ptr->first, struct fib_table, tb_hlist); 173 return hlist_entry(ptr->first, struct fib_table, tb_hlist);
176} 174}
177 175