diff options
author | Patrick McHardy <kaber@trash.net> | 2006-01-08 22:15:34 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-09 14:16:08 -0800 |
commit | f43c5a0df38e12f53a3023175a12da9b7ef0df63 (patch) | |
tree | 9568a14353e93cffc0f59525c069b68305479520 /net/sched/police.c | |
parent | 538e43a4bd36ae49873ef7097a16a207f5d9912b (diff) |
[PKT_SCHED]: Convert tc action functions to single skb pointers
tcf_action_exec only gets a single skb pointer and doesn't own the skb,
but passes double skb pointers (to a local variable) to the action
functions. Change to use single skb pointers everywhere.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/police.c')
-rw-r--r-- | net/sched/police.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sched/police.c b/net/sched/police.c index eb39fb2f39b..a8345163cc6 100644 --- a/net/sched/police.c +++ b/net/sched/police.c @@ -284,11 +284,10 @@ static int tcf_act_police_cleanup(struct tc_action *a, int bind) return 0; } -static int tcf_act_police(struct sk_buff **pskb, struct tc_action *a, +static int tcf_act_police(struct sk_buff *skb, struct tc_action *a, struct tcf_result *res) { psched_time_t now; - struct sk_buff *skb = *pskb; struct tcf_police *p = PRIV(a); long toks; long ptoks = 0; |