Blame SOURCES/0015-remove-the-offload-boot-supported-ifdef.patch

a02209
From d410fe4b6eb2347f2160b8aaab24a639de99c23c Mon Sep 17 00:00:00 2001
a02209
From: Chris Leech <cleech@redhat.com>
a02209
Date: Mon, 19 Nov 2012 17:09:24 -0800
a02209
Subject: [PATCH] remove the offload boot supported ifdef
a02209
a02209
---
a02209
 usr/iface.c | 7 +------
a02209
 1 file changed, 1 insertion(+), 6 deletions(-)
a02209
a02209
diff --git a/usr/iface.c b/usr/iface.c
a02209
index 11f3d2a..65c1615 100644
a02209
--- a/usr/iface.c
a02209
+++ b/usr/iface.c
a02209
@@ -998,6 +998,7 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
a02209
 {
a02209
 	struct iscsi_transport *t = NULL;
a02209
 	uint32_t hostno;
a02209
+	int rc;
a02209
 
a02209
 	if (strlen(context->initiatorname))
a02209
 		strlcpy(iface->iname, context->initiatorname,
a02209
@@ -1011,10 +1012,7 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
a02209
 			return 0;
a02209
 		}
a02209
 	} else if (strlen(context->iface)) {
a02209
-/* this ifdef is only temp until distros and firmwares are updated */
a02209
-#ifdef OFFLOAD_BOOT_SUPPORTED
a02209
 		char transport_name[ISCSI_TRANSPORT_NAME_MAXLEN];
a02209
-		int rc;
a02209
 
a02209
 		memset(transport_name, 0, ISCSI_TRANSPORT_NAME_MAXLEN);
a02209
 		/* make sure offload driver is loaded */
a02209
@@ -1040,9 +1038,6 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
a02209
 		}
a02209
 
a02209
 		strlcpy(iface->netdev, context->iface, sizeof(iface->netdev));
a02209
-#else
a02209
-		return 0;
a02209
-#endif
a02209
 	} else
a02209
 		return 0;
a02209
 
a02209
-- 
a02209
2.26.2
a02209