]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: batch zerocopy_fill_skb_from_iter accounting
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 27 Jun 2024 12:59:43 +0000 (13:59 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 2 Jul 2024 10:06:50 +0000 (12:06 +0200)
commitaeb320fc05c74e1d3b429aa0e3a777b8a931c189
treec653020dc9e79e01e3bccbfca123f887a53b1702
parent7fb05423fed41686ccc1a76c20d486728f62023f
net: batch zerocopy_fill_skb_from_iter accounting

Instead of accounting every page range against the socket separately, do
it in batch based on the change in skb->truesize. It's also moved into
__zerocopy_sg_from_iter(), so that zerocopy_fill_skb_from_iter() is
simpler and responsible for setting frags but not the accounting.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/datagram.c