Re: [net-next rfc V3 8/9] macvtap: add TUNSETQUEUE ioctl

2013-06-06 Thread Jason Wang
On 06/06/2013 03:23 PM, Michael S. Tsirkin wrote: > On Thu, Jun 06, 2013 at 11:16:51AM +0800, Jason Wang wrote: >> > On 06/05/2013 06:59 PM, Michael S. Tsirkin wrote: >>> > > On Wed, Jun 05, 2013 at 02:36:31PM +0800, Jason Wang wrote: > >> This patch adds TUNSETQUEUE ioctl to let userspace can

Re: [net-next rfc V3 8/9] macvtap: add TUNSETQUEUE ioctl

2013-06-06 Thread Michael S. Tsirkin
On Thu, Jun 06, 2013 at 11:16:51AM +0800, Jason Wang wrote: > On 06/05/2013 06:59 PM, Michael S. Tsirkin wrote: > > On Wed, Jun 05, 2013 at 02:36:31PM +0800, Jason Wang wrote: > >> This patch adds TUNSETQUEUE ioctl to let userspace can temporarily disable > >> or > >> enable a queue of macvtap. Th

Re: [net-next rfc V3 8/9] macvtap: add TUNSETQUEUE ioctl

2013-06-05 Thread Jason Wang
On 06/05/2013 06:59 PM, Michael S. Tsirkin wrote: > On Wed, Jun 05, 2013 at 02:36:31PM +0800, Jason Wang wrote: >> 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

Re: [net-next rfc V3 8/9] macvtap: add TUNSETQUEUE ioctl

2013-06-05 Thread Michael S. Tsirkin
On Wed, Jun 05, 2013 at 02:36:31PM +0800, Jason Wang wrote: > 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 >

[net-next rfc V3 8/9] macvtap: add TUNSETQUEUE ioctl

2013-06-04 Thread Jason Wang
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