summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGavin Li <gavinl@nvidia.com>2023-08-31 05:47:09 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2023-12-05 09:11:53 +0300
commit7aaf975238c47b710fcc4eca0da1e7902a53abe2 (patch)
treeb5b005db101c796728b00aeafa5be7601dd901d2 /tools/perf/scripts/python/export-to-postgresql.py
parent3d7a3f2612d75de5f371a681038b089ded6667eb (diff)
downloadlinux-7aaf975238c47b710fcc4eca0da1e7902a53abe2.tar.xz
net/mlx5e: Check netdev pointer before checking its net ns
Previously, when comparing the net namespaces, the case where the netdev doesn't exist wasn't taken into account, and therefore can cause a crash. In such a case, the comparing function should return false, as there is no netdev->net to compare the devlink->net to. Furthermore, this will result in an attempt to enter switchdev mode without a netdev to fail, and which is the desired result as there is no meaning in switchdev mode without a net device. Fixes: 662404b24a4c ("net/mlx5e: Block entering switchdev mode with ns inconsistency") Signed-off-by: Gavin Li <gavinl@nvidia.com> Reviewed-by: Gavi Teitz <gavi@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions