summaryrefslogtreecommitdiffstats
path: root/src/net/netdevice.c
diff options
context:
space:
mode:
authorMichael Brown2009-08-10 12:47:11 +0200
committerMichael Brown2009-08-10 23:25:57 +0200
commit8de49af0d25b5695f6dcb5db77a142d2fb708f3f (patch)
treeb4c34f71a503a2bfe03d87d78e160cc4a2f258a6 /src/net/netdevice.c
parent[infiniband] Add find_ibdev() (diff)
downloadipxe-8de49af0d25b5695f6dcb5db77a142d2fb708f3f.tar.gz
ipxe-8de49af0d25b5695f6dcb5db77a142d2fb708f3f.tar.xz
ipxe-8de49af0d25b5695f6dcb5db77a142d2fb708f3f.zip
[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.
Diffstat (limited to 'src/net/netdevice.c')
-rw-r--r--src/net/netdevice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index 3bb0574d..f019eeb2 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.c
@@ -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