vhost: make message handling functions prepare the reply
authorNikolay Nikolaev <nicknickolaev@gmail.com>
Mon, 24 Sep 2018 20:17:11 +0000 (23:17 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 27 Sep 2018 23:41:03 +0000 (01:41 +0200)
commite951355ffcaece29cfee89cb75afef14afc4428d
tree34e617a035eb5a3035d990473ea023404dbb1aaf
parent44eb792f9f645de008c8f902fd40d3d524f3fd71
vhost: make message handling functions prepare the reply

As VhostUserMsg structure is reused to generate the reply, move the
relevant fields update into the respective message handling functions.

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