net/virtio-user: fix start with kernel vhost
authorJianfeng Tan <jianfeng.tan@intel.com>
Mon, 12 Feb 2018 03:20:27 +0000 (03:20 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 13 Feb 2018 17:58:02 +0000 (18:58 +0100)
commitbce7e9050f9b5e92cead60e8ac7768812ce898f2
tree62d46d96ba1dc106235ed19fd2828621e1b3a7f3
parent601e65370a7e41c72e4081d101c706a1e09fcf76
net/virtio-user: fix start with kernel vhost

After reset owner in below patch, we failed to set owner before
sending further vhost messages. It is OK with vhost user implemented
DPDK/VPP/Contrail, but it sees "Operation not permitted" error when
used with vhost kernel.

We fix this by setting owner every time the device is started.

Fixes: 0d6a8752ac9d ("net/virtio-user: fix crash as features change")
Cc: stable@dpdk.org
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_user/virtio_user_dev.c