Commit 136c2a9
rtnetlink: change rtnl_stats_dump() return value
By returning 0 (or an error) instead of skb->len,
we allow NLMSG_DONE to be appended to the current
skb at the end of a dump, saving a couple of recvmsg()
system calls.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240502113748.1622637-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 5829614 commit 136c2a9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6024 | 6024 | | |
6025 | 6025 | | |
6026 | 6026 | | |
6027 | | - | |
| 6027 | + | |
6028 | 6028 | | |
6029 | 6029 | | |
6030 | 6030 | | |
| |||
0 commit comments