You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

  1. From d0689253c9e2eb78fc5296adb109aba4d35a13fd 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. usr/iface.c | 7 +------
  7. 1 file changed, 1 insertion(+), 6 deletions(-)
  8. --- a/usr/iface.c
  9. +++ b/usr/iface.c
  10. @@ -998,6 +998,7 @@ int iface_setup_from_boot_context(struct
  11. {
  12. struct iscsi_transport *t = NULL;
  13. uint32_t hostno;
  14. + int rc;
  15. if (strlen(context->initiatorname))
  16. strlcpy(iface->iname, context->initiatorname,
  17. @@ -1011,10 +1012,7 @@ int iface_setup_from_boot_context(struct
  18. return 0;
  19. }
  20. } else if (strlen(context->iface)) {
  21. -/* this ifdef is only temp until distros and firmwares are updated */
  22. -#ifdef OFFLOAD_BOOT_SUPPORTED
  23. char transport_name[ISCSI_TRANSPORT_NAME_MAXLEN];
  24. - int rc;
  25. memset(transport_name, 0, ISCSI_TRANSPORT_NAME_MAXLEN);
  26. /* make sure offload driver is loaded */
  27. @@ -1040,9 +1038,6 @@ int iface_setup_from_boot_context(struct
  28. }
  29. strlcpy(iface->netdev, context->iface, sizeof(iface->netdev));
  30. -#else
  31. - return 0;
  32. -#endif
  33. } else
  34. return 0;