aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2006-01-09 01:16:25 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-01-09 17:16:10 -0500
commit31bd06eb33bbabe643385a861d780d950ca73846 (patch)
tree6796f6c0b1d59c3310da49a4ed03fe911b229b22 /net
parentf43c5a0df38e12f53a3023175a12da9b7ef0df63 (diff)
[PKT_SCHED]: Remove some obsolete policer exports
Also make sure the legacy code is only built when CONFIG_NET_CLS_ACT is not set. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/sched/police.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/net/sched/police.c b/net/sched/police.c
index a8345163cc60..fa877f8f652c 100644
--- a/net/sched/police.c
+++ b/net/sched/police.c
@@ -407,7 +407,7 @@ police_cleanup_module(void)
407module_init(police_init_module); 407module_init(police_init_module);
408module_exit(police_cleanup_module); 408module_exit(police_cleanup_module);
409 409
410#endif 410#else /* CONFIG_NET_CLS_ACT */
411 411
412struct tcf_police * tcf_police_locate(struct rtattr *rta, struct rtattr *est) 412struct tcf_police * tcf_police_locate(struct rtattr *rta, struct rtattr *est)
413{ 413{
@@ -544,6 +544,7 @@ int tcf_police(struct sk_buff *skb, struct tcf_police *p)
544 spin_unlock(&p->lock); 544 spin_unlock(&p->lock);
545 return p->action; 545 return p->action;
546} 546}
547EXPORT_SYMBOL(tcf_police);
547 548
548int tcf_police_dump(struct sk_buff *skb, struct tcf_police *p) 549int tcf_police_dump(struct sk_buff *skb, struct tcf_police *p)
549{ 550{
@@ -600,13 +601,4 @@ errout:
600 return -1; 601 return -1;
601} 602}
602 603
603 604#endif /* CONFIG_NET_CLS_ACT */
604EXPORT_SYMBOL(tcf_police);
605EXPORT_SYMBOL(tcf_police_destroy);
606EXPORT_SYMBOL(tcf_police_dump);
607EXPORT_SYMBOL(tcf_police_dump_stats);
608EXPORT_SYMBOL(tcf_police_hash);
609EXPORT_SYMBOL(tcf_police_ht);
610EXPORT_SYMBOL(tcf_police_locate);
611EXPORT_SYMBOL(tcf_police_lookup);
612EXPORT_SYMBOL(tcf_police_new_index);