aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2016-04-06 11:10:02 -0400
committerDavid S. Miller <davem@davemloft.net>2016-04-06 17:24:16 -0400
commit1a1984490f5c123ee62394bc435a2c09db15cc18 (patch)
tree39924730f4708f6508e427060f1b0baefc360ab5 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentdd6cb0f9fdb31c4bf89e482031cd098bf5f706d4 (diff)
mlxsw: spectrum: Add bytes to cells helper
Buffers in the switch store packets in units called buffer cells. Add a helper to convert from bytes to cells, so that the actual number of cells required (result is round up) is returned. Also, drop the SB (shared buffer) acronym from the BYTES_PER_CELL macro, as this unit is also used in the ports' buffers and not only the switch's shared buffer. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions