| To: | jamal <hadi@xxxxxxxxxx> |
|---|---|
| Subject: | Re: PATCH: action stats double dip |
| From: | Thomas Graf <tgraf@xxxxxxx> |
| Date: | Fri, 25 Mar 2005 21:06:50 +0100 |
| Cc: | "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev <netdev@xxxxxxxxxxx> |
| In-reply-to: | <1111768884.1092.533.camel@jzny.localdomain> |
| References: | <1111767913.1091.530.camel@jzny.localdomain> <1111768884.1092.533.camel@jzny.localdomain> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
* jamal <1111768884.1092.533.camel@xxxxxxxxxxxxxxxx> 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. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: iptables breakage WAS(Re: dummy as IMQ replacement, Andy Furniss |
|---|---|
| Next by Date: | Re: iptables breakage WAS(Re: dummy as IMQ replacement, Patrick McHardy |
| Previous by Thread: | Re: PATCH: action stats double dip, David S. Miller |
| Next by Thread: | Re: PATCH: action stats double dip, jamal |
| Indexes: | [Date] [Thread] [Top] [All Lists] |