Skip to content
Commit a61b19f4 authored by Maksym Kutsevol's avatar Maksym Kutsevol Committed by Jakub Kicinski
Browse files

netpoll: Make netpoll_send_udp return status instead of void



netpoll_send_udp can return if send was successful.
It will allow client code to be aware of the send status.

Possible return values are the result of __netpoll_send_skb (cast to int)
and -ENOMEM. This doesn't cover the case when TX was not successful
instantaneously and was scheduled for later, __netpoll__send_skb returns
success in that case.

Signed-off-by: default avatarMaksym Kutsevol <max@kutsevol.com>
Link: https://patch.msgid.link/20241202-netcons-add-udp-send-fail-statistics-to-netconsole-v5-1-70e82239f922@kutsevol.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a9ab02ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment