aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2020-01-24 15:23:15 +0200
committerDavid S. Miller <[email protected]>2020-01-25 10:56:31 +0100
commitadc6c7ec11293117ec2763ccbe17d58349e011cf (patch)
treebf4af539ef122aa6662bfcb028367b0d4952c238 /scripts/bpf_helpers_doc.py
parenta44f58c41bfbb921c1c4586bed9ad26aa2c6208a (diff)
selftests: Move two functions from mlxsw's qos_lib to lib
The function humanize() is used for converting value in bits/s to a human-friendly approximate value in Kbps, Mbps or Gbps. There is nothing hardware-specific in that, so move the function to lib.sh. Similarly for the rate() function, which just does a bit of math to calculate a rate, given two counter values and a time interval. Signed-off-by: Petr Machata <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions