[PKT_SCHED]: Kill pkt_act.h inlining.
commite9ce1cd3cf6cf35b21d0ce990f2e738f35907386
authorDavid S. Miller <davem@sunset.davemloft.net>
Tue, 22 Aug 2006 06:54:55 +0000 (21 23:54 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 21:55:10 +0000 (22 14:55 -0700)
tree22a3ee7b78ae7cbf00520c66dcc389d87740069c
parent2e4ca75b31b6851dcc036c2cdebf3ecfe279a653
[PKT_SCHED]: Kill pkt_act.h inlining.

This was simply making templates of functions and mostly causing a lot
of code duplication in the classifier action modules.

We solve this more cleanly by having a common "struct tcf_common" that
hash worker functions contained once in act_api.c can work with.

Callers work with real action objects that have the common struct
plus their module specific struct members.  You go from a common
object to the higher level one using a "to_foo()" macro which makes
use of container_of() to do the dirty work.

This also kills off act_generic.h which was only used by act_simple.c
and keeping it around was more work than the it's value.

Signed-off-by: David S. Miller <davem@davemloft.net>
15 files changed:
include/net/act_api.h
include/net/act_generic.h [deleted file]
include/net/pkt_act.h [deleted file]
include/net/tc_act/tc_defact.h
include/net/tc_act/tc_gact.h
include/net/tc_act/tc_ipt.h
include/net/tc_act/tc_mirred.h
include/net/tc_act/tc_pedit.h
net/sched/act_api.c
net/sched/act_gact.c
net/sched/act_ipt.c
net/sched/act_mirred.c
net/sched/act_pedit.c
net/sched/act_police.c
net/sched/act_simple.c