diff options
author | Jason Wang <jasowang@redhat.com> | 2018-09-12 05:17:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-13 18:25:40 +0200 |
commit | 043d222f93ab8c76b56a3b315cd8692e35affb6c (patch) | |
tree | a801e9d961ce25b29b1a00603e8662735cefd525 /drivers/net/tap.c | |
parent | tun: switch to new type of msg_control (diff) | |
download | linux-043d222f93ab8c76b56a3b315cd8692e35affb6c.tar.xz linux-043d222f93ab8c76b56a3b315cd8692e35affb6c.zip |
tuntap: accept an array of XDP buffs through sendmsg()
This patch implement TUN_MSG_PTR msg_control type. This type allows
the caller to pass an array of XDP buffs to tuntap through ptr field
of the tun_msg_control. If an XDP program is attached, tuntap can run
XDP program directly. If not, tuntap will build skb and do a fast
receiving since part of the work has been done by vhost_net.
This will avoid lots of indirect calls thus improves the icache
utilization and allows to do XDP batched flushing when doing XDP
redirection.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tap.c')
0 files changed, 0 insertions, 0 deletions