[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:
Michael Brown
2009-08-10 11:47:11 +01:00
parent 419243e7f1
commit 8de49af0d2
3 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -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