* RFC: remove NET_CLS_POLICE?
@ 2006-11-26 6:29 Adrian Bunk
2006-11-26 13:21 ` Patrick McHardy
2006-11-26 23:09 ` Andy Furniss
0 siblings, 2 replies; 5+ messages in thread
From: Adrian Bunk @ 2006-11-26 6:29 UTC (permalink / raw)
To: Thomas Graf; +Cc: netdev
Considering that NET_CLS_POLICE has been marked as obsolete for more
than one year, would a patch to remove it be acceptable?
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFC: remove NET_CLS_POLICE?
2006-11-26 6:29 RFC: remove NET_CLS_POLICE? Adrian Bunk
@ 2006-11-26 13:21 ` Patrick McHardy
2006-11-27 8:56 ` Thomas Graf
2006-11-26 23:09 ` Andy Furniss
1 sibling, 1 reply; 5+ messages in thread
From: Patrick McHardy @ 2006-11-26 13:21 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Thomas Graf, netdev, jamal
Adrian Bunk wrote:
> Considering that NET_CLS_POLICE has been marked as obsolete for more
> than one year, would a patch to remove it be acceptable?
Looking at this, the only reason I thought why we kept this
option was to keep old iproute binaries working. But struct
tc_police in new kernels is bigger than in old ones (new
refcnt, bindcnt and capab members) and both the old and the
action version of the policer check for an exact size match.
Which means old binaries don't work with either NET_CLS_POLICE
or NET_ACT_POLICE. I'll look into fixing this.
One more thing NET_CLS_POLICE affects is CBQ reshape/reclassify
handling, reshape_fail seems to be completely unhandled without
NET_CLS_POLICE and reclassification looks like it behaves
differently with tc actions. I'm not really sure what the
reshape_fail stuff is used for, but it looks like we would loose
a feature. Jamal?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFC: remove NET_CLS_POLICE?
2006-11-26 6:29 RFC: remove NET_CLS_POLICE? Adrian Bunk
2006-11-26 13:21 ` Patrick McHardy
@ 2006-11-26 23:09 ` Andy Furniss
1 sibling, 0 replies; 5+ messages in thread
From: Andy Furniss @ 2006-11-26 23:09 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Thomas Graf, netdev
Adrian Bunk wrote:
> Considering that NET_CLS_POLICE has been marked as obsolete for more
> than one year, would a patch to remove it be acceptable?
>
> cu
> Adrian
>
People still request the "2.4 policer" on LARTC as unlike its
replacement it hooks after prerouting/denat so they can police on local
addresses.
There is no other way apart from IMQ, though ISTR mention of a meta
match one day (for ifb).
Andy.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFC: remove NET_CLS_POLICE?
2006-11-26 13:21 ` Patrick McHardy
@ 2006-11-27 8:56 ` Thomas Graf
2006-12-01 3:52 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Graf @ 2006-11-27 8:56 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Adrian Bunk, netdev, jamal
* Patrick McHardy <kaber@trash.net> 2006-11-26 14:21
> One more thing NET_CLS_POLICE affects is CBQ reshape/reclassify
> handling, reshape_fail seems to be completely unhandled without
> NET_CLS_POLICE and reclassification looks like it behaves
> differently with tc actions. I'm not really sure what the
> reshape_fail stuff is used for, but it looks like we would loose
> a feature. Jamal?
Yes, this is the reason why it wasn't removed yet. It always
occured to me as a mystery why NET_ACT_POLICE didn't depend
on the same logic inside the qdiscs. That needs to be resolved
first. Also the compat code for the action variant to handle
old policer configurations is horrible and should be done in
a clear way.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFC: remove NET_CLS_POLICE?
2006-11-27 8:56 ` Thomas Graf
@ 2006-12-01 3:52 ` David Miller
0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2006-12-01 3:52 UTC (permalink / raw)
To: tgraf; +Cc: kaber, bunk, netdev, hadi
From: Thomas Graf <tgraf@suug.ch>
Date: Mon, 27 Nov 2006 09:56:14 +0100
> * Patrick McHardy <kaber@trash.net> 2006-11-26 14:21
> > One more thing NET_CLS_POLICE affects is CBQ reshape/reclassify
> > handling, reshape_fail seems to be completely unhandled without
> > NET_CLS_POLICE and reclassification looks like it behaves
> > differently with tc actions. I'm not really sure what the
> > reshape_fail stuff is used for, but it looks like we would loose
> > a feature. Jamal?
>
> Yes, this is the reason why it wasn't removed yet. It always
> occured to me as a mystery why NET_ACT_POLICE didn't depend
> on the same logic inside the qdiscs. That needs to be resolved
> first. Also the compat code for the action variant to handle
> old policer configurations is horrible and should be done in
> a clear way.
Ok, I'll consider this the definitive statement of the
situation.
Adrian, it's not ready to be deleted yet.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-12-01 3:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-26 6:29 RFC: remove NET_CLS_POLICE? Adrian Bunk
2006-11-26 13:21 ` Patrick McHardy
2006-11-27 8:56 ` Thomas Graf
2006-12-01 3:52 ` David Miller
2006-11-26 23:09 ` Andy Furniss
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).