]> git.pld-linux.org Git - packages/open-iscsi.git/blob - 0015-remove-the-offload-boot-supported-ifdef.patch
- updated to 2.1.4 + current Fedora patch set
[packages/open-iscsi.git] / 0015-remove-the-offload-boot-supported-ifdef.patch
1 From d410fe4b6eb2347f2160b8aaab24a639de99c23c Mon Sep 17 00:00:00 2001
2 From: Chris Leech <cleech@redhat.com>
3 Date: Mon, 19 Nov 2012 17:09:24 -0800
4 Subject: [PATCH] remove the offload boot supported ifdef
5
6 ---
7  usr/iface.c | 7 +------
8  1 file changed, 1 insertion(+), 6 deletions(-)
9
10 diff --git a/usr/iface.c b/usr/iface.c
11 index 11f3d2a..65c1615 100644
12 --- a/usr/iface.c
13 +++ b/usr/iface.c
14 @@ -998,6 +998,7 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
15  {
16         struct iscsi_transport *t = NULL;
17         uint32_t hostno;
18 +       int rc;
19  
20         if (strlen(context->initiatorname))
21                 strlcpy(iface->iname, context->initiatorname,
22 @@ -1011,10 +1012,7 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
23                         return 0;
24                 }
25         } else if (strlen(context->iface)) {
26 -/* this ifdef is only temp until distros and firmwares are updated */
27 -#ifdef OFFLOAD_BOOT_SUPPORTED
28                 char transport_name[ISCSI_TRANSPORT_NAME_MAXLEN];
29 -               int rc;
30  
31                 memset(transport_name, 0, ISCSI_TRANSPORT_NAME_MAXLEN);
32                 /* make sure offload driver is loaded */
33 @@ -1040,9 +1038,6 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
34                 }
35  
36                 strlcpy(iface->netdev, context->iface, sizeof(iface->netdev));
37 -#else
38 -               return 0;
39 -#endif
40         } else
41                 return 0;
42  
43 -- 
44 2.26.2
45
This page took 0.110215 seconds and 3 git commands to generate.