From: Thomas Graf <tgraf@suug.ch>
To: jamal <hadi@cyberus.ca>
Cc: "David S. Miller" <davem@davemloft.net>, netdev <netdev@oss.sgi.com>
Subject: Re: PATCH: action stats double dip
Date: Fri, 25 Mar 2005 21:41:10 +0100 [thread overview]
Message-ID: <20050325204110.GF3086@postel.suug.ch> (raw)
In-Reply-To: <1111782325.1089.641.camel@jzny.localdomain>
* jamal <1111782325.1089.641.camel@jzny.localdomain> 2005-03-25 15:25
> On Fri, 2005-03-25 at 15:06, Thomas Graf wrote:
> > * jamal <1111768884.1092.533.camel@jzny.localdomain> 2005-03-25 11:41
> > >
> > > - if (tcf_exts_dump_stats(skb, &f->exts, &route_ext_map) < 0)
> > > - goto rtattr_failure;
> > > + if (f->exts.action && f->exts.action->type == TCA_OLD_COMPAT)
> > > + if (tcf_exts_dump_stats(skb, &f->exts, &route_ext_map) < 0)
> > > + goto rtattr_failure;
> >
> > Why is this needed? Maybe I'm missing something in the logic but
> > tcf_exts_dump_stats checks for exts->action and if in compat mode
> > provides the old stats TLVs. I'm not claiming that the current code
> > is correct but the fix should go into tcf_exts_dump_stats rather
> > than into every classifier.
>
> tcf_exts_dump (called above the those calls) already dumps stats if you
> are not in old compatibility mode. It doesnt when you are in old compat
> mode.
> You could probably play tricks to move things into it;
> The main exception would be cls_u32 where you need to check
> TC_U32_KEY(n->handle) and old compatibility;
Right, I had to leave it splitted for u32 but there are still
issues. With your changes, the old policer will not get its stats
dumped anymore. Any reason for keeping the old policer alive? or
can we purge it and make everyone use the compatibility police
action? Don't waste any time on this, it's my fault so let me
resolve this.
next prev parent reply other threads:[~2005-03-25 20:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-25 16:25 PATCH: action stats double dip jamal
2005-03-25 16:41 ` jamal
2005-03-25 17:37 ` David S. Miller
2005-03-25 20:06 ` Thomas Graf
2005-03-25 20:25 ` jamal
2005-03-25 20:41 ` Thomas Graf [this message]
2005-03-25 21:39 ` jamal
2005-03-25 21:58 ` Thomas Graf
2005-03-25 23:06 ` jamal
2005-03-25 23:24 ` Thomas Graf
2005-03-25 23:59 ` Thomas Graf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050325204110.GF3086@postel.suug.ch \
--to=tgraf@suug.ch \
--cc=davem@davemloft.net \
--cc=hadi@cyberus.ca \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).