neutron/neutron/plugins/ml2/drivers/openvswitch/agent
Slawek Kaplonski 196ab6bea1 Fix ingress bandwidth limit in the openvswitch agent
For ingress bandwidth limiting openvswitch agent is using QoS and queues
from the Open vSwitch. There is always queue 0 used for that purpose.
Initially, when this feature was implemented, we assumed that queue 0 is
kind of the "default" queue to which all traffic will be send if there
are no other queues. But that's not true thus ingress bandwidth limiting
wasn't working properly with this agent.

This patch fixes that issue but adding in the table=0 of the br-int
additional OF rule to send all traffic to the queue 0.
In this queue for some ports there can be QoS configured
and then it will be applied for the port. If port don't have any QoS
configured, nothing will happen and all will work like before this
patch.

Biggest problem with that solution was the case when also ports with
minimum bandwidth are on the same node becuase such ports are using
different queues (queue number is the same as ofport number of the tap
interface).
In case when traffic is going from the port with minimum bandwidth QoS
to the port which has ingress bw limit configured, traffic is going only
through br-int and will use queue 0 to apply ingress bw limit properly.
In case when traffic from port with minimum bandwidth set needs to go
out from the host, it will always use physical bridge (minimum bandwidth
is only supported for the provider networks) and proper queue will be
set for such traffic in the physical bridge.
To be able to set proper queue in the physical bridge, this patch adds
additional OF rule to the br-int to set queue_num value in the pkt_mark
field [1] as this seems to be only field which can "survive" passing
bridges.

[1] https://man7.org/linux/man-pages/man7/ovs-fields.7.html

Conflicts:
    neutron/plugins/ml2/drivers/openvswitch/agent/extension_drivers/qos_driver.py

Closes-Bug: #1959567
Change-Id: I1e31565475f38c6ad817268699b165759ac05410
(cherry picked from commit f7ab90baad)
(cherry picked from commit 5573230d30)
(cherry picked from commit 4a0ca56fe5)
(cherry picked from commit e59a7d5c3d)
2022-04-05 14:10:46 +00:00
..
common Local mac direct flow for non-openflow firewall 2020-10-23 07:49:55 +00:00
extension_drivers Fix ingress bandwidth limit in the openvswitch agent 2022-04-05 14:10:46 +00:00
openflow Don't setup bridge controller if it is already set 2021-11-04 13:19:07 +01:00
__init__.py Restructure agent code in preparation for decomp 2015-06-26 15:06:49 +00:00
main.py Drop of_interface option 2019-05-24 10:33:48 +02:00
ovs_agent_extension_api.py Make "phys_brs" argument in OVSAgentExtensionAPI optional 2019-03-05 15:59:00 +00:00
ovs_capabilities.py Add agent-side driver scaffolding for trunk functionality 2016-08-18 12:10:22 +00:00
ovs_dvr_neutron_agent.py Fix removal of dvr-src mac flows when non-gateway port on router is deleted 2021-01-19 09:11:39 +00:00
ovs_neutron_agent.py Add a single option to override the default hypervisor name 2021-06-17 15:09:55 +02:00
vlanmanager.py Change provider network segmentation ID in OVS agent 2019-05-20 18:53:17 +00:00