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:46 +0300
committerDavid S. Miller <davem@davemloft.net>2020-02-20 21:04:33 +0300
commit48fe78cebdf6592ef1750647253101f3526c5b7b (patch)
tree5972d732cac364ea2dfac1fa249bb03a06014d85 /tools/perf/scripts/python/export-to-sqlite.py
parent807ea87032c491260bbf5fe6f5c62ec9187d2e8f (diff)
downloadlinux-48fe78cebdf6592ef1750647253101f3526c5b7b.tar.xz
mlxsw: spectrum_kvdl: Protect allocations with a lock
The KVDL is used to store objects allocated throughout various places in the driver. For example, both nexthops (adjacency entries) and ACL actions are stored in the KVDL. Currently, all allocations are protected by RTNL, but this is going to change with the removal of RTNL from the routing code. Therefore, protect KVDL allocations with a lock. A mutex is used since the free operation can block in Spectrum-2. 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