diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2012-03-22 01:01:01 -0400 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2012-03-22 01:01:01 -0400 |
commit | 95081724e8eef2a82a197e4d6802d642612e9835 (patch) | |
tree | 73cf1ee4249afdd583864b6b5920fdf56aae0077 /utils | |
parent | eaed16d0f7ae246d885290ab19e8955fd20d498f (diff) | |
download | open-iscsi-95081724e8eef2a82a197e4d6802d642612e9835.tar.gz |
iscsi tools: print and load boot transport
This patch makes sure that when bnx2i/cxgb*i type of offload
engines are used for boot that the offload module gets loaded
and that we print the transport type when running iscsistart -f
or iscsiadm -m fw.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/fwparam_ibft/fw_entry.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/fwparam_ibft/fw_entry.c b/utils/fwparam_ibft/fw_entry.c index f5b361e..b6f05c1 100644 --- a/utils/fwparam_ibft/fw_entry.c +++ b/utils/fwparam_ibft/fw_entry.c @@ -35,6 +35,8 @@ #include "idbm_fields.h" #include "iscsi_net_util.h" #include "iscsi_err.h" +#include "config.h" +#include "iface.h" /** * fw_setup_nics - setup nics (ethXs) based on ibft net info @@ -146,11 +148,19 @@ void fw_free_targets(struct list_head *list) static void dump_initiator(struct boot_context *context) { + struct iface_rec iface; + + memset(&iface, 0, sizeof(iface)); + iface_setup_defaults(&iface); + iface_setup_from_boot_context(&iface, context); + if (strlen(context->initiatorname)) printf("%s = %s\n", IFACE_INAME, context->initiatorname); if (strlen(context->isid)) printf("%s = %s\n", IFACE_ISID, context->isid); + + printf("%s = %s\n", IFACE_TRANSPORTNAME, iface.transport_name); } static void dump_target(struct boot_context *context) |