[Open-FCoE] [PATCH] libhbalinux: Correcting the values for unspecified attributes

Steve Ma steve.ma at intel.com
Tue Apr 21 22:21:15 UTC 2009


According to T11 FC-HBA, the value of VendorSpecificID shall be
zero if the attribute is unspecified. Similarly, the unspecified
value for FirmwareVersion, OptionalROMVersion are NULLs.
---

 lport.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lport.c b/lport.c
index 99629f9..40c5193 100644
--- a/lport.c
+++ b/lport.c
@@ -30,9 +30,9 @@
  * collect these information.
  */
 #define HBA_MODEL               "(Unknown)"
-#define HBA_ROM_VERSION         "(None)"
-#define HBA_FW_VERSION          "(None)"
-#define HBA_VENDOR_SPECIFIC_ID  123456
+#define HBA_ROM_VERSION         ""
+#define HBA_FW_VERSION          ""
+#define HBA_VENDOR_SPECIFIC_ID  0
 
 /*
  * Convert fc_port_type values to ascii string name.




More information about the devel mailing list