diff --git a/doc/source/admin/config-qos-min-bw.rst b/doc/source/admin/config-qos-min-bw.rst index 36123d16e9b..5410f306d66 100644 --- a/doc/source/admin/config-qos-min-bw.rst +++ b/doc/source/admin/config-qos-min-bw.rst @@ -177,6 +177,9 @@ supported: * Open vSwitch (``openvswitch``) vnic_types: ``normal``, ``direct`` * SR-IOV (``sriovnicswitch``) vnic_types: ``direct``, ``macvtap`` +From the Yoga release the ``direct-physical`` vnic_type is now marked supported +for the SR-IOV (``sriovnicswitch``) agent. + neutron-server config ~~~~~~~~~~~~~~~~~~~~~ diff --git a/doc/source/admin/config-qos.rst b/doc/source/admin/config-qos.rst index 28541de5b50..1c52a484a6d 100644 --- a/doc/source/admin/config-qos.rst +++ b/doc/source/admin/config-qos.rst @@ -85,6 +85,10 @@ traffic directions (from the VM point of view). direction and only for networks without tunneled traffic (only VLAN and flat network types). +.. note:: The SR-IOV agent does not support dataplane enforcement for ports + with ``direct-physical`` vnic_type. However since Yoga the Placement + enforcement is supported for this vnic_type too. + .. table:: **Neutron backends, supported directions and enforcement types for Minimum Packet Rate rule** ============================ ========================== ==================== ============== ===== diff --git a/neutron/services/qos/drivers/sriov/driver.py b/neutron/services/qos/drivers/sriov/driver.py index 89ad9327537..0aaa2e81809 100644 --- a/neutron/services/qos/drivers/sriov/driver.py +++ b/neutron/services/qos/drivers/sriov/driver.py @@ -50,7 +50,8 @@ class SRIOVNICSwitchDriver(base.DriverBase): name='sriovnicswitch', vif_types=[portbindings.VIF_TYPE_HW_VEB], vnic_types=[portbindings.VNIC_DIRECT, - portbindings.VNIC_MACVTAP], + portbindings.VNIC_MACVTAP, + portbindings.VNIC_DIRECT_PHYSICAL], supported_rules=SUPPORTED_RULES, requires_rpc_notifications=True) diff --git a/releasenotes/notes/allow-qos-min-bw-for-direct-physical-ports-32547cc133c122ef.yaml b/releasenotes/notes/allow-qos-min-bw-for-direct-physical-ports-32547cc133c122ef.yaml new file mode 100644 index 00000000000..4989f2cea86 --- /dev/null +++ b/releasenotes/notes/allow-qos-min-bw-for-direct-physical-ports-32547cc133c122ef.yaml @@ -0,0 +1,7 @@ +--- +features: + - | + Neutron now supports the placement enforcement for the guaranteed minimum + bandwidth QoS rule type with direct-phyisical vnic_type as well. The data + plane enforcement of such rule and vnic_type combination is still not + supported.