numam-dpdk/drivers/net/virtio/virtio_user
Jianfeng Tan cc4690e980 net/virtio-user: fix link status
Previously, we miss to set intr_handle->fd which will be used as
target file for epoll to check LSC.

As a result, stdin (0) is used and intr thread keeps busy whenever
data comes from stdin.

To fix this, we use vhostfd as the target file for epoll to check
the link status change events. And we move intr_handle initialization
after vhost backend settup to make sure vhostfd is initialized.

Fixes: 35c4f85548 ("net/virtio-user: support to report net status")

Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2017-04-19 10:49:06 +02:00
..
vhost_kernel_tap.c net/virtio-user: enable multiqueue with kernel vhost 2017-01-17 09:24:56 +01:00
vhost_kernel_tap.h net/virtio-user: enable multiqueue with kernel vhost 2017-01-17 09:24:56 +01:00
vhost_kernel.c net/virtio-user: fix tapfds close 2017-04-01 08:58:54 +02:00
vhost_user.c net/virtio-user: abstract backend operations 2017-01-17 09:23:27 +01:00
vhost.h net/virtio-user: support kernel vhost 2017-01-17 09:24:56 +01:00
virtio_user_dev.c net/virtio-user: fix link status 2017-04-19 10:49:06 +02:00
virtio_user_dev.h net/virtio-user: support Rx interrupt 2017-04-01 10:36:17 +02:00