]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit965b0841b72978f331c368ddde912048e5292d72
tree1d250c5ea79bb8f5352fb1c0a978352cc9b3a3e1
parent3857ceca212d6e645433ec6022c9500308ca98e0
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