On Tue, Feb 10, 2015 at 04:01:19PM +1000, David Gwynne wrote: > i want to remove the congestion stuff in ifqueue, but i dont want > to remove the pf functionality. my attempt at this below.
I like that you replaced the malloc and timeout with a ticks comparison as it makes the code simpler. The semantic changes a bit. If the box was unter high network load without softtimer interrupts, the old code did not clear the congestion. I don't know wether that behavior was intentional. We do not use the pf congestion feature, we have disabled it with an #ifdef. Prefering states over rules means that you cannot login into a congested box. There are cases where this policy makes sense, in our use case it does not. I can't see cases where different congestion states for each input queue are useful. OK bluhm@