vswitchd: Always configure a default queue for QoS.
authorBen Pfaff <blp@nicira.com>
Fri, 17 Feb 2012 00:33:14 +0000 (16:33 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 17 Feb 2012 00:34:57 +0000 (16:34 -0800)
commit38720f42e892fe6cf58c43fb9fae6c45ee6c0a1d
tree281f5c887d90ba214b940e91799a9b017d539eda
parent54418a0f1722e5b8a464907895b29c736ded9f0f
vswitchd: Always configure a default queue for QoS.

When an interface has QoS configured but no default queue (queue 0), OVS
has until now installed that QoS configuration literally, which causes all
packets destined for this default queue to be dropped.  This behavior is
usually both unexpected and undesirable.

This commit changes behavior so that, when no default queue is configured,
OVS uses a default "empty" configuration for the default queue.  This
behavior should be more acceptable when QoS is slightly misconfigured.

I tested that, without this patch, configuring only queue 1 causes "tc
class show" to show only queue 1 (handle 1:2) for linux-htb and linux-hfsc,
and that with this patch it shows configurations for both queue 0 (handle
1:1) and queue 1.

Bug #5583.
Feature #7413.
Signed-off-by: Ben Pfaff <blp@nicira.com>
vswitchd/bridge.c
vswitchd/vswitch.xml