Skip to content
Browse files

Set the MAC address _before_ registering the device

Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
  • Loading branch information...
1 parent e75c198 commit 9f9f886166a12751fc090a8f8f1849ec317a0b40 @xl0 committed
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);

0 comments on commit 9f9f886

Please sign in to comment.
Something went wrong with that request. Please try again.