]> git.baikalelectronics.ru Git - kernel.git/commit
tuntap: tweak on the path of skb XDP case in tun_build_skb()
authorJason Wang <jasowang@redhat.com>
Wed, 12 Sep 2018 03:17:03 +0000 (11:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2018 16:25:40 +0000 (09:25 -0700)
commit01f8df9d4548f73e756e24d1456d86405beef361
tree2c4820e906b8f4ea4de60d99046172e3d1f6a702
parent99006539193dfbe3e6e6568944fb1465fb927c48
tuntap: tweak on the path of skb XDP case in tun_build_skb()

If we're sure not to go native XDP, there's no need for several things
like bh and rcu stuffs. So this patch introduces a helper to build skb
and hold page refcnt. When we found we will go through skb path, build
skb directly.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c