2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

netdev-linux: Make queue 0 the default QOS policy

This patch defines, by convention, queue 0 as the default queue in
a particular QOS.  Thus, if queue 0 is defined, all traffic going
through the relevant interface will be enqueued in it. If queue 0
is not defined then ovs will send the traffic directly through the
interface without applying any policy to it.
This commit is contained in:
Ethan Jackson
2010-10-21 22:28:36 +00:00
parent 99707a7afe
commit 4ecf12d501

View File

@@ -2276,7 +2276,7 @@ htb_setup_qdisc__(struct netdev *netdev)
memset(&opt, 0, sizeof opt);
opt.rate2quantum = 10;
opt.version = 3;
opt.defcls = 0;
opt.defcls = 1;
opt_offset = nl_msg_start_nested(&request, TCA_OPTIONS);
nl_msg_put_unspec(&request, TCA_HTB_INIT, &opt, sizeof opt);