diff options
author | Jason Wang <jasowang@redhat.com> | 2018-09-12 11:17:03 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-13 09:25:40 -0700 |
commit | ac1f1f6c5ae8352a39afea7b0786c59bcd730712 (patch) | |
tree | 2c4820e906b8f4ea4de60d99046172e3d1f6a702 /include/net/neighbour.h | |
parent | f7053b6ccb65a36fdfed6ad92b808464839f0eb6 (diff) | |
download | linux-ac1f1f6c5ae8352a39afea7b0786c59bcd730712.tar.gz linux-ac1f1f6c5ae8352a39afea7b0786c59bcd730712.tar.bz2 linux-ac1f1f6c5ae8352a39afea7b0786c59bcd730712.zip |
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>
Diffstat (limited to 'include/net/neighbour.h')
0 files changed, 0 insertions, 0 deletions