diff options
author | Eric Dumazet <edumazet@google.com> | 2024-02-22 10:50:12 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-02-26 11:46:12 +0000 |
commit | 6647b338fc5c6741736fe51a25fc2c0bec6398b8 (patch) | |
tree | 4d704225d625db77bf5101a99ceb4f5f952cc6d3 /tools/perf/scripts/python/task-analyzer.py | |
parent | ac14ad9755d4f8f286fd2cd710aa5dcf9a3c777a (diff) |
netlink: fix netlink_diag_dump() return value
__netlink_diag_dump() returns 1 if the dump is not complete,
zero if no error occurred.
If err variable is zero, this means the dump is complete:
We should not return skb->len in this case, but 0.
This allows NLMSG_DONE to be appended to the skb.
User space does not have to call us again only to get NLMSG_DONE.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions