1. 16 May, 2016 2 commits
    • David Bond's avatar
      ibft: Expose iBFT acpi header via sysfs · b3c8eb50
      David Bond authored
      Some ethernet adapter vendors are supplying products which support optional
      (payed license) features. On some adapters this includes a hardware iscsi
      initiator.  The same adapters in a normal (no extra licenses) mode of
      operation can be used as a software iscsi initiator.  In addition, software
      iscsi boot initiators are becoming a standard part of many vendors uefi
      implementations.  This is creating difficulties during early boot/install
      determining the proper configuration method for these adapters when they
      are used as a boot device.
      The attached patch creates sysfs entries to expose information from the
      acpi header of the ibft table.  This information allows for a method to
      easily determining if an ibft table was created by a ethernet card's
      firmware or the system uefi/bios.  In the case of a hardware initiator this
      information in combination with the pci vendor and device id can be used
      to ascertain any vendor specific behaviors that need to be accommodated.
      Reviewed-by: default avatarLee Duncan <lduncan@suse.com>
      Signed-off-by: default avatarDavid Bond <dbond@suse.com>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    • Hannes Reinecke's avatar
      iscsi_ibft: Add prefix-len attr and display netmask · 9a99425f
      Hannes Reinecke authored
      The iBFT table only specifies a prefix length, not a netmask.
      And the netmask is pretty much pointless for IPv6.
      So introduce a new attribute 'prefix-len'.
      Some older user-space code might rely on the netmask attribute
      being present, so we should always display it.
      Changes from v1:
       - Combined two patches into one
      Changes from v2:
       - Cleaned up/corrected wording for patch description
      Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
      Signed-off-by: default avatarLee Duncan <lduncan@suse.com>
      Reviewed-by: default avatarMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad@kernel.org>
  2. 14 Mar, 2016 1 commit
  3. 03 Jan, 2012 1 commit
  4. 29 Jun, 2011 1 commit
  5. 11 May, 2010 1 commit
    • Mike Christie's avatar
      ibft: separate ibft parsing from sysfs interface · ba4ee30c
      Mike Christie authored
      Not all iscsi drivers support ibft. For drivers like be2iscsi
      that do not but are bootable through a vendor firmware specific
      format/process this patch moves the sysfs interface from the ibft code
      to a lib module. This then allows userspace tools to search for iscsi boot
      info in a common place and in a common format.
      ibft iscsi boot info is exported in the same place as it was
      before: /sys/firmware/ibft.
      vendor/fw boot info gets export in /sys/firmware/iscsi_bootX, where X is the
      scsi host number of the HBA. Underneath these parent dirs, the
      target, ethernet, and initiator dirs are the same as they were before.
      Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad@kernel.org>
      Signed-off-by: default avatarPeter Jones <pjones@redhat.com>