mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
[phantom] Initialise RCVPEG before reading MAC addresses
This commit is contained in:
@@ -1863,6 +1863,10 @@ static int phantom_probe ( struct pci_device *pci,
|
|||||||
if ( ( rc = phantom_init_cmdpeg ( phantom ) ) != 0 )
|
if ( ( rc = phantom_init_cmdpeg ( phantom ) ) != 0 )
|
||||||
goto err_init_cmdpeg;
|
goto err_init_cmdpeg;
|
||||||
|
|
||||||
|
/* Initialise the receive firmware */
|
||||||
|
if ( ( rc = phantom_init_rcvpeg ( phantom ) ) != 0 )
|
||||||
|
goto err_init_rcvpeg;
|
||||||
|
|
||||||
/* Read MAC addresses */
|
/* Read MAC addresses */
|
||||||
for ( i = 0 ; i < phantom->num_ports ; i++ ) {
|
for ( i = 0 ; i < phantom->num_ports ; i++ ) {
|
||||||
phantom_port = netdev_priv ( phantom->netdev[i] );
|
phantom_port = netdev_priv ( phantom->netdev[i] );
|
||||||
@@ -1870,10 +1874,6 @@ static int phantom_probe ( struct pci_device *pci,
|
|||||||
phantom->netdev[i]->ll_addr );
|
phantom->netdev[i]->ll_addr );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialise the receive firmware */
|
|
||||||
if ( ( rc = phantom_init_rcvpeg ( phantom ) ) != 0 )
|
|
||||||
goto err_init_rcvpeg;
|
|
||||||
|
|
||||||
/* Register network devices */
|
/* Register network devices */
|
||||||
for ( i = 0 ; i < phantom->num_ports ; i++ ) {
|
for ( i = 0 ; i < phantom->num_ports ; i++ ) {
|
||||||
if ( ( rc = register_netdev ( phantom->netdev[i] ) ) != 0 ) {
|
if ( ( rc = register_netdev ( phantom->netdev[i] ) ) != 0 ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user