diff options
author | Steven Luong <sluong@cisco.com> | 2021-01-26 23:44:19 -0800 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2021-01-27 16:47:03 +0000 |
commit | d6361c7b899aa8ca8643c0d0c93fce25f3e78be2 (patch) | |
tree | 719514d15690338dcc0ace92178c31bba548cf66 /src/vnet/devices/virtio/vhost_user.h | |
parent | 68d2753569592e424e7584e2f921f68d1b3d2088 (diff) |
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
Diffstat (limited to 'src/vnet/devices/virtio/vhost_user.h')
-rw-r--r-- | src/vnet/devices/virtio/vhost_user.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/devices/virtio/vhost_user.h b/src/vnet/devices/virtio/vhost_user.h index 06c78bce857..63a0bc0da48 100644 --- a/src/vnet/devices/virtio/vhost_user.h +++ b/src/vnet/devices/virtio/vhost_user.h @@ -109,6 +109,7 @@ typedef struct u8 enable_gso; u8 enable_packed; u8 enable_event_idx; + u8 use_custom_mac; /* return */ u32 sw_if_index; |