Subject: [PATCH ] net_sched: actions - Add default lookup

From: Jamal Hadi Salim <[email-masked]>
Date: Wed, 30 Oct 2013 07:25:41 -0400

Attached. Tested with simple action.

cheers,
jamal
commit 80f80120ba4b85daf00c53eceebe7f0ad0b58a57
Author: Jamal Hadi Salim <[email-masked]>
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 <[email-masked]>

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;
 }