mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
virnetdevbandwidthtest: Reformat TC cmd line
Our coding style expects a long line to be broken into shorter lines which are then aligned on the first character, for instance: "some string that's broken " "into multiple lines" However, one can argue that there are few cases where shifting the alignment makes the code more readable. And this is the case of expected cmd line for DO_TEST_SET() where a long cmd line can be aligned on the arguments rather than the binary: TC " filter ..." " police ..." Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
5c5ca1970f
commit
5f6aa07303
@ -127,8 +127,8 @@ mymain(void)
|
||||
TC " qdisc del dev eth0 root\n"
|
||||
TC " qdisc del dev eth0 ingress\n"
|
||||
TC " qdisc add dev eth0 ingress\n"
|
||||
TC " filter add dev eth0 parent ffff: protocol all u32 match u32 0 0 "
|
||||
"police rate 1024kbps burst 1024kb mtu 64kb drop flowid :1\n");
|
||||
TC " filter add dev eth0 parent ffff: protocol all u32 match u32 0 0"
|
||||
" police rate 1024kbps burst 1024kb mtu 64kb drop flowid :1\n");
|
||||
|
||||
DO_TEST_SET("<bandwidth>"
|
||||
" <inbound average='1' peak='2' floor='3' burst='4'/>"
|
||||
@ -141,8 +141,8 @@ mymain(void)
|
||||
TC " qdisc add dev eth0 parent 1:1 handle 2: sfq perturb 10\n"
|
||||
TC " filter add dev eth0 parent 1:0 protocol all prio 1 handle 1 fw flowid 1\n"
|
||||
TC " qdisc add dev eth0 ingress\n"
|
||||
TC " filter add dev eth0 parent ffff: protocol all u32 match u32 0 0 "
|
||||
"police rate 5kbps burst 7kb mtu 64kb drop flowid :1\n");
|
||||
TC " filter add dev eth0 parent ffff: protocol all u32 match u32 0 0"
|
||||
" police rate 5kbps burst 7kb mtu 64kb drop flowid :1\n");
|
||||
|
||||
DO_TEST_SET("<bandwidth>"
|
||||
" <inbound average='4294967295'/>"
|
||||
@ -155,9 +155,9 @@ mymain(void)
|
||||
TC " qdisc add dev eth0 parent 1:1 handle 2: sfq perturb 10\n"
|
||||
TC " filter add dev eth0 parent 1:0 protocol all prio 1 handle 1 fw flowid 1\n"
|
||||
TC " qdisc add dev eth0 ingress\n"
|
||||
TC " filter add dev eth0 parent ffff: protocol all u32 match "
|
||||
"u32 0 0 police rate 4294967295kbps burst 4194303kb mtu 64kb "
|
||||
"drop flowid :1\n");
|
||||
TC " filter add dev eth0 parent ffff: protocol all u32 match"
|
||||
" u32 0 0 police rate 4294967295kbps burst 4194303kb mtu 64kb"
|
||||
" drop flowid :1\n");
|
||||
|
||||
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user