vhost: distinguish master and slave requests
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 10 Oct 2017 12:47:54 +0000 (14:47 +0200)
committerYuanhan Liu <yliu@fridaylinux.org>
Tue, 10 Oct 2017 13:54:31 +0000 (15:54 +0200)
commit3494ed045e2736221806a954242c14467b86011b
treef1e85f293f18f227e5fb6fb9969e0d6c28d289c0
parentefba12a78ddf6ea2f365d75ed78be2c51cc6c561
vhost: distinguish master and slave requests

This patch adds an union in VhostUserMsg to distinguish between
master and slave initiated requests, instead of casting slave
requests as master request.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
lib/librte_vhost/vhost_user.c
lib/librte_vhost/vhost_user.h