diff options
| author | Jakub Kicinski <[email protected]> | 2020-10-02 14:49:55 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-10-02 19:11:12 -0700 |
| commit | adc848450ff84e961cf7966b8a475889a92a9fd3 (patch) | |
| tree | a0268811e0d3f5acab79a98068b71e659d09d2d8 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 66a9b9287d2447a91cef2fafc648dee32186f708 (diff) | |
genetlink: add a structure for dump state
Whenever netlink dump uses more than 2 cb->args[] entries
code gets hard to read. We're about to add more state to
ctrl_dumppolicy() so create a structure.
Since the structure is typed and clearly named we can remove
the local fam_id variable and use ctx->fam_id directly.
v3:
- rebase onto explicit free fix
v1:
- s/nl_policy_dump/netlink_policy_dump_state/
- forward declare struct netlink_policy_dump_state,
and move from passing unsigned long to actual pointer type
- add build bug on
- u16 fam_id
- s/args/ctx/
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Johannes Berg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions