vhost: support Rx queue count request
authorZhihong Wang <zhihong.wang@intel.com>
Fri, 26 May 2017 17:18:02 +0000 (13:18 -0400)
committerYuanhan Liu <yliu@fridaylinux.org>
Fri, 16 Jun 2017 12:04:25 +0000 (14:04 +0200)
commit29150b70abf687e1ca4504d06a0b77e66f3207a1
treee53e635bf4e4887b56b1e5b0b3cd0094418d51af
parent4cee38a6fca1f9d8ea67811090166de4393b0518
vhost: support Rx queue count request

This patch implements the ops rx_queue_count for vhost PMD by adding
a helper function rte_vhost_rx_queue_count in vhost lib.

The ops rx_queue_count gets vhost RX queue avail count and helps to
understand the queue fill level.

Signed-off-by: Zhihong Wang <zhihong.wang@intel.com>
Acked-by: Ciara Loftus <ciara.loftus@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/vhost/rte_eth_vhost.c
lib/librte_vhost/rte_vhost.h
lib/librte_vhost/rte_vhost_version.map
lib/librte_vhost/vhost.c