diff options
author | Babu Shanmugam <bschanmu@redhat.com> | 2016-09-07 11:40:11 +0530 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-10-04 11:03:41 -0700 |
commit | a6095f815ed9b8a8d4e9989179d14308c1ed112c (patch) | |
tree | 0a64c8d5cb1e2fce8b6ad77795a9472eda7c4d60 /tests/ovn.at | |
parent | 35f108517902c3dd85652d37a7a36e2ceb0bda42 (diff) | |
download | openvswitch-a6095f815ed9b8a8d4e9989179d14308c1ed112c.tar.gz |
Check and allocate free qdisc queue id for ports with qos parameters
ovn-northd processes the list of Port_Bindings and hashes the list of
queues per chassis. When it finds a port with qos_parameters and without
a queue_id, it allocates a free queue for the chassis that this port belongs.
The queue_id information is stored in the options field of Port_binding table.
Adds an action set_queue to the ingress table 0 of the logical flows
which will be translated to openflow set_queue by ovn-controller
ovn-controller opens the netdev corresponding to the tunnel interface's
status:tunnel_egress_iface value and configures a HTB qdisc on it. Then for
each SB port_binding that has queue_id set, it allocates a queue with the
qos_parameters of that port. It also frees up unused queues.
This patch replaces the older approach of policing
Signed-off-by: Babu Shanmugam <bschanmu@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests/ovn.at')
-rw-r--r-- | tests/ovn.at | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ovn.at b/tests/ovn.at index 2b193dd0b..3b27581fd 100644 --- a/tests/ovn.at +++ b/tests/ovn.at @@ -938,6 +938,14 @@ reg1[0] = put_dhcpv6_opts(ia_addr="ae70::4"); reg1[0] = put_dhcpv6_opts(ia_addr=ae70::4, domain_search=ae70::1); DHCPv6 option domain_search requires string value. +# set_queue +set_queue(0); + encodes as set_queue:0 +set_queue(61440); + encodes as set_queue:61440 +set_queue(65535); + Queue ID 65535 for set_queue is not in valid range 0 to 61440. + # Contradictionary prerequisites (allowed but not useful): ip4.src = ip6.src[0..31]; encodes as move:NXM_NX_IPV6_SRC[0..31]->NXM_OF_IP_SRC[] |