diff options
author | 2020-07-14 17:20:58 +0300 | |
---|---|---|
committer | 2020-07-14 14:50:49 -0700 | |
commit | 6edc8beab443ec23d10e489007b4e94d9a05846d (patch) | |
tree | e08839f1945300a733455476a8078448c43f4b83 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mlxsw: spectrum_span: Add driver private info to parms_set() callback (diff) | |
download | linux-dev-6edc8beab443ec23d10e489007b4e94d9a05846d.tar.xz linux-dev-6edc8beab443ec23d10e489007b4e94d9a05846d.zip |
mlxsw: spectrum_span: Do not dereference destination netdev
Currently, the destination netdev to which we mirror must be a valid
netdev. However, this is going to change with the introduction of
mirroring towards the CPU port, as the CPU port does not have a backing
netdev.
Avoid dereferencing the destination netdev when it is not clear if it is
valid or not.
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions