vhost/crypto: add vhost-user message handlers
authorFan Zhang <roy.fan.zhang@intel.com>
Thu, 5 Apr 2018 16:01:30 +0000 (17:01 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Apr 2018 22:43:30 +0000 (00:43 +0200)
commit9b91fbd6ecfa6fed7d73f7cd6a2269433d137027
treede408ebcefcdd1ac6125b4e95138c0a3274136a4
parent5303a48b537c60bb856f6a0445caf6100832a9c7
vhost/crypto: add vhost-user message handlers

Previously, vhost library lacks the support to the vhost backend
other than net such as adding private data or registering vhost-user
message handlers. This patch fills the gap by adding data pointer and
vhost-user pre and post message handlers to vhost library.

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Jay Zhou <jianjay.zhou@huawei.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost.c
lib/librte_vhost/vhost.h
lib/librte_vhost/vhost_user.c