net/virtio-user: fix interrupts with kernel vhost
authorJianfeng Tan <jianfeng.tan@intel.com>
Mon, 12 Feb 2018 03:20:28 +0000 (03:20 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 13 Feb 2018 17:58:02 +0000 (18:58 +0100)
commiteae6e70cea2fd62a7ab2b3a6693d015e9d3d7fcc
tree245c9081c95b1555cadc00e1a1c8a859b7435571
parentbce7e9050f9b5e92cead60e8ac7768812ce898f2
net/virtio-user: fix interrupts with kernel vhost

intr_handle->fd was wrongly initialized as 0 (usually as the stdio fd)
when virtio-user is used with vhost-kernel. So the interrupt thread
might wrongly treat stdin events as LSC interrupts.

Fixes: 3d4fb6fd2505 ("net/virtio-user: support Rx interrupt")
Cc: stable@dpdk.org
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_user/virtio_user_dev.c