netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH ] net_sched:  actions - Add default lookup
@ 2013-10-30 11:25 Jamal Hadi Salim
  2013-10-30 14:00 ` Eric Dumazet
  0 siblings, 1 reply; 7+ messages in thread
From: Jamal Hadi Salim @ 2013-10-30 11:25 UTC (permalink / raw)
  To: David Miller; +Cc: netdev@vger.kernel.org, Eric W. Biederman, Alexander Duyck

[-- Attachment #1: Type: text/plain, Size: 53 bytes --]


Attached. Tested with simple action.

cheers,
jamal

[-- Attachment #2: p1 --]
[-- Type: text/plain, Size: 613 bytes --]

commit 80f80120ba4b85daf00c53eceebe7f0ad0b58a57
Author: Jamal Hadi Salim <jhs@mojatatu.com>
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 <jhs@mojatatu.com>

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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-11-17 16:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-30 11:25 [PATCH ] net_sched: actions - Add default lookup Jamal Hadi Salim
2013-10-30 14:00 ` Eric Dumazet
2013-11-04  4:12   ` David Miller
2013-11-04  4:17     ` David Miller
2013-11-17 15:46       ` Jamal Hadi Salim
2013-11-17 16:23         ` Jamal Hadi Salim
2013-11-05 12:19     ` Jamal Hadi Salim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).