VF rate limiting can be configured with invalid values
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Antonio Augusto Vilas Boas Teixeira |
Bug Description
Brief Description
-----------------
When configuring 'max-tx-rate' for a SR-IOV interface values exceeding the NIC's supported speed can be set if the port is not cabled.
Severity
--------
Minor: System/Feature is usable with minor issue
Steps to Reproduce
------------------
Set an interface to pci-sriov class (interface shouldn't be cabled, thus having no defined speed):
$ system host-if-modify controller-0 ens801f1 -c pci-sriov -N 8
Create an interface using some of the VFs of the previously modified interface:
$ system host-if-add -c pci-sriov controller-0 virtif vf ens801f1 --num-vfs 2 --vf-driver=
Try to set 'max-tx-rate' to some unsupported value, e.g. for a 25Gbps NIC:
$ system host-if-modify controller-0 virtif --max-tx-rate=25001
The system allows this value to be set:
+------
| Property | Value |
+------
| ifname | virtif |
| iftype | vf |
| ports | [] |
| imac | 3c:fd:fe:d1:64:48 |
| imtu | 1500 |
| ifclass | pci-sriov |
| ptp_role | none |
| aemode | None |
| schedpolicy | None |
| txhashpolicy | None |
| primary_reselect | None |
| uuid | 070a7d26-
| ihost_uuid | 93ee7544-
| vlan_id | None |
| uses | [u'ens801f1'] |
| used_by | [] |
| created_at | |
| updated_at | |
| sriov_numvfs | 2 |
| sriov_vf_driver | netdevice |
| max_tx_rate | 25001 |
| accelerated | [True] |
+------
Expected Behavior
------------------
The system should refuse to set a tx rate greater than what the port supports.
Actual Behavior
----------------
System allows any value to be configured.
Reproducibility
---------------
Always reproducible
System Configuration
-------
AIO-SX, but should apply to any configuration
Branch/Pull Time/Commit
-------
Master Centos cengn build as of 20-Apr-2022 04:45
Last Pass
---------
N/A
Timestamp/Logs
--------------
N/A
Test Activity
-------------
Developer testing
Workaround
----------
N/A
Changed in starlingx: | |
assignee: | nobody → Antonio Augusto Vilas Boas Teixeira (aaugusto-wndrvr) |
tags: | added: stx.networking |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.7.0 |
Fix proposed to branch: master /review. opendev. org/c/starlingx /config/ +/840452
Review: https:/