commit | 1b16bf42d154c8fbbab2cccc419e2ba47d700849 | [log] [tgz] |
---|---|---|
author | Jason Wang <jasowang@redhat.com> | Fri Jul 15 03:46:30 2016 -0400 |
committer | David S. Miller <davem@davemloft.net> | Fri Jul 15 14:40:39 2016 -0700 |
tree | ceca5157fc452af785e30c34259478f3038bc475 | |
parent | e980a0764a16897294207eaf4556c3038768adb9 [diff] |
macvtap: avoid hash calculating for single queue We decide the rxq through calculating its hash which is not necessary if we only have one rx queue. So this patch skip this and just return queue 0. Test shows 22% improving on guest rx pps. Before: 1201504 pkts/s After: 1472731 pkts/s Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>