# Re: \[PATCH\] macvtap: Fix macvtap\_get\_queue to use rxhash first

- From: Michael S. Tsirkin \<mst@redhat.com\>
- Date: 2011-11-27 17:14:59 
- List: netdev
- Page: https://ratatoskr.run/netdev/2011/11/10883444
- Thread: https://ratatoskr.run/netdev/2011/11/10883220/t.md

```text
On Fri, Nov 25, 2011 at 09:39:11AM +0530, Krishna Kumar2 wrote:
> Jason Wang [ref] wrote on 11/25/2011 08:51:57 AM:
> >
> > My description is not clear again :(
> > I mean the same vhost thead:
> >
> > vhost thread #0 transmits packets of flow A on processor M
> > ...
> > vhost thread #0 move to another process N and start to transmit packets
> > of flow A
> 
> Thanks for clarifying. Yes, binding vhosts to CPU's
> makes the incoming packet go to the same vhost each
> time.

Interesting, but still not sure why.
What if you bind the VCPUs but not the vhost thread?

> BTW, are you doing any binding and/or irqbalance
> when you run your tests? I am not running either at
> this time, but thought both might be useful.
> 
> - KK

Either pinning or irqbalance is a good idea.
Doing neither means you get a random CPU handling
interrupts.

-- 
MST
```
