net/virtio: register/unregister intr handler on start/stop
authorLuca Boccassi <bluca@debian.org>
Wed, 31 Oct 2018 18:39:43 +0000 (18:39 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 2 Nov 2018 09:49:22 +0000 (10:49 +0100)
commitf9b0d1902caf893493b5e07763ecf817c34fc75c
treea1b451854ea92d14f2cd26b4685ade1dd9d1ad59
parent95781f4c64419a126b864f76dd1f00f9c01e0f43
net/virtio: register/unregister intr handler on start/stop

Register and unregister the virtio interrupt handler when the device is
started and stopped. This allows a virtio device to be hotplugged or
unplugged.

Fixes: c1f86306a026 ("virtio: add new driver")
Cc: stable@dpdk.org
Signed-off-by: Brian Russell <brussell@brocade.com>
Signed-off-by: Luca Boccassi <bluca@debian.org>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c