tcp_metrics: fix tcp_metrics_nl_dump() return value
authorEric Dumazet <edumazet@google.com>
Tue, 16 Apr 2024 16:11:12 +0000 (16:11 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Apr 2024 01:30:58 +0000 (18:30 -0700)
commitade1c9cc404a15057b62888352e57fd5f54c5331
treea2825b4cffafda09a089e3158ec45cc9fdcfae6c
parent1514b06aff1681a418089060f0ebe936c27481bc
tcp_metrics: fix tcp_metrics_nl_dump() return value

Change tcp_metrics_nl_dump() to return 0 at the end
of a dump so that NLMSG_DONE can be appended
to the current skb, saving one recvmsg() system call.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240416161112.1199265-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_metrics.c