summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2020-02-20 10:07:52 +0300
committerDavid S. Miller <davem@davemloft.net>2020-02-20 21:04:34 +0300
commiteb833eec3b4cad9d5ba54d573f88f756e4c5fb84 (patch)
tree27a745b2249af410c3fccb4753581f3e31c33fd7 /tools/perf/scripts/python/export-to-sqlite.py
parent622110f24b453ab7542c51a0c7a4c799d252b0aa (diff)
downloadlinux-eb833eec3b4cad9d5ba54d573f88f756e4c5fb84.tar.xz
mlxsw: spectrum_span: Only update mirroring agents if present
In order not to needlessly schedule the work item that updates the mirroring agents, only schedule it if there are any mirroring agents present. This is done by adding an atomic counter that counts the active mirroring agents. It is incremented / decremented whenever a mirroring agent is created / destroyed. It is read before scheduling the work item and in the devlink-resource occupancy callback. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions