Commit e1315db1 authored by Scott Feldman's avatar Scott Feldman Committed by David S. Miller

switchdev: fix CONFIG_IP_MULTIPLE_TABLES compile issue

Signed-off-by: default avatarScott Feldman <sfeldma@gmail.com>
Acked-by: default avatarJiri Pirko <jiri@resnulli.us>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 23375a0f
...@@ -309,8 +309,12 @@ int netdev_switch_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi, ...@@ -309,8 +309,12 @@ int netdev_switch_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi,
* IPv4 FIB offloading has been disabled completely. * IPv4 FIB offloading has been disabled completely.
*/ */
if (fi->fib_net->ipv4.fib_has_custom_rules | #ifdef CONFIG_IP_MULTIPLE_TABLES
fi->fib_net->ipv4.fib_offload_disabled) if (fi->fib_net->ipv4.fib_has_custom_rules)
return 0;
#endif
if (fi->fib_net->ipv4.fib_offload_disabled)
return 0; return 0;
dev = netdev_switch_get_dev_by_nhs(fi); dev = netdev_switch_get_dev_by_nhs(fi);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment