net/virtio-user: fix net status report
authorJianfeng Tan <jianfeng.tan@intel.com>
Thu, 13 Apr 2017 14:16:24 +0000 (14:16 +0000)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 19 Apr 2017 08:49:06 +0000 (10:49 +0200)
commit4bf9e26d29caccda42d77601b26791e146d08d9a
tree45d3972f9f585f38977c6fc544c0c97284afa514
parentbed3b24c87cb7fb63d24d16d65b911fe14525d82
net/virtio-user: fix net status report

We only enabled LSC when using vhost-user as the backend, but it is
reported even when using vhost-kernel as the backend.

Fix it by only reportting LSC support when using vhost-user as the
backend.

Fixes: 35c4f8554833 ("net/virtio-user: support to report net status")

Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
drivers/net/virtio/virtio_user/virtio_user_dev.c