vhost: interrupt mode enhancements 37/6037/4
authorSteven <sluong@cisco.com>
Tue, 4 Apr 2017 23:56:54 +0000 (16:56 -0700)
committerDamjan Marion <dmarion.lists@gmail.com>
Tue, 11 Apr 2017 14:52:11 +0000 (14:52 +0000)
commite4dcba801ae7abeea7d8a9f5d0784a540a3c2bd8
tree7db97685af23ffdbdccaa75ed6a45f8da98183fb
parentecba903bcfc5046b0d8aee18433ab9fc09c6a68f
vhost: interrupt mode enhancements

- Add cpu index to the vring structure for quick lookup
- Reduce the code that needs to be protected by
vlib_worker_thread_barrier_sync
- Set minimum timer no less than 1 ms

Change-Id: Iafef4bf6879a8efb350abf4e0f517e38f7ff7a8b
Signed-off-by: Steven <sluong@cisco.com>
src/vnet/devices/virtio/vhost-user.c
src/vnet/devices/virtio/vhost-user.h