]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
virtio-net: reset virtqueue affinity when doing cpu hotplug
authorWanlong Gao <gaowanlong@cn.fujitsu.com>
Thu, 24 Jan 2013 23:51:31 +0000 (23:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Jan 2013 06:22:51 +0000 (01:22 -0500)
commit8de4b2f3ae90c8fc0f17eeaab87d5a951b66ee17
treef46a5ec6dd1e2654d61ee72606bdd5b672c739c3
parent8898c21cf37d04041863e7ecf53707dff504bda0
virtio-net: reset virtqueue affinity when doing cpu hotplug

Add a cpu notifier to virtio-net, so that we can reset the
virtqueue affinity if the cpu hotplug happens. It improve
the performance through enabling or disabling the virtqueue
affinity after doing cpu hotplug.

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>
drivers/net/virtio_net.c