Message ID | 1370362965-3937-4-git-send-email-jlarrew@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index e09288f..c1c80aa 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -1325,7 +1325,7 @@ void virtio_net_set_config_size(VirtIONet *n, uint32_t host_features) { VirtIODevice *vdev = VIRTIO_DEVICE(n); int i, config_size = 0; - host_features |= (1 << VIRTIO_NET_F_MAC); + for (i = 0; feature_sizes[i].flags != 0; i++) { if (host_features & feature_sizes[i].flags) { config_size = MAX(feature_sizes[i].end, config_size);
With a more permanent solution in place, the workaround in commit e9016ee2bda1b7757072b856b2196f691aee3388 is no longer needed. Signed-off-by: Jesse Larrew <jlarrew@linux.vnet.ibm.com> --- hw/net/virtio-net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)