net/virtio: add Rx interrupt enable/disable functions
authorJianfeng Tan <jianfeng.tan@intel.com>
Tue, 17 Jan 2017 07:10:25 +0000 (07:10 +0000)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Tue, 17 Jan 2017 08:26:52 +0000 (09:26 +0100)
commitc056be239db5b1f0e6f3337a7c54b3df45035233
treefd41f81321aa4f8d7f2519b0b254df736511472f
parentc49526acec773f51161ecf993e0a1926a6c4b1ef
net/virtio: add Rx interrupt enable/disable functions

This patch implements interrupt enable/disable functions for each
Rx queue. And we rely on flags of avail queue as the hint for virtio
device to interrupt virtio driver or not.

Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Tested-by: Lei Yao <lei.a.yao@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtqueue.c
drivers/net/virtio/virtqueue.h