Skip to content

Commit

Permalink
switchdev: fix CONFIG_IP_MULTIPLE_TABLES compile issue
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Scott Feldman authored and David S. Miller committed Mar 6, 2015
1 parent 23375a0 commit e1315db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions net/switchdev/switchdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

if (fi->fib_net->ipv4.fib_has_custom_rules |
fi->fib_net->ipv4.fib_offload_disabled)
#ifdef CONFIG_IP_MULTIPLE_TABLES
if (fi->fib_net->ipv4.fib_has_custom_rules)
return 0;
#endif

if (fi->fib_net->ipv4.fib_offload_disabled)
return 0;

dev = netdev_switch_get_dev_by_nhs(fi);
Expand Down

0 comments on commit e1315db

Please sign in to comment.