mirror of
https://github.com/vishvananda/netlink
synced 2024-12-28 01:22:18 +00:00
fq: Fix to set missing TCA_FQ_PLIMIT attribute
The qdiscPayload() function was missing the TCA_FQ_PLIMIT attribute for the Fq Qdisc. Therefore, it could not be changed via the library. Fix this up, so that QdiscReplace() with different qdisc.PacketLimit works now. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
This commit is contained in:
parent
f1333cd79a
commit
d649c02e2b
@ -268,6 +268,9 @@ func qdiscPayload(req *nl.NetlinkRequest, qdisc Qdisc) error {
|
||||
if qdisc.Buckets > 0 {
|
||||
options.AddRtAttr(nl.TCA_FQ_BUCKETS_LOG, nl.Uint32Attr((uint32(qdisc.Buckets))))
|
||||
}
|
||||
if qdisc.PacketLimit > 0 {
|
||||
options.AddRtAttr(nl.TCA_FQ_PLIMIT, nl.Uint32Attr((uint32(qdisc.PacketLimit))))
|
||||
}
|
||||
if qdisc.LowRateThreshold > 0 {
|
||||
options.AddRtAttr(nl.TCA_FQ_LOW_RATE_THRESHOLD, nl.Uint32Attr((uint32(qdisc.LowRateThreshold))))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user