summaryrefslogtreecommitdiff
path: root/certs
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2018-09-12 06:17:06 +0300
committerDavid S. Miller <davem@davemloft.net>2018-09-13 19:25:40 +0300
commitfe8dd45bb7556246c6b76277b1ba4296c91c2505 (patch)
tree9e31911fda3e7b8ca55238498bf8becead0e3db4 /certs
parent1a097910adda6b3328fc235575bba0e9ee408492 (diff)
downloadlinux-fe8dd45bb7556246c6b76277b1ba4296c91c2505.tar.xz
tun: switch to new type of msg_control
This patch introduces to a new tun/tap specific msg_control: #define TUN_MSG_UBUF 1 #define TUN_MSG_PTR 2 struct tun_msg_ctl { int type; void *ptr; }; This allows us to pass different kinds of msg_control through sendmsg(). The first supported type is ubuf (TUN_MSG_UBUF) which will be used by the existed vhost_net zerocopy code. The second is XDP buff, which allows vhost_net to pass XDP buff to TUN. This could be used to implement accepting an array of XDP buffs from vhost_net in the following patches. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions