vhost: introduce operation to get vDPA queue stats
authorMatan Azrad <matan@mellanox.com>
Thu, 18 Jun 2020 18:59:41 +0000 (18:59 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:29 +0000 (14:52 +0200)
commit1cb44157518a68f3f829e476ea2cb2040dcc0dd5
tree9c93f229d97cd5ecd2bc5366f4adc06e2e2698da
parentd1c074bd7663b3eb009eff30aff3306d242f4a61
vhost: introduce operation to get vDPA queue stats

The vDPA device offloads all the datapath of the vhost
device to the HW device.

In order to expose to the user traffic information this
patch introduces new 3 APIs to get traffic statistics, the
device statistics name and to reset the statistics per
virtio queue.

The statistics are taken directly from the vDPA driver
managing the HW device and can be different for each vendor
driver.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
doc/guides/rel_notes/release_20_08.rst
doc/guides/vdpadevs/features/default.ini
doc/guides/vdpadevs/features_overview.rst
lib/librte_vhost/rte_vdpa.h
lib/librte_vhost/rte_vhost_version.map
lib/librte_vhost/vdpa.c