diff options
author | Ilya Maximets <i.maximets@ovn.org> | 2022-10-25 18:37:41 +0200 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2022-11-30 14:42:59 +0100 |
commit | b22c4d84038c3eceab9486984e601b2f979ebe6d (patch) | |
tree | 665c770bd038c5164a10af761cd8c3c092a3283a /include | |
parent | d240f72ad2adb9932b59b8e01f47a93f76c5c93c (diff) | |
download | openvswitch-b22c4d84038c3eceab9486984e601b2f979ebe6d.tar.gz |
netdev: Assume default link speed to be 10 Gbps instead of 100 Mbps.
100 Mbps was a fair assumption 13 years ago. Modern days 10 Gbps seems
like a good value in case no information is available otherwise.
The change mainly affects QoS which is currently limited to 100 Mbps if
the user didn't specify 'max-rate' and the card doesn't report the
speed or OVS doesn't have a predefined enumeration for the speed
reported by the NIC.
Calculation of the path cost for STP/RSTP is also affected if OVS is
unable to determine the link speed.
Lower link speed adapters are typically good at reporting their speed,
so chances for overshoot should be low. But newer high-speed adapters,
for which there is no speed enumeration or if there are some other
issues, will not suffer that much.
Acked-by: Mike Pattrick <mkp@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openvswitch/netdev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/openvswitch/netdev.h b/include/openvswitch/netdev.h index 0c10f7b48..cf48f8691 100644 --- a/include/openvswitch/netdev.h +++ b/include/openvswitch/netdev.h @@ -121,6 +121,8 @@ enum netdev_features { NETDEV_F_PAUSE_ASYM = 1 << 15, /* Asymmetric pause. */ }; +#define NETDEV_DEFAULT_BPS UINT64_C(10 * 1000 * 1000 * 1000) + int netdev_get_features(const struct netdev *, enum netdev_features *current, enum netdev_features *advertised, |