Handle dynamic enable/disable VHOST_USER interface 69/369/2
authorShesha Sreenivasamurthy <shesha@cisco.com>
Fri, 19 Feb 2016 21:36:53 +0000 (13:36 -0800)
committerGerrit Code Review <gerrit@fd.io>
Wed, 24 Feb 2016 12:05:20 +0000 (12:05 +0000)
commit9ad5adcf08f30da0140cce21fae64df3087d8207
tree0e1957b852c7cb395141478329b6063d9040ca07
parenteef4d99bcd0ad868145af76ca1ad2595ecc3ad19
Handle dynamic enable/disable VHOST_USER interface

    If number of Qs enabled by the guest is less
    than number of Qs exported to guest, then all
    threads route packet to Q0 with the assumption
    that guest is not interested in performance.
    If all Qs are enabled, each thread queues packet
    in their own TX-Q of the VHOST_USER interface,
    boosting performance.

Change-Id: Ic24bb8c0505b11c7513aeecd21c9ec5da5f90138
Signed-off-by: Shesha Sreenivasamurthy <shesha@cisco.com>
vnet/vnet/devices/dpdk/device.c
vnet/vnet/devices/dpdk/dpdk.h
vnet/vnet/devices/dpdk/init.c
vnet/vnet/devices/dpdk/vhost_user.c