]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
SR-IOV: Convert max rate from kbps to Mbps
authorMoshe Levi <moshele@mellanox.com>
Tue, 11 Aug 2015 04:08:11 +0000 (07:08 +0300)
committerIhar Hrachyshka <ihrachys@redhat.com>
Tue, 11 Aug 2015 12:58:13 +0000 (14:58 +0200)
commitbecfd6ebe603d5bac0148afb1e0892eaa3e325e5
treee89694d6faa6528a6a43211649f5e26584cf1776
parentb10f2280d7f099370ddabf61acc9630bb725f32e
SR-IOV: Convert max rate from kbps to Mbps

ip link tool configures max rate in Mbps and
it the QoS model max rate is defined in kbps. This
patch convert the max rate from kbps to Mbps. Also
because zero disables the rate limit the min value
is 1Mbps and not 1kbps.

DocImpact
Partially-Implements: blueprint ml2-sriov-qos-with-bwlimiting
Change-Id: I91b08c5d8ccaa2867b6eafd0c86872f401dd04c8
neutron/common/utils.py
neutron/plugins/ml2/drivers/mech_sriov/agent/eswitch_manager.py
neutron/plugins/ml2/drivers/mech_sriov/agent/pci_lib.py
neutron/tests/unit/common/test_utils.py
neutron/tests/unit/plugins/ml2/drivers/mech_sriov/agent/test_eswitch_manager.py