Commit Graph

25 Commits

Author SHA1 Message Date
Joe Stringer 531df7a209 Avoid serializing empty TCA_OPTIONS in qdisc messages
This was causing a QdiscReplace() call for a generic qdisc
(QdiscType="clsact", Parent=HANDLE_CLSACT) to fail with the error
"invalid argument" after the qdisc was first created.

Signed-off-by: Joe Stringer <joe@wand.net.nz>
2018-10-16 11:53:53 -07:00
Francis Begyn 1006cf4f24 Implementation of HFSC
Testing and functionality for the use of HFSC has been implemented.
The use of service curves is implenented closely as to how they behave
with the TC implementation.
Automated checks and testing were succesful.
2018-07-16 12:14:02 -07:00
Sargun Dhillon a2af46a09c Add FQ Codel 2018-02-05 10:22:15 -08:00
Sargun Dhillon 465b5fef28 Add Fq Qdisc support 2018-02-05 10:22:15 -08:00
Ian Bishop 0e3b74dbe2 replace syscall with golang.org/x/sys/unix 2017-10-26 09:45:08 -07:00
Julian Kornberger 619f36a9ae Convert if/else statements to switch 2017-09-24 11:05:26 -07:00
Vishvananda Ishaya Abrams c19091b1c6 Add support for peakrate and minburst. 2017-02-08 10:29:21 -08:00
Vishvananda Ishaya Abrams 1890b34fa3 Fix a panic in parseTbfData.
Include all 8 bytes when generating the native Uint64 otherwise this
code may encounter an index out of range panic.
2017-01-05 15:59:13 -08:00
Vishvananda Ishaya Abrams c750a61f18 Set rates higher than 32bit integers 2016-12-13 18:04:10 -08:00
Vish Ishaya 0bc457d244 fix darwin build by moving code (#138)
Fixes issue #135
2016-06-15 08:44:14 -07:00
Alessandro Boch f116a3048a Use package empty handle for pkg APIs (#117)
- Package methods only need an empty handle.
  Not a regular Handle with a couple of
  sockets creation/delete.

Signed-off-by: Alessandro Boch <aboch@docker.com>
2016-05-09 16:55:00 -07:00
Alessandro Boch 14f41c27fa Provide netlink handle (#104)
- Ties to a netlink socket. All client requests
  will re-use same socket. Socket released at
  handle deletion.
- Also network namespace can be specified during
  handle creation. Socket will be opened on the
  specified network namespace.

Signed-off-by: Alessandro Boch <aboch@docker.com>
2016-05-08 11:35:49 -07:00
Vishvananda Ishaya adb0f53af6 Cleanup from golint and go vet 2016-03-19 17:12:26 -07:00
chantra eeca6ddad9 [qdisc] refactor all commands to use qdiscModify function 2015-11-12 09:55:13 -05:00
chantra e1c5c4e664 [qdisc] move building payload i its own function 2015-11-12 09:46:43 -05:00
chantra b530ef5ad1 [qdisc] add support for replace/change 2015-11-11 23:57:32 -05:00
chantra 322c7826d2 [netem] add support for reordering/corruption/correlation
Note: This requires #58 to be merged in order to properly work.
2015-10-28 00:22:47 -07:00
chantra 9b7c60d6bd [netem] minimalist support for netem
Support for tc_netem_qopt options, e.g: latency, limit, loss, gap, duplicate and jitter
2015-10-28 00:22:47 -07:00
chantra ef0cd12f0c Add TC Class support 2015-09-10 22:50:54 -07:00
chantra 2a6a59d231 Enable HTB classful qdisc 2015-09-05 00:13:17 -07:00
Vishvananda Ishaya 25d051e40e add prio qdisc 2015-08-19 18:22:02 -07:00
Vishvananda Ishaya 7b3d58b87e skip qdiscs from other interfaces 2015-08-19 16:51:48 -07:00
Vishvananda Ishaya acc8a28738 Add basic support for redirect filter 2015-08-19 16:02:04 -07:00
Vishvananda Ishaya a6d6ef6a6a support basic tbf qdisc 2015-08-18 14:07:01 -07:00
Vishvananda Ishaya c9399c7e3d beginning of handling for qdiscs 2015-08-18 03:16:54 -07:00