diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2013-12-16 08:15:04 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-18 21:52:07 +0400 |
commit | d84231d3a2b20bea26327d9b83c8bd8ba55dc68c (patch) | |
tree | ab6ebd222e0d70e088ea9c02b524c624b7c798f6 /net/sched/act_api.c | |
parent | cea883bb6851c15c41b476f65877bc5c1005605c (diff) | |
download | linux-d84231d3a2b20bea26327d9b83c8bd8ba55dc68c.tar.xz |
net_sched: remove get_stats from tc_action_ops
It is not used.
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_api.c')
-rw-r--r-- | net/sched/act_api.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 4adbce8f8314..51e28f7a4638 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -637,10 +637,6 @@ int tcf_action_copy_stats(struct sk_buff *skb, struct tc_action *a, if (err < 0) goto errout; - if (a->ops != NULL && a->ops->get_stats != NULL) - if (a->ops->get_stats(skb, a) < 0) - goto errout; - if (gnet_stats_copy_basic(&d, &h->tcf_bstats) < 0 || gnet_stats_copy_rate_est(&d, &h->tcf_bstats, &h->tcf_rate_est) < 0 || |