aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2005-04-01 18:05:21 +0200
committerThomas Graf <tgraf@suug.ch>2005-04-01 18:05:21 +0200
commit99665d91829d412c2d4103e0a0034af7f740a02c (patch)
tree7f95c5f4b651dba9f961a444126b617e2d9ec11b
parent6d36ed6877f400d2dc44a995587d0512fb88e267 (diff)
downloadhistory-99665d91829d412c2d4103e0a0034af7f740a02c.tar.gz
[PKT_SCHED]: Properly return when no backward compatibility action statistics are to be dumped
Fixes a stupid bug introcuded in my "Fix action statistics dumping in compatibility mode" patch, no clue why it actually worked without this fix. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/sched/act_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c
index 88962fa33199fb..5e6cc371b39ea6 100644
--- a/net/sched/act_api.c
+++ b/net/sched/act_api.c
@@ -397,6 +397,8 @@ int tcf_action_copy_stats(struct sk_buff *skb, struct tc_action *a,
if (a->type == TCA_OLD_COMPAT)
err = gnet_stats_start_copy_compat(skb, 0,
TCA_STATS, TCA_XSTATS, h->stats_lock, &d);
+ else
+ return 0;
} else
err = gnet_stats_start_copy(skb, TCA_ACT_STATS,
h->stats_lock, &d);