Skip to content
Commit ac1f1f6c authored by Jason Wang's avatar Jason Wang Committed by David S. Miller
Browse files

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: default avatarJason Wang <jasowang@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f7053b6c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment