examples/vdpa: add statistics show command
authorMatan Azrad <matan@mellanox.com>
Thu, 18 Jun 2020 18:59:44 +0000 (18:59 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:29 +0000 (14:52 +0200)
commit6505865aa8ed15632a23da3466a1a24076d357c0
tree475838cdbc8f25b509f4543504f5f9641a34f947
parent7de66d823e993fd0394a5604d03564a10f2be8e8
examples/vdpa: add statistics show command

A new vDPA driver feature was added to query the virtq
statistics from the HW.

Use this feature to show the HW queues statistics for the virtqs.

Command description: stats X Y.
X is the device ID.
Y is the queue ID, Y=0xffff to show all the virtio queues
statistics of the device X.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
doc/guides/sample_app_ug/vdpa.rst
examples/vdpa/main.c