diff options
author | 2018-02-27 14:53:42 +0100 | |
---|---|---|
committer | 2018-02-27 14:46:27 -0500 | |
commit | 3546b03ffcdb0a70b0d7302d7e139f096a613e9f (patch) | |
tree | 911300d9c924dd2352d74fb1be891d0a252f6aea /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mlxsw: span: Remove span_entry by span_id (diff) | |
download | linux-dev-3546b03ffcdb0a70b0d7302d7e139f096a613e9f.tar.xz linux-dev-3546b03ffcdb0a70b0d7302d7e139f096a613e9f.zip |
mlxsw: spectrum_span: Initialize span_entry.id eagerly
It is known statically ahead of time which SPAN entry will have which
ID. Just initialize it eagerly in mlxsw_sp_span_init(), don't wait until
the entry is actually created. This simplifies some code in
mlxsw_sp_span_entry_create()
Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@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