net/virtio-user: strip MAC feature when none specified
authorTiwei Bie <tiwei.bie@intel.com>
Fri, 11 May 2018 10:55:42 +0000 (18:55 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 17 May 2018 10:29:05 +0000 (12:29 +0200)
commit0230e058e99cf74428232e3904f700407027a0e9
tree9d9fdf75145da25afbdc03174fc643a5dbd6141e
parent0b94bc568f1931a93883d6c79441e5a15f02ffec
net/virtio-user: strip MAC feature when none specified

Currently VIRTIO_NET_F_MAC is set unconditionally when server
mode is used. It should be stripped when MAC isn't specified.

Fixes: bd8f50a45d0f ("net/virtio-user: support server mode")

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_user/virtio_user_dev.c