virtio_net: Set the mac config only when VIRITO_NET_F_MAC
authorAlex Williamson <alex.williamson@hp.com>
Sat, 4 Apr 2009 23:40:19 +0000 (16:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Apr 2009 23:40:19 +0000 (16:40 -0700)
VIRTIO_NET_F_MAC indicates the presence of the mac field in config
space, not the validity of the value it contains.  Allow the mac to be
changed at runtime, but only push the change into config space with the
VIRTIO_NET_F_MAC feature present.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c

Simple merge