mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 09:01:24 +03:00
[netdevice] Call netdev_link_[up|down|err]() only while registered
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -443,11 +443,10 @@ int vxge_device_register(struct __vxge_hw_device *hldev,
|
||||
goto _out2;
|
||||
}
|
||||
|
||||
/* Make Link state as off at this point, when the Link change
|
||||
/* Leave link state as off at this point, when the link change
|
||||
* interrupt comes the state will be automatically changed to
|
||||
* the right state.
|
||||
*/
|
||||
netdev_link_down(ndev);
|
||||
|
||||
vxge_debug(VXGE_INFO, "%s: Ethernet device registered\n",
|
||||
VXGE_DRIVER_NAME);
|
||||
|
||||
Reference in New Issue
Block a user