Skip to content

Commit d84231d

Browse files
congwangdavem330
authored andcommitted
net_sched: remove get_stats from tc_action_ops
It is not used. Cc: Jamal Hadi Salim <[email protected]> Cc: David S. Miller <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: Jamal Hadi Salim <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cea883b commit d84231d

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

include/net/act_api.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ struct tc_action_ops {
7272
__u32 capab; /* capabilities includes 4 bit version */
7373
struct module *owner;
7474
int (*act)(struct sk_buff *, const struct tc_action *, struct tcf_result *);
75-
int (*get_stats)(struct sk_buff *, struct tc_action *);
7675
int (*dump)(struct sk_buff *, struct tc_action *, int, int);
7776
int (*cleanup)(struct tc_action *, int bind);
7877
int (*lookup)(struct tc_action *, u32);

net/sched/act_api.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,6 @@ int tcf_action_copy_stats(struct sk_buff *skb, struct tc_action *a,
637637
if (err < 0)
638638
goto errout;
639639

640-
if (a->ops != NULL && a->ops->get_stats != NULL)
641-
if (a->ops->get_stats(skb, a) < 0)
642-
goto errout;
643-
644640
if (gnet_stats_copy_basic(&d, &h->tcf_bstats) < 0 ||
645641
gnet_stats_copy_rate_est(&d, &h->tcf_bstats,
646642
&h->tcf_rate_est) < 0 ||

0 commit comments

Comments
 (0)