Quota Throttle with pppoe bug
Posted: Tue Nov 09, 2010 8:03 am
Eric,
When using quotas with QoS disabled Gargoyle uses simplified tc classes to throttle bandwidth. These classes are tied to the pppoe-wan device when pppoe is used. Unfortunately, if the pppoe link goes down this device is deleted by pppd which in turn causes the classes associated with it to also get deleted.
When the ppp link comes back up pppd automatically adds back the pppoe-wan device but the simplified classes are not added back by Gargoyle. So after the pppoe link is restored the quota logic is disabled.
I had this same issue with the QoS issues a while back. In that case I changed qos_gargoyle to run from the hotplug event associated with the wan device.
If quotas are instead used with QoS enabled then the normal QoS classes are used and the above issue is avoided. People using pppoe with quotas might want to consider enabling QoS and using those classes to work around this issue until it is resolved.
When using quotas with QoS disabled Gargoyle uses simplified tc classes to throttle bandwidth. These classes are tied to the pppoe-wan device when pppoe is used. Unfortunately, if the pppoe link goes down this device is deleted by pppd which in turn causes the classes associated with it to also get deleted.
When the ppp link comes back up pppd automatically adds back the pppoe-wan device but the simplified classes are not added back by Gargoyle. So after the pppoe link is restored the quota logic is disabled.
I had this same issue with the QoS issues a while back. In that case I changed qos_gargoyle to run from the hotplug event associated with the wan device.
If quotas are instead used with QoS enabled then the normal QoS classes are used and the above issue is avoided. People using pppoe with quotas might want to consider enabling QoS and using those classes to work around this issue until it is resolved.