mbox series

[net-next,0/2] Support reading msg errq from io_uring

Message ID 20200820234954.1784522-1-luke.w.hsiao@gmail.com
Headers show
Series Support reading msg errq from io_uring | expand

Message

Luke Hsiao Aug. 20, 2020, 11:49 p.m. UTC
From: Luke Hsiao <lukehsiao@google.com>

This patch series adds support for reading MSG_ERRQUEUE using the
io_uring interface. Support for this operation allows io_uring to serve
as an alternative to epoll + recvmsg for reading notification
completions for TCP tx zerocopy. 

The first patch allows ancillary data to be read using recvmsg from
io_uring, while the second patch provides an optimization for reading
these notification completions.

Luke Hsiao (2):
  io_uring: allow tcp ancillary data for __sys_recvmsg_sock()
  io_uring: ignore POLLIN for recvmsg on MSG_ERRQUEUE

 fs/io_uring.c       | 11 +++++++++--
 include/linux/net.h |  3 +++
 net/ipv4/af_inet.c  |  1 +
 net/ipv6/af_inet6.c |  1 +
 net/socket.c        |  8 +++++---
 5 files changed, 19 insertions(+), 5 deletions(-)