diff options
author | Ido Schimmel <idosch@mellanox.com> | 2020-07-14 17:20:58 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-14 14:50:49 -0700 |
commit | 6edc8beab443ec23d10e489007b4e94d9a05846d (patch) | |
tree | e08839f1945300a733455476a8078448c43f4b83 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | f4a626e2ca09aeffd30509349759fb30379fe83f (diff) |
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/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions