commit 80f80120ba4b85daf00c53eceebe7f0ad0b58a57 Author: Jamal Hadi Salim Date: Wed Oct 30 07:03:55 2013 -0400 Provide default lookup function for actions that dont provide one Signed-off-by: Jamal Hadi Salim diff --git a/net/sched/act_api.c b/net/sched/act_api.c index fd70728..3c974a0 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -279,6 +279,10 @@ int tcf_register_action(struct tc_action_ops *act) } act->next = NULL; *ap = act; + + if (!act->lookup) + act->lookup = tcf_hash_search; + write_unlock(&act_mod_lock); return 0; }