• Jens Axboe's avatar
    io_uring/net: support bundles for recv · 2f9c9515
    Jens Axboe authored
    If IORING_OP_RECV is used with provided buffers, the caller may also set
    IORING_RECVSEND_BUNDLE to turn it into a multi-buffer recv. This grabs
    buffers available and receives into them, posting a single completion for
    all of it.
    
    This can be used with multishot receive as well, or without it.
    
    Now that both send and receive support bundles, add a feature flag for
    it as well. If IORING_FEAT_RECVSEND_BUNDLE is set after registering the
    ring, then the kernel supports bundles for recv and send.
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    2f9c9515
net.c 42.3 KB