vhost: unify message handling function signature
authorNikolay Nikolaev <nicknickolaev@gmail.com>
Mon, 24 Sep 2018 20:17:25 +0000 (23:17 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 27 Sep 2018 23:41:03 +0000 (01:41 +0200)
commit0bff510b5ea6d7a9ea7f5407e66b438a0797987f
tree242ce35d4bad33a5cc649dd3e3e43b882339074c
parentfd29c33b651ab97a4f7ebac509bbac2e005baced
vhost: unify message handling function signature

Each vhost-user message handling function will return an int result
which is described in the new enum vh_result: error, OK and reply.
All functions will now have two arguments, virtio_net double pointer
and VhostUserMsg pointer.

Signed-off-by: Nikolay Nikolaev <nicknickolaev@gmail.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_user.c