]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
tuntap: add ioctl to attach or detach a file form tuntap device
authorJason Wang <jasowang@redhat.com>
Wed, 31 Oct 2012 19:46:01 +0000 (19:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Nov 2012 15:14:08 +0000 (11:14 -0400)
commitcde8b15f1aabe327038ee4e0e11dd6b798572f69
tree920146d9cb4e1918c1e4b5063ce23de675f5988f
parentc8d68e6be1c3b242f1c598595830890b65cea64a
tuntap: add ioctl to attach or detach a file form tuntap device

Sometimes usespace may need to active/deactive a queue, this could be done by
detaching and attaching a file from tuntap device.

This patch introduces a new ioctls - TUNSETQUEUE which could be used to do
this. Flag IFF_ATTACH_QUEUE were introduced to do attaching while
IFF_DETACH_QUEUE were introduced to do the detaching.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c
include/uapi/linux/if_tun.h