Fixes a stupid bug I introduced in the last patchset which for some
reason didn't get caught in the testing process. The other two
patches change the behaviour of yet unused but likely use cases
to what one would expect without reading the code.
Please do a
bk pull bk://kernel.bkbits.net/tgraf/net-2.6-tcf_exts
This will update the following files:
include/net/gen_stats.h | 3 ++-
net/core/gen_stats.c | 48 +++++++++++++++++++++++++++++++-----------------
net/sched/act_api.c | 2 ++
3 files changed, 35 insertions(+), 18 deletions(-)
through these ChangeSets:
<tgraf@xxxxxxx> (05/04/01 1.2181.44.3)
[NET]: Improve gnet_stats_* dumping logic to be less error prone
The recent additions to make gnet_stats_* useable for action
statistics dumping in two steps introcuded a few error prone
assumptions which can easly be forgotten. This patch fixes this
up by simplifying the process of adding new fields to struct
gnet_dump or adding additional backward compatibility TLVs.
Signed-off-by: Thomas Graf <tgraf@xxxxxxx>
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
<tgraf@xxxxxxx> (05/04/01 1.2181.44.2)
[NET]: Allow dumping of application specific statistics if no primary TLV is
used
Although this case is hypothetical at the moment, more advanced actions are
likely to need this in the future.
Signed-off-by: Thomas Graf <tgraf@xxxxxxx>
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
<tgraf@xxxxxxx> (05/04/01 1.2181.44.1)
[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>
|