diff options
author | 2018-03-30 09:01:51 -0500 | |
---|---|---|
committer | 2018-04-03 08:58:33 -0500 | |
commit | 33523a361307c097a8a23f3549cb485db5fba6c5 (patch) | |
tree | 28dd8eb0a75acbfc0958bf8e8ef5e771ba308dfb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net/mlx5: Report PCIe link properties with pcie_print_link_status() (diff) | |
download | wireguard-linux-33523a361307c097a8a23f3549cb485db5fba6c5.tar.xz wireguard-linux-33523a361307c097a8a23f3549cb485db5fba6c5.zip |
net/mlx5e: Use pcie_bandwidth_available() to compute bandwidth
Use the new pci_bandwidth_available() function to calculate maximum
available bandwidth through the PCI chain instead of computing it ourselves
with mlx5e_get_pci_bw().
This is used to detect when the device is capable of more bandwidth than is
available in the current slot. The driver may adjust compression settings
accordingly.
Note that pci_bandwidth_available() accounts for PCIe encoding overhead, so
it is more accurate than mlx5e_get_pci_bw() was.
Signed-off-by: Tal Gilboa <talgi@mellanox.com>
[bhelgaas: remove mlx5e_get_pci_bw() wrapper altogether]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions