2abe1f9093
build with external isns-utils rebase with upstream, change Source0 url to github
46 lines
1.2 KiB
Diff
46 lines
1.2 KiB
Diff
From 350deee0c814c5a3e2659436b69fdf999dd2d6a5 Mon Sep 17 00:00:00 2001
|
|
From: Chris Leech <cleech@redhat.com>
|
|
Date: Mon, 19 Nov 2012 17:09:24 -0800
|
|
Subject: [PATCH] remove the offload boot supported ifdef
|
|
|
|
---
|
|
usr/iface.c | 7 +------
|
|
1 file changed, 1 insertion(+), 6 deletions(-)
|
|
|
|
diff --git a/usr/iface.c b/usr/iface.c
|
|
index 0a7f0bb..753ed37 100644
|
|
--- a/usr/iface.c
|
|
+++ b/usr/iface.c
|
|
@@ -996,6 +996,7 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
|
|
{
|
|
struct iscsi_transport *t = NULL;
|
|
uint32_t hostno;
|
|
+ int rc;
|
|
|
|
if (strlen(context->initiatorname))
|
|
strlcpy(iface->iname, context->initiatorname,
|
|
@@ -1009,10 +1010,7 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
|
|
return 0;
|
|
}
|
|
} else if (strlen(context->iface)) {
|
|
-/* this ifdef is only temp until distros and firmwares are updated */
|
|
-#ifdef OFFLOAD_BOOT_SUPPORTED
|
|
char transport_name[ISCSI_TRANSPORT_NAME_MAXLEN];
|
|
- int rc;
|
|
|
|
memset(transport_name, 0, ISCSI_TRANSPORT_NAME_MAXLEN);
|
|
/* make sure offload driver is loaded */
|
|
@@ -1038,9 +1036,6 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
|
|
}
|
|
|
|
strlcpy(iface->netdev, context->iface, sizeof(iface->netdev));
|
|
-#else
|
|
- return 0;
|
|
-#endif
|
|
} else
|
|
return 0;
|
|
|
|
--
|
|
2.1.0
|
|
|