commit | ac1f1f6c5ae8352a39afea7b0786c59bcd730712 | [log] [tgz] |
---|---|---|
author | Jason Wang <jasowang@redhat.com> | Wed Sep 12 11:17:03 2018 +0800 |
committer | David S. Miller <davem@davemloft.net> | Thu Sep 13 09:25:40 2018 -0700 |
tree | 2c4820e906b8f4ea4de60d99046172e3d1f6a702 | |
parent | f7053b6ccb65a36fdfed6ad92b808464839f0eb6 [diff] |
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>