commit 1864bea8e0777541ac27fbc5ac41685459dbb8d2
Author: Antonio Augusto Vilas Boas Teixeira <email address hidden>
Date: Wed May 4 08:58:38 2022 -0400
Prevent invalid configuration of max VF tx rate
If a port has its detected speed as None (e.g. port is not cabled), when
configuring the 'max-tx-rate' of an interface which uses this port any
value can be set, even one exceeding the NIC's supported speed.
This change adds an error message in this scenario, preventing the
configuration of the tx rate parameter when the port speed is unknown.
Closes-Bug: 1971575
Signed-off-by: Antonio Augusto Vilas Boas Teixeira
<email address hidden>
Change-Id: I271656df1bac03f9a8f714f876baf1c742748b31
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/840452 /opendev. org/starlingx/ config/ commit/ 1864bea8e077754 1ac27fbc5ac4168 5459dbb8d2
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 1864bea8e077754 1ac27fbc5ac4168 5459dbb8d2
Author: Antonio Augusto Vilas Boas Teixeira <email address hidden>
Date: Wed May 4 08:58:38 2022 -0400
Prevent invalid configuration of max VF tx rate
If a port has its detected speed as None (e.g. port is not cabled), when
configuring the 'max-tx-rate' of an interface which uses this port any
value can be set, even one exceeding the NIC's supported speed.
This change adds an error message in this scenario, preventing the
configuration of the tx rate parameter when the port speed is unknown.
Closes-Bug: 1971575
Signed-off-by: Antonio Augusto Vilas Boas Teixeira f9a8f714f876baf 1c742748b31
<email address hidden>
Change-Id: I271656df1bac03