diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2015-11-11 14:14:57 -0600 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2015-11-11 14:14:57 -0600 |
commit | 9622cc803af75551a6623d5d9c5311f1e0af1cb5 (patch) | |
tree | b919baecdb7c7cd4ea1d8630f039372fa155ccb4 /sys/netpfil | |
parent | 345e414aceb6e896ae280ea4ddd44d1bde6cc349 (diff) | |
download | FreeBSD-src-9622cc803af75551a6623d5d9c5311f1e0af1cb5.zip FreeBSD-src-9622cc803af75551a6623d5d9c5311f1e0af1cb5.tar.gz |
MFC r287009:
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)
TAG: CODEL
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; |