summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJianbo Liu <jianbol@nvidia.com>2023-10-12 05:00:44 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2023-12-05 09:11:52 +0300
commit4e25b661f484df54b6751b65f9ea2434a3b67539 (patch)
treea8944e2d7c3a5d3983a61e701a2a5003a844222c /tools/perf/scripts/python/export-to-sqlite.py
parentbaac8351f74c543896b8fd40138b7ad9365587a3 (diff)
downloadlinux-4e25b661f484df54b6751b65f9ea2434a3b67539.tar.xz
net/mlx5e: Check the number of elements before walk TC rhashtable
After IPSec TX tables are destroyed, the flow rules in TC rhashtable, which have the destination to IPSec, are restored to the original one, the uplink. However, when the device is in switchdev mode and unload driver with IPSec rules configured, TC rhashtable cleanup is done before IPSec cleanup, which means tc_ht->tbl is already freed when walking TC rhashtable, in order to restore the destination. So add the checking before walking to avoid unexpected behavior. Fixes: d1569537a837 ("net/mlx5e: Modify and restore TC rules for IPSec TX rules") Signed-off-by: Jianbo Liu <jianbol@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions