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

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