mirror of
https://github.com/ipxe/ipxe
synced 2026-05-04 03:03:43 +03:00
[infiniband] Add last_opened_ibdev(), analogous to last_opened_netdev()
The minimal-surprise behaviour, when no explicit SRP initiator device is specified, will probably be to use the most recently opened Infiniband device. This matches our behaviour with using the most recently opened net device for PXE, iSCSI, AoE, NBI, etc.
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
struct list_head net_devices = LIST_HEAD_INIT ( net_devices );
|
||||
|
||||
/** List of open network devices, in reverse order of opening */
|
||||
struct list_head open_net_devices = LIST_HEAD_INIT ( open_net_devices );
|
||||
static struct list_head open_net_devices = LIST_HEAD_INIT ( open_net_devices );
|
||||
|
||||
/** Default link status code */
|
||||
#define EUNKNOWN_LINK_STATUS EINPROGRESS
|
||||
|
||||
Reference in New Issue
Block a user