mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
bandwidth: Attach sfq to leaf node
Stochastic Fairness Queuing (SFQ) is queuing discipline (qdisc) which doesn't really shape any traffic but 'just' re-arrange packets in sending buffer so no stream starve. The goal is to ensure fairness. There is basically only one configuration parameter (perturb) which is set to advised value of 10.
This commit is contained in:
parent
ad9d8dbcae
commit
7e5040bd20
@ -101,6 +101,15 @@ virNetDevBandwidthSet(const char *ifname,
|
||||
if (virCommandRun(cmd, NULL) < 0)
|
||||
goto cleanup;
|
||||
|
||||
virCommandFree(cmd);
|
||||
cmd = virCommandNew(TC);
|
||||
virCommandAddArgList(cmd, "qdisc", "add", "dev", ifname, "parent",
|
||||
"1:1", "handle", "2:", "sfq", "perturb",
|
||||
"10", NULL);
|
||||
|
||||
if (virCommandRun(cmd, NULL) < 0)
|
||||
goto cleanup;
|
||||
|
||||
virCommandFree(cmd);
|
||||
cmd = virCommandNew(TC);
|
||||
virCommandAddArgList(cmd,"filter", "add", "dev", ifname, "parent",
|
||||
|
Loading…
x
Reference in New Issue
Block a user