Re: [net-next RFC 5/8] macvtap: eliminate linear search

2013-05-23 Thread Jason Wang
On 05/23/2013 07:41 PM, Michael S. Tsirkin wrote: > On Thu, May 23, 2013 at 11:12:30AM +0800, Jason Wang wrote: >> Linear search were used in both get_slot() and macvtap_get_queue(), this is >> because: >> >> - macvtap didn't reshuffle the array of taps when create or destroy a queue, >> so >> w

Re: [net-next RFC 5/8] macvtap: eliminate linear search

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 11:12:30AM +0800, Jason Wang wrote: > Linear search were used in both get_slot() and macvtap_get_queue(), this is > because: > > - macvtap didn't reshuffle the array of taps when create or destroy a queue, > so > when adding a new queue, macvtap must do linear search to