macvtap: add TUNSETQUEUE ioctl
authorJason Wang <jasowang@redhat.com>
Wed, 5 Jun 2013 23:54:39 +0000 (23:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Jun 2013 06:49:09 +0000 (23:49 -0700)
commit815f236d622721b54f3963ba59dad98b02cdeabf
tree1d250c5ea79bb8f5352fb1c0a978352cc9b3a3e1
parent376b1aabe1f53aad80615d05ddb8c43670be6a5c
macvtap: add TUNSETQUEUE ioctl

This patch adds TUNSETQUEUE ioctl to let userspace can temporarily disable or
enable a queue of macvtap. This is used to be compatible at API layer of tuntap
to simplify the userspace to manage the queues. This is done through introducing
a linked list to track all taps while using vlan->taps array to only track
active taps.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvtap.c
include/linux/if_macvlan.h