]> git.baikalelectronics.ru Git - kernel.git/commit
skbuff: simplify sock_zerocopy_put
authorJonathan Lemon <jonathan.lemon@gmail.com>
Wed, 6 Jan 2021 22:18:30 +0000 (14:18 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 8 Jan 2021 00:06:37 +0000 (16:06 -0800)
commit5fc9f7467a8516d766d38e584772496a84c9add4
treeb866eb1b4d3f006ab84c44565f0b7e7bd0df0786
parentd3fcfa198ae7704ac6d10e7b7566cfbb3a484917
skbuff: simplify sock_zerocopy_put

All 'struct ubuf_info' users should have a callback defined
as of commit b711e82a14ab ("sock: fix zerocopy_success regression
with msg_zerocopy").

Remove the dead code path to consume_skb(), which makes
assumptions about how the structure was allocated.

Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/skbuff.c