mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
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>
This commit is contained in:
parent
cea883bb68
commit
d84231d3a2
2 changed files with 0 additions and 5 deletions
|
@ -72,7 +72,6 @@ struct tc_action_ops {
|
||||||
__u32 capab; /* capabilities includes 4 bit version */
|
__u32 capab; /* capabilities includes 4 bit version */
|
||||||
struct module *owner;
|
struct module *owner;
|
||||||
int (*act)(struct sk_buff *, const struct tc_action *, struct tcf_result *);
|
int (*act)(struct sk_buff *, const struct tc_action *, struct tcf_result *);
|
||||||
int (*get_stats)(struct sk_buff *, struct tc_action *);
|
|
||||||
int (*dump)(struct sk_buff *, struct tc_action *, int, int);
|
int (*dump)(struct sk_buff *, struct tc_action *, int, int);
|
||||||
int (*cleanup)(struct tc_action *, int bind);
|
int (*cleanup)(struct tc_action *, int bind);
|
||||||
int (*lookup)(struct tc_action *, u32);
|
int (*lookup)(struct tc_action *, u32);
|
||||||
|
|
|
@ -637,10 +637,6 @@ int tcf_action_copy_stats(struct sk_buff *skb, struct tc_action *a,
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
goto errout;
|
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 ||
|
if (gnet_stats_copy_basic(&d, &h->tcf_bstats) < 0 ||
|
||||||
gnet_stats_copy_rate_est(&d, &h->tcf_bstats,
|
gnet_stats_copy_rate_est(&d, &h->tcf_bstats,
|
||||||
&h->tcf_rate_est) < 0 ||
|
&h->tcf_rate_est) < 0 ||
|
||||||
|
|
Loading…
Reference in a new issue