Message ID | 1385937009-589-4-git-send-email-jhs@mojatatu.com |
---|---|
State | Changes Requested, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 3c974a0..d275482 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -280,8 +280,11 @@ int tcf_register_action(struct tc_action_ops *act) act->next = NULL; *ap = act; + /* Supply defaults */ if (!act->lookup) act->lookup = tcf_hash_search; + if (!act->walk) + act->walk = tcf_generic_walker; write_unlock(&act_mod_lock); return 0;
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com> --- net/sched/act_api.c | 3 +++ 1 file changed, 3 insertions(+)