[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1385937009-589-2-git-send-email-jhs@mojatatu.com>
Date: Sun, 1 Dec 2013 17:30:06 -0500
From: Jamal Hadi Salim <jhs@...atatu.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, eric.dumazet@...il.com,
alexander.h.duyck@...el.com, ebiederm@...ssion.com,
jhs@...atatu.com
Subject: [PATCH 1/4] Provide default lookup function for actions that dont provide one
Signed-off-by: Jamal Hadi Salim <jhs@...atatu.com>
---
net/sched/act_api.c | 4 ++++
1 file changed, 4 insertions(+)
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;
}
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists