vhost: fix vDPA set features
authorXiao Wang <xiao.w.wang@intel.com>
Wed, 25 Apr 2018 02:18:27 +0000 (10:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 17:01:00 +0000 (18:01 +0100)
commitdfdf4b84b8d03e08c5949fe81e85eb8ce5b2ee52
tree09e17889697e8a45e6931f9c65d491437c92c811
parentbb77d555d4c422d987b492f6ee6c0533a6486d4e
vhost: fix vDPA set features

We should call set_features callback after setting features in virtio_net
structure, otherwise vDPA driver cannot get the right features.

Fixes: 07718b4f87aa ("vhost: adapt library for selective datapath")

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Acked-by: Zhihong Wang <zhihong.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_user.c