diff options
author | Ido Schimmel <[email protected]> | 2021-04-16 18:55:34 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-04-19 15:20:34 -0700 |
commit | 9e46fb656fdb40baec33a8942743d81a40f30fd3 (patch) | |
tree | d4d7a4b77a2504818624ee1abfcd07a6cf2f4691 /tools/perf/scripts/python/flamegraph.py | |
parent | 56aa7b21a5a7d30484ab5833641cb172356225f1 (diff) |
nexthop: Restart nexthop dump based on last dumped nexthop identifier
Currently, a multi-part nexthop dump is restarted based on the number of
nexthops that have been dumped so far. This can result in a lot of
nexthops not being dumped when nexthops are simultaneously deleted:
# ip nexthop | wc -l
65536
# ip nexthop flush
Dump was interrupted and may be inconsistent.
Flushed 36040 nexthops
# ip nexthop | wc -l
29496
Instead, restart the dump based on the nexthop identifier (fixed number)
of the last successfully dumped nexthop:
# ip nexthop | wc -l
65536
# ip nexthop flush
Dump was interrupted and may be inconsistent.
Flushed 65536 nexthops
# ip nexthop | wc -l
0
Reported-by: Maksym Yaremchuk <[email protected]>
Tested-by: Maksym Yaremchuk <[email protected]>
Signed-off-by: Ido Schimmel <[email protected]>
Reviewed-by: Petr Machata <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions