diff options
| author | Jakub Kicinski <[email protected]> | 2022-08-25 20:09:30 -0700 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2022-08-30 12:20:43 +0200 |
| commit | 0c95cea24f30eb28d464c593d8fbd64cd305791b (patch) | |
| tree | 05a577e14b355a97f8b42fba0d5dcb48760a06b4 /tools/perf/scripts/python/intel-pt-events.py | |
| parent | 47cf88993c910840d565631ad906abdca9168231 (diff) | |
netlink: factor out extack composition
The ext_ack writing code looks very "organically grown".
Move the calculation of the size and writing out to helpers.
This is more idiomatic and gives us the ability to return early
avoiding the long (and randomly ordered) "if" conditions.
Reviewed-by: Johannes Berg <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions