summaryrefslogtreecommitdiff
path: root/lib/netdev-linux.c
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2010-10-21 22:28:36 +0000
committerEthan Jackson <ethan@nicira.com>2010-10-21 16:03:03 -0700
commit4ecf12d5018374783cfd35b01cad71043a03f4ce (patch)
tree00213b4ba80b24dc7bed0c3017e947aab275f403 /lib/netdev-linux.c
parent99707a7afeea9877334825a18b027662bbabc270 (diff)
downloadopenvswitch-4ecf12d5018374783cfd35b01cad71043a03f4ce.tar.gz
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.
Diffstat (limited to 'lib/netdev-linux.c')
-rw-r--r--lib/netdev-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
index 06f739cdc..4bfa9f311 100644
--- a/lib/netdev-linux.c
+++ b/lib/netdev-linux.c
@@ -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);