aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/uid16.c
diff options
context:
space:
mode:
authorWanlong Gao <gaowanlong@cn.fujitsu.com>2013-01-24 23:51:29 +0000
committerDavid S. Miller <davem@davemloft.net>2013-01-27 01:22:51 -0500
commit47be24796c13e7d9f087005c2bedc68ee0709f7b (patch)
treed1f4e4c652876e1121f97cb8f5ccf4e1ef1946bf /kernel/uid16.c
parentcan: pch_can: fix invalid error codes (diff)
downloadlinux-dev-47be24796c13e7d9f087005c2bedc68ee0709f7b.tar.xz
linux-dev-47be24796c13e7d9f087005c2bedc68ee0709f7b.zip
virtio-net: fix the set affinity bug when CPU IDs are not consecutive
As Michael mentioned, set affinity and select queue will not work very well when CPU IDs are not consecutive, this can happen with hot unplug. Fix this bug by traversal the online CPUs, and create a per cpu variable to find the mapping from CPU to the preferable virtual-queue. Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: "Michael S. Tsirkin" <mst@redhat.com> Cc: Jason Wang <jasowang@redhat.com> Cc: Eric Dumazet <erdnetdev@gmail.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: virtualization@lists.linux-foundation.org Cc: netdev@vger.kernel.org Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/uid16.c')
0 files changed, 0 insertions, 0 deletions