vhost: vhost interface hardware address not set 46/30946/2
authorSteven Luong <sluong@cisco.com>
Wed, 27 Jan 2021 07:44:19 +0000 (23:44 -0800)
committerBeno�t Ganne <bganne@cisco.com>
Wed, 27 Jan 2021 16:47:03 +0000 (16:47 +0000)
commitd6361c7b899aa8ca8643c0d0c93fce25f3e78be2
tree719514d15690338dcc0ace92178c31bba548cf66
parent68d2753569592e424e7584e2f921f68d1b3d2088
vhost: vhost interface hardware address not set

The check args->hwaddr is always true and it always copies the
mac address from args->hwaddr even though none was set.

Check args->use_custom_mac instead.

Type: fix
Fixes: gerrit 29970

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: I0c51bf1ea79b02c4fbdc3c52e694f186bdd96600
src/vnet/devices/virtio/vhost_user.c
src/vnet/devices/virtio/vhost_user.h
src/vnet/devices/virtio/vhost_user_api.c