Skip to content

Commit

Permalink
Set the MAC address _before_ registering the device
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
  • Loading branch information
xl0 committed Aug 3, 2011
1 parent e75c198 commit 9f9f886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtio_net/vioif.c
Expand Up @@ -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;

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 9f9f886

Please sign in to comment.