vhost: support interrupt mode
authorJunjie Chen <junjie.j.chen@intel.com>
Thu, 12 Apr 2018 16:28:34 +0000 (12:28 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Apr 2018 22:43:30 +0000 (00:43 +0200)
commit3f8ff12821e4a671b3a4877803c3a426eda0b946
tree1e6a7440d162b99138e32574908148129c9b28f4
parent896c87e8feda5ca1dc94b2c9e54b3d86c7112a22
vhost: support interrupt mode

In some cases we want vhost dequeue work in interrupt mode to
release cpus to others when no data to transmit. So we install
interrupt handler of vhost device and interrupt vectors for each
rx queue when creating new backend according to vhost interrupt
configuration. Thus, applications could register a epoll event fd
to associate rx queues with interrupt vectors.

Signed-off-by: Junjie Chen <junjie.j.chen@intel.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
drivers/net/vhost/rte_eth_vhost.c
lib/librte_vhost/vhost.c