netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 1/6] sched: remove get_stats from tc_action_ops
@ 2013-12-12  6:30 Cong Wang
  2013-12-12  6:30 ` [PATCH net-next 2/6] act: use standard struct list_head Cong Wang
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Cong Wang @ 2013-12-12  6:30 UTC (permalink / raw)
  To: netdev; +Cc: Cong Wang, Jamal Hadi Salim, David S. Miller

It is no longer used.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
---
 include/net/act_api.h | 1 -
 net/sched/act_api.c   | 4 ----
 2 files changed, 5 deletions(-)

diff --git a/include/net/act_api.h b/include/net/act_api.h
index 9e90fdf..04c6825 100644
--- a/include/net/act_api.h
+++ b/include/net/act_api.h
@@ -72,7 +72,6 @@ struct tc_action_ops {
 	__u32 	capab;  /* capabilities includes 4 bit version */
 	struct module		*owner;
 	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     (*cleanup)(struct tc_action *, int bind);
 	int     (*lookup)(struct tc_action *, u32);
diff --git a/net/sched/act_api.c b/net/sched/act_api.c
index 4adbce8..51e28f7 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 ||
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-12-12 19:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-12  6:30 [PATCH net-next 1/6] sched: remove get_stats from tc_action_ops Cong Wang
2013-12-12  6:30 ` [PATCH net-next 2/6] act: use standard struct list_head Cong Wang
2013-12-12  6:30 ` [PATCH net-next 3/6] mirred: remove action when the target device is gone Cong Wang
2013-12-12  6:30 ` [PATCH net-next 4/6] cls: refactor out struct tcf_ext_map Cong Wang
2013-12-12  6:30 ` [PATCH net-next 5/6] sched: init struct tcf_hashinfo at register time Cong Wang
2013-12-12  6:30 ` [PATCH net-next 6/6] sched: convert tcf_hashinfo to hlist and use rcu Cong Wang
2013-12-12 19:01 ` [PATCH net-next 1/6] sched: remove get_stats from tc_action_ops David Miller
2013-12-12 19:15   ` Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).