| To: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 1/3] [PKT_SCHED]: Properly return when no backward compatibility action statistics are to be dumped |
| From: | Thomas Graf <tgraf@xxxxxxx> |
| Date: | Sat, 2 Apr 2005 01:27:30 +0200 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <20050401232654.GJ3086@xxxxxxxxxxxxxx> |
| References: | <20050401232654.GJ3086@xxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2005/04/01 14:05:21+02:00 tgraf@xxxxxxx
# [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@xxxxxxx>
# Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
#
# net/sched/act_api.c
# 2005/04/01 14:05:09+02:00 tgraf@xxxxxxx +2 -0
# [PKT_SCHED]: Properly return when no backward compatibility action
statistics are to be dumped
#
diff -Nru a/net/sched/act_api.c b/net/sched/act_api.c
--- a/net/sched/act_api.c 2005-04-02 01:18:40 +02:00
+++ b/net/sched/act_api.c 2005-04-02 01:18:40 +02:00
@@ -397,6 +397,8 @@
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);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCHSET] action statistics dumping fix & gnet_stats improvements, Thomas Graf |
|---|---|
| Next by Date: | [PATCH 2/3] [NET]: Allow dumping of application specific statistics if no primary TLV is used, Thomas Graf |
| Previous by Thread: | [PATCHSET] action statistics dumping fix & gnet_stats improvements, Thomas Graf |
| Next by Thread: | [PATCH 2/3] [NET]: Allow dumping of application specific statistics if no primary TLV is used, Thomas Graf |
| Indexes: | [Date] [Thread] [Top] [All Lists] |