mirror of
https://github.com/ipxe/ipxe
synced 2026-01-10 23:48:36 +03:00
[infiniband] Call ib_open() only when opening the IPoIB net device
Defer the call to ib_open() until we want to actually open the device, rather than when the device is registered.
This commit is contained in:
@@ -2175,6 +2175,10 @@ static int arbel_probe ( struct pci_device *pci,
|
||||
if ( ( rc = arbel_create_eq ( arbel ) ) != 0 )
|
||||
goto err_create_eq;
|
||||
|
||||
/* Update MAD parameters */
|
||||
for ( i = 0 ; i < ARBEL_NUM_PORTS ; i++ )
|
||||
ib_smc_update ( arbel->ibdev[i], arbel_mad );
|
||||
|
||||
/* Register Infiniband devices */
|
||||
for ( i = 0 ; i < ARBEL_NUM_PORTS ; i++ ) {
|
||||
if ( ( rc = register_ibdev ( arbel->ibdev[i] ) ) != 0 ) {
|
||||
|
||||
Reference in New Issue
Block a user