Skip to content

Commit a1f3316

Browse files
committed
ipv4: Move fib_has_custom_local_routes outside of IP_MULTIPLE_TABLES.
> net/ipv4/fib_frontend.c: In function 'fib_validate_source': > net/ipv4/fib_frontend.c:411:16: error: 'struct netns_ipv4' has no member named 'fib_has_custom_local_routes' > if (net->ipv4.fib_has_custom_local_routes) > ^ > net/ipv4/fib_frontend.c: In function 'inet_rtm_newroute': > net/ipv4/fib_frontend.c:773:12: error: 'struct netns_ipv4' has no member named 'fib_has_custom_local_routes' > net->ipv4.fib_has_custom_local_routes = true; > ^ Fixes: 6e617de ("net: avoid a full fib lookup when rp_filter is disabled.") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8447779 commit a1f3316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/netns/ipv4.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ struct netns_ipv4 {
4949
#ifdef CONFIG_IP_MULTIPLE_TABLES
5050
struct fib_rules_ops *rules_ops;
5151
bool fib_has_custom_rules;
52-
bool fib_has_custom_local_routes;
5352
struct fib_table __rcu *fib_main;
5453
struct fib_table __rcu *fib_default;
5554
#endif
55+
bool fib_has_custom_local_routes;
5656
#ifdef CONFIG_IP_ROUTE_CLASSID
5757
int fib_num_tclassid_users;
5858
#endif

0 commit comments

Comments
 (0)