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.

45 lines
1.2 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. diff --git a/usr/iface.c b/usr/iface.c
  9. index 645b0b8..9cd07fd 100644
  10. --- a/usr/iface.c
  11. +++ b/usr/iface.c
  12. @@ -993,6 +993,7 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
  13. {
  14. struct iscsi_transport *t = NULL;
  15. uint32_t hostno;
  16. + int rc;
  17. if (strlen(context->initiatorname))
  18. strlcpy(iface->iname, context->initiatorname,
  19. @@ -1006,10 +1007,7 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
  20. return 0;
  21. }
  22. } else if (strlen(context->iface)) {
  23. -/* this ifdef is only temp until distros and firmwares are updated */
  24. -#ifdef OFFLOAD_BOOT_SUPPORTED
  25. char transport_name[ISCSI_TRANSPORT_NAME_MAXLEN];
  26. - int rc;
  27. memset(transport_name, 0, ISCSI_TRANSPORT_NAME_MAXLEN);
  28. /* make sure offload driver is loaded */
  29. @@ -1035,9 +1033,6 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
  30. }
  31. strlcpy(iface->netdev, context->iface, sizeof(iface->netdev));
  32. -#else
  33. - return 0;
  34. -#endif
  35. } else
  36. return 0;
  37. --
  38. 2.21.0