diff options
| author | Moshe Shemesh <[email protected]> | 2020-11-23 07:36:25 +0200 | 
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2020-11-24 13:04:04 -0800 | 
| commit | 5204bb683c1633e550c2124ccc2358dd645a80db (patch) | |
| tree | bd7955b94678e96d3b89de81d6a094c9c50219a8 /tools/testing/selftests/bpf/prog_tests/cgroup_attach_multi.c | |
| parent | 9bd2702d292cb7b565b09e949d30288ab7a26d51 (diff) | |
devlink: Fix reload stats structure
Fix reload stats structure exposed to the user. Change stats structure
hierarchy to have the reload action as a parent of the stat entry and
then stat entry includes value per limit. This will also help to avoid
string concatenation on iproute2 output.
Reload stats structure before this fix:
"stats": {
    "reload": {
        "driver_reinit": 2,
        "fw_activate": 1,
        "fw_activate_no_reset": 0
     }
}
After this fix:
"stats": {
    "reload": {
        "driver_reinit": {
            "unspecified": 2
        },
        "fw_activate": {
            "unspecified": 1,
            "no_reset": 0
        }
}
Fixes: a254c264267e ("devlink: Add reload stats")
Signed-off-by: Moshe Shemesh <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/cgroup_attach_multi.c')
0 files changed, 0 insertions, 0 deletions