diff options
| author | Petr Machata <[email protected]> | 2021-01-28 13:49:16 +0100 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-01-28 20:49:51 -0800 |
| commit | 720ccd9a728506ca4721b18a22a2157a9d48ed60 (patch) | |
| tree | 38307a1561dc0b97aad2394ba0d18352e61f211a /tools/perf/scripts/python/stackcollapse.py | |
| parent | b9bae61be46645aa3b8b5d79d5cdfabe55ae1507 (diff) | |
nexthop: Assert the invariant that a NH group is of only one type
Most of the code that deals with nexthop groups relies on the fact that the
group is of exactly one well-known type. Currently there is only one type,
"mpath", but as more next-hop group types come, it becomes desirable to
have a central place where the setting is validated. Introduce such place
into nexthop_create_group(), such that the check is done before the code
that relies on that invariant is invoked.
Signed-off-by: Petr Machata <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions