diff options
author | Scott Feldman <sfeldma@gmail.com> | 2015-03-06 00:21:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-06 00:24:58 -0500 |
commit | 104616e74e0b464d449fdd2ee2f547d2fad71610 (patch) | |
tree | d4b32f6edd854bf4188abcea58ec84616a466df4 /net/switchdev | |
parent | 5e8d90497d65f528c54015644095ace6e330fd8e (diff) |
switchdev: don't support custom ip rules, for now
Keep switchdev FIB offload model simple for now and don't allow custom ip
rules.
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev')
-rw-r--r-- | net/switchdev/switchdev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c index 3c090f8d071b..81c4c0274b9b 100644 --- a/net/switchdev/switchdev.c +++ b/net/switchdev/switchdev.c | |||
@@ -242,6 +242,10 @@ EXPORT_SYMBOL(ndo_dflt_netdev_switch_port_bridge_dellink); | |||
242 | int netdev_switch_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi, | 242 | int netdev_switch_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi, |
243 | u8 tos, u8 type, u32 tb_id) | 243 | u8 tos, u8 type, u32 tb_id) |
244 | { | 244 | { |
245 | /* Don't offload route if using custom ip rules */ | ||
246 | if (fi->fib_net->ipv4.fib_has_custom_rules) | ||
247 | return 0; | ||
248 | |||
245 | return 0; | 249 | return 0; |
246 | } | 250 | } |
247 | EXPORT_SYMBOL(netdev_switch_fib_ipv4_add); | 251 | EXPORT_SYMBOL(netdev_switch_fib_ipv4_add); |