net-tun: Eliminate two tun/xdp related function calls from vhost-net
authorMaciej Żenczykowski <maze@google.com>
Wed, 19 Aug 2020 01:07:10 +0000 (18:07 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Aug 2020 21:02:49 +0000 (14:02 -0700)
commit596b5ef458f903d4362fb3c69967b6d8a23334bd
treefd3ad5165cdb78b0e52481b349157d08930d1d27
parentb558b6c24068d87ffcd95dad3bf0d9bd2ac290e9
net-tun: Eliminate two tun/xdp related function calls from vhost-net

This provides a minor performance boost by virtue of inlining
instead of cross module function calls.

Test: builds

Signed-off-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200819010710.3959310-2-zenczykowski@gmail.com
drivers/net/tun.c
include/linux/if_tun.h