Commit 36802172 authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller

[PKT_SCHED]: pedit: use gnet_stats for action stats

Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 00a89393
...@@ -183,10 +183,10 @@ tcf_pedit(struct sk_buff **pskb, struct tc_action *a) ...@@ -183,10 +183,10 @@ tcf_pedit(struct sk_buff **pskb, struct tc_action *a)
} }
bad: bad:
p->stats.overlimits++; p->qstats.overlimits++;
done: done:
p->stats.bytes += skb->len; p->bstats.bytes += skb->len;
p->stats.packets++; p->bstats.packets++;
spin_unlock(&p->lock); spin_unlock(&p->lock);
return p->action; return p->action;
} }
...@@ -255,17 +255,6 @@ tcf_pedit_dump(struct sk_buff *skb, struct tc_action *a,int bind, int ref) ...@@ -255,17 +255,6 @@ tcf_pedit_dump(struct sk_buff *skb, struct tc_action *a,int bind, int ref)
return -1; 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 static
struct tc_action_ops act_pedit_ops = { struct tc_action_ops act_pedit_ops = {
.kind = "pedit", .kind = "pedit",
...@@ -273,7 +262,6 @@ struct tc_action_ops act_pedit_ops = { ...@@ -273,7 +262,6 @@ struct tc_action_ops act_pedit_ops = {
.capab = TCA_CAP_NONE, .capab = TCA_CAP_NONE,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.act = tcf_pedit, .act = tcf_pedit,
.get_stats = tcf_pedit_stats,
.dump = tcf_pedit_dump, .dump = tcf_pedit_dump,
.cleanup = tcf_pedit_cleanup, .cleanup = tcf_pedit_cleanup,
.lookup = tcf_hash_search, .lookup = tcf_hash_search,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment