From 4a861689b0622ef05e8d88cbef33e05dca6756f6 Mon Sep 17 00:00:00 2001 From: Juanita-Balaraj Date: Tue, 8 Jun 2021 12:10:56 -0400 Subject: [PATCH] DOC UPDATE for max-tx-rate on VF subinterface Updated Patchset 1 Signed-off-by: Juanita-Balaraj Change-Id: I198fdcbf72e5edb8cd9613be213029083a400375 Signed-off-by: Juanita-Balaraj --- ...ng-vf-interfaces-rate-limiting-using-cli.rst | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/doc/source/node_management/kubernetes/node_interfaces/configuring-vf-interfaces-rate-limiting-using-cli.rst b/doc/source/node_management/kubernetes/node_interfaces/configuring-vf-interfaces-rate-limiting-using-cli.rst index 9baf0d304..f154fa376 100644 --- a/doc/source/node_management/kubernetes/node_interfaces/configuring-vf-interfaces-rate-limiting-using-cli.rst +++ b/doc/source/node_management/kubernetes/node_interfaces/configuring-vf-interfaces-rate-limiting-using-cli.rst @@ -29,10 +29,10 @@ Be aware of the following guidance when using this feature: - The total sum of the maximum transmission rates of all rate limited |VFs| cannot exceed 90% of the port link speed. -- The unit is Mbps, and value of 0 means turn off the rate limiting. +- The units are Mbps, and value of 0 means turn off the rate limiting. -- |VFs| with different limited rate are supposed to be attached separate data - networks and managed by Kubernetes |SRIOV| device plugin as different +- |VFs| with different limited rate are supposed to be attached to separate + data networks and managed by Kubernetes |SRIOV| device plugin as different ResourcePools. You can then use the |VFs| by specifying the corresponding . @@ -69,12 +69,13 @@ Data networks should be created for VF sub-interfaces attachment. #. Create a sub-interface with rate limiting configuration. - The parameters are all same as shown in the procedure for |node-doc|: + The parameters are all the same as shown in the procedure for |node-doc|: :ref:`Provisioning SR-IOV VF Interfaces using the CLI `, plus one newly added - rate limiting related parameter: --max-tx-rate + rate limiting related parameter: ``--max-tx-rate``. .. note:: + The units for ``max-tx-rate`` are Mbps. The configured sriov\_numvfs with max\_tx\_rate\(max\_tx\_rate\*sriov\_numvfs\) should not exceed 90% of the link bandwidth. @@ -88,12 +89,18 @@ Data networks should be created for VF sub-interfaces attachment. #. The rate limit configuration can be modified by specifying other values. + .. note:: + The units for ``max-tx-rate`` are Mbps. + .. code-block:: none ~(keystone_admin)$ system host-if-modify controller-0 sriov00 --max-tx-rate=200 #. The rate limit configuration can be modified by specifying a value of zero. + .. note:: + Setting ``max-tx-rate`` to 0 disables any rate limiting. + .. code-block:: none ~(keystone_admin)$ system host-if-modify controller-0 sriov00 --max-tx-rate=0