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)
commit58810fe5fd1e836809a42d7d3847a3214a5b8889
tree920146d9cb4e1918c1e4b5063ce23de675f5988f
parentad875707461d9d1409ce0203780868f6dde7245d
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