Skip to contentSkip to conversation

RFC: remove NET_CLS_POLICE?

DISCUSSION Adrian Bunk 5 participants 5 messages Nov 26, 2006 – Dec 1, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

Signature · 4 lines
       "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
#1 lore raw
Quoted 2 lines · Adrian Bunk

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?

#4 lore raw
In reply to Adrian Bunk
Quoted 5 lines · Adrian Bunk

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.

#2 lore raw
In reply to Patrick McHardy

* Patrick McHardy <[email protected]> 2006-11-26 14:21

Quoted 6 lines

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.

maintainer
#3 lore raw

From: Thomas Graf <[email protected]>
Date: Mon, 27 Nov 2006 09:56:14 +0100

Quoted 8 lines

* Patrick McHardy <[email protected]> 2006-11-26 14:21

Quoted 6 lines

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?

Quoted 6 lines

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.