net/virtio-user: support Rx interrupt
authorJianfeng Tan <jianfeng.tan@intel.com>
Fri, 31 Mar 2017 19:44:56 +0000 (19:44 +0000)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Sat, 1 Apr 2017 08:36:17 +0000 (10:36 +0200)
commit3d4fb6fd250577411f904e02bfd5b703b69fbddf
tree6f589b236b9230d1fde2034195b6f3210b4e5dd3
parente6e7ad8b302400b02b40a29feb0384beb6f68bd2
net/virtio-user: support Rx interrupt

For rxq interrupt, the device (backend driver) will notify driver
through callfd. Each virtqueue has a callfd. To keep compatible
with the existing framework, we will give these callfds to
interrupt thread for listening for interrupts.

Before that, we need to allocate intr_handle, and fill callfds
into it so that driver can use it to set up rxq interrupt mode.

Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
doc/guides/rel_notes/release_17_05.rst
drivers/net/virtio/virtio_user/virtio_user_dev.c
drivers/net/virtio/virtio_user/virtio_user_dev.h
drivers/net/virtio/virtio_user_ethdev.c