#include <net/ip_tunnels.h>
#include <linux/indirect_call_wrapper.h>
+#ifdef CONFIG_IPV6_MULTIPLE_TABLES
+#define INDIRECT_CALL_MT(f, f2, f1, ...) \
+ INDIRECT_CALL_INET(f, f2, f1, __VA_ARGS__)
+#else
+#define INDIRECT_CALL_MT(f, f2, f1, ...) INDIRECT_CALL_1(f, f1, __VA_ARGS__)
+#endif
+
static const struct fib_kuid_range fib_kuid_range_unset = {
KUIDT_INIT(0),
KUIDT_INIT(~0),
uid_gt(fl->flowi_uid, rule->uid_range.end))
goto out;
- ret = INDIRECT_CALL_INET(ops->match,
- fib6_rule_match,
- fib4_rule_match,
- rule, fl, flags);
+ ret = INDIRECT_CALL_MT(ops->match,
+ fib6_rule_match,
+ fib4_rule_match,
+ rule, fl, flags);
out:
return (rule->flags & FIB_RULE_INVERT) ? !ret : ret;
}
} else if (rule->action == FR_ACT_NOP)
continue;
else
- err = INDIRECT_CALL_INET(ops->action,
- fib6_rule_action,
- fib4_rule_action,
- rule, fl, flags, arg);
-
- if (!err && ops->suppress && INDIRECT_CALL_INET(ops->suppress,
- fib6_rule_suppress,
- fib4_rule_suppress,
- rule, arg))
+ err = INDIRECT_CALL_MT(ops->action,
+ fib6_rule_action,
+ fib4_rule_action,
+ rule, fl, flags, arg);
+
+ if (!err && ops->suppress && INDIRECT_CALL_MT(ops->suppress,
+ fib6_rule_suppress,
+ fib4_rule_suppress,
+ rule, arg))
continue;
if (err != -EAGAIN) {