]> 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)
commit1be119e9900ec49e4070e02307ef739d004ee174
tree1d250c5ea79bb8f5352fb1c0a978352cc9b3a3e1
parent643158c926b25938b11afc47ab5a53444aae9bbb
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