Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shaping default bandwidth #54

Merged
merged 1 commit into from Oct 13, 2016
Merged

Conversation

yousong
Copy link
Contributor

@yousong yousong commented Oct 13, 2016

The current code uses cfg.DefaultBandwidth when addTargetClass() which
is not right at first sight.

The other thing is that HTB seems to have a default built-in class where
all unclassified packets will go into. This can be checked with value
of direct_packets_stats in output of "tc qdisc show dev eth0", and as
such we need to explicitly set the default class to 10:1 to handle this

The current code uses cfg.DefaultBandwidth when addTargetClass() which
is not right at first sight.

The other thing is that HTB seems to have a default built-in class where
all unclassified packets will go into.  This can be checked with value
of direct_packets_stats in output of "tc qdisc show dev eth0", and as
such we need to explicitly set the default class to 10:1 to handle this
@tylertreat tylertreat merged commit 3552c1d into tylertreat:master Oct 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants