Blame SOURCES/0002-ISCSISTART-Bring-up-the-corresponding-network-interf.patch

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