You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move bandwidth functionality to pkg/bandwidth, make it an importable
module. Import it and use it in plugins/meta/bandwidth/main.go.
Add a qdiscType arg to CreateEgressQdisc() so that both "ingress" and
"clsact" qdiscs may be used ("ingress" is the default used by the
bandwidth plugin).
All of this has the objective of enabling Calico to apply the netlink
qdisc configuration natively by importing this module.
// BandwidthEntry corresponds to a single entry in the bandwidth argument,
35
+
// see CONVENTIONS.md
36
+
typeBandwidthEntrystruct {
37
+
IngressRateuint64`json:"ingressRate"`// Bandwidth rate in bps for traffic through container. 0 for no limit. If ingressRate is set, ingressBurst must also be set
38
+
IngressBurstuint64`json:"ingressBurst"`// Bandwidth burst in bits for traffic through container. 0 for no limit. If ingressBurst is set, ingressRate must also be set
39
+
40
+
EgressRateuint64`json:"egressRate"`// Bandwidth rate in bps for traffic through container. 0 for no limit. If egressRate is set, egressBurst must also be set
41
+
EgressBurstuint64`json:"egressBurst"`// Bandwidth burst in bits for traffic through container. 0 for no limit. If egressBurst is set, egressRate must also be set
0 commit comments