io_uring/net: add non-bvec sg chunking callback
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 8 Sep 2022 12:20:32 +0000 (13:20 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Sep 2022 16:30:43 +0000 (10:30 -0600)
commitcd9021e88fddf0d9fa9704564153af2bdb5dc13c
treee2599891c185678958d9db1ca2859934de6169d3
parent6bf8ad25fcd42a719f24613deabcff2fd341c789
io_uring/net: add non-bvec sg chunking callback

Add a sg_from_iter() for when we initiate non-bvec zerocopy sends, which
helps us to remove some extra steps from io_sg_from_iter(). The only
thing the new function has to do before giving control away to
__zerocopy_sg_from_iter() is to check if the skb has managed frags and
downgrade them if so.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/cda3dea0d36f7931f63a70f350130f085ac3f3dd.1662639236.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c