diff options
author | loos <loos@FreeBSD.org> | 2015-08-21 22:02:22 +0000 |
---|---|---|
committer | loos <loos@FreeBSD.org> | 2015-08-21 22:02:22 +0000 |
commit | 498601242d037970fd571c0aa7a61a9253e174d3 (patch) | |
tree | ea97933754c975699989e1fe3ca8b6e419c1d685 /sys/netpfil | |
parent | 85b63621ce55e70a1e80d1f557aec7f20b41a514 (diff) | |
download | FreeBSD-src-498601242d037970fd571c0aa7a61a9253e174d3.zip FreeBSD-src-498601242d037970fd571c0aa7a61a9253e174d3.tar.gz |
Add ALTQ(9) support for the CoDel algorithm.
CoDel is a parameterless queue discipline that handles variable bandwidth
and RTT.
It can be used as the single queue discipline on an interface or as a sub
discipline of existing queue disciplines such as PRIQ, CBQ, HFSC, FAIRQ.
Differential Revision: https://reviews.freebsd.org/D3272
Reviewd by: rpaulo, gnn (previous version)
Obtained from: pfSense
Sponsored by: Rubicon Communications (Netgate)
Diffstat (limited to 'sys/netpfil')
-rw-r--r-- | sys/netpfil/pf/pf_altq.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/netpfil/pf/pf_altq.h b/sys/netpfil/pf/pf_altq.h index db681fb..3efd4ff 100644 --- a/sys/netpfil/pf/pf_altq.h +++ b/sys/netpfil/pf/pf_altq.h @@ -45,6 +45,12 @@ struct cbq_opts { int flags; }; +struct codel_opts { + u_int target; + u_int interval; + int ecn; +}; + struct priq_opts { int flags; }; @@ -103,6 +109,7 @@ struct pf_altq { uint16_t flags; /* misc flags */ union { struct cbq_opts cbq_opts; + struct codel_opts codel_opts; struct priq_opts priq_opts; struct hfsc_opts hfsc_opts; struct fairq_opts fairq_opts; |