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 <>
 usr/iface.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/usr/iface.c b/usr/iface.c
index 3a9582e..4028e34 100644
--- a/usr/iface.c
+++ b/usr/iface.c
@@ -917,6 +917,10 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
                        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,
                if (rc) {

You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to