tap/tun: add skb_zcopy_init() helper for initialization.
authorJonathan Lemon <jonathan.lemon@gmail.com>
Wed, 6 Jan 2021 22:18:40 +0000 (14:18 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 8 Jan 2021 00:08:37 +0000 (16:08 -0800)
commit9ee5e5ade033875191a2d2e470033e9cdde44a6a
tree83afacafdceb7f0d0c3b17c9e358cf7a11e32fe7
parent04c2d33eabdc76df730e1e356f6b2c656381d7d5
tap/tun: add skb_zcopy_init() helper for initialization.

Replace direct assignments with skb_zcopy_init() for zerocopy
cases where a new skb is initialized, without changing the
reference counts.

Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/tap.c
drivers/net/tun.c
drivers/vhost/net.c
include/linux/skbuff.h