aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorIdo Schimmel <[email protected]>2016-04-06 17:10:02 +0200
committerDavid S. Miller <[email protected]>2016-04-06 17:24:16 -0400
commit1a1984490f5c123ee62394bc435a2c09db15cc18 (patch)
tree39924730f4708f6508e427060f1b0baefc360ab5 /tools/perf/scripts/python/syscall-counts.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 <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions