39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
From 81225b1134210be0a58bec6e2532267e42b4ada2 Mon Sep 17 00:00:00 2001
|
|
From: Eddie Wai <eddie.wai@broadcom.com>
|
|
Date: Wed, 5 Sep 2012 14:14:20 -0700
|
|
Subject: [PATCH 2/4] ISCSISTART: Bring up the corresponding network interface
|
|
for iboot
|
|
|
|
This is needed for the iSCSI offload boot.
|
|
|
|
Snip from M. Christie:
|
|
Note that we must bring up the interface before iface_setup_from_boot_context,
|
|
because we will want iscsi_sysfs_get_host_no_from_hwaddress to be able to match
|
|
a MAC to a iscsi host. For some bnx2i cards, the card has to be ifupd for the
|
|
iscsi interface to have a MAC. If it is not ifupd we have seen MACs with all
|
|
zeros or no iscsi_hosts on different cards.
|
|
|
|
Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
|
|
---
|
|
usr/iface.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/usr/iface.c b/usr/iface.c
|
|
index 4c612af..0f6b6d1 100644
|
|
--- a/usr/iface.c
|
|
+++ b/usr/iface.c
|
|
@@ -915,6 +915,10 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
|
|
transport_name))
|
|
t = iscsi_sysfs_get_transport_by_name(transport_name);
|
|
|
|
+ if (net_ifup_netdev(context->iface))
|
|
+ log_warning("Could not bring up netdev %s for boot",
|
|
+ context->iface);
|
|
+
|
|
hostno = iscsi_sysfs_get_host_no_from_hwaddress(context->mac,
|
|
&rc);
|
|
if (rc) {
|
|
--
|
|
1.7.11.4
|
|
|