Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set the MAC address _before_ registering the device

Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
  • Loading branch information...
commit 9f9f886166a12751fc090a8f8f1849ec317a0b40 1 parent e75c198
@xl0 xl0 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  virtio_net/vioif.c
View
2  virtio_net/vioif.c
@@ -1347,6 +1347,7 @@ vioif_attach(dev_info_t *devinfo, ddi_attach_cmd_t cmd)
if (ret)
goto exit_features;
+ vioif_get_mac(sc);
vsc->sc_nvqs = vioif_has_feature(sc, VIRTIO_NET_F_CTRL_VQ) ? 3 : 2;
@@ -1421,7 +1422,6 @@ vioif_attach(dev_info_t *devinfo, ddi_attach_cmd_t cmd)
goto exit_ints;
}
- vioif_get_mac(sc);
return (DDI_SUCCESS);
Please sign in to comment.
Something went wrong with that request. Please try again.