summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2004-11-02 22:03:22 -0800
committerDavid S. Miller <davem@nuts.davemloft.net>2004-11-02 22:03:22 -0800
commit368021721834a8f91d7295b4aaedee04d82ea07c (patch)
treefb79463fad1a3be4c1ebf631ce81f42eddfaa751
parent00a89393ff2c2fc9bbf7919f07a3bea25afcdd5c (diff)
[PKT_SCHED]: pedit: use gnet_stats for action stats
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/sched/pedit.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/net/sched/pedit.c b/net/sched/pedit.c
index 7df7038b8880..bbe28664b1e9 100644
--- a/net/sched/pedit.c
+++ b/net/sched/pedit.c
@@ -183,10 +183,10 @@ tcf_pedit(struct sk_buff **pskb, struct tc_action *a)
}
bad:
- p->stats.overlimits++;
+ p->qstats.overlimits++;
done:
- p->stats.bytes += skb->len;
- p->stats.packets++;
+ p->bstats.bytes += skb->len;
+ p->bstats.packets++;
spin_unlock(&p->lock);
return p->action;
}
@@ -255,17 +255,6 @@ rtattr_failure:
return -1;
}
-int
-tcf_pedit_stats(struct sk_buff *skb, struct tc_action *a)
-{
- struct tcf_pedit *p;
- p = PRIV(a,pedit);
- if (NULL != p)
- return qdisc_copy_stats(skb, &p->stats, p->stats_lock);
-
- return 1;
-}
-
static
struct tc_action_ops act_pedit_ops = {
.kind = "pedit",
@@ -273,7 +262,6 @@ struct tc_action_ops act_pedit_ops = {
.capab = TCA_CAP_NONE,
.owner = THIS_MODULE,
.act = tcf_pedit,
- .get_stats = tcf_pedit_stats,
.dump = tcf_pedit_dump,
.cleanup = tcf_pedit_cleanup,
.lookup = tcf_hash_search,