diff options
| author | Ido Schimmel <idosch@nvidia.com> | 2021-01-28 15:49:17 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-29 07:49:52 +0300 |
| commit | 09ad6becf5355fe0645f500f518fbbd531715722 (patch) | |
| tree | eeb9454ed1731d5dda578ee19cfffff84c62f195 /tools/perf/scripts/python/flamegraph.py | |
| parent | 720ccd9a728506ca4721b18a22a2157a9d48ed60 (diff) | |
| download | linux-09ad6becf5355fe0645f500f518fbbd531715722.tar.xz | |
nexthop: Use enum to encode notification type
Currently there are only two types of in-kernel nexthop notification.
The two are distinguished by the 'is_grp' boolean field in 'struct
nh_notifier_info'.
As more notification types are introduced for more next-hop group types, a
boolean is not an easily extensible interface. Instead, convert it to an
enum.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
