mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
sctp: support MSG_ERRQUEUE flag in recvmsg()
[ Upstream commit4746b36b1a] For some reason sctp_poll() generates EPOLLERR if sk->sk_error_queue is not empty but recvmsg() can not drain the error queue yet. This is needed to better support timestamping. I had to export inet_recv_error(), since sctp can be compiled as a module. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Cc: Willem de Bruijn <willemb@google.com> Acked-by: Xin Long <lucien.xin@gmail.com> Link: https://lore.kernel.org/r/20231212145550.3872051-1-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Stable-dep-of:a562c0a2d6("sctp: fix busy polling") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3c0bd2b066
commit
9233a88f4b
2 changed files with 4 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue