From 7afc0b158da1a5fbc56d7c3002a38a8cbb48f560 Mon Sep 17 00:00:00 2001
From: Chris Leech <cleech@redhat.com>
Date: Fri, 12 Sep 2014 11:23:31 -0700
Subject: [PATCH] libhbalinux: support sport speeds up to 40 Gbit
Additional string parsing for speeds reported by newer kernels.
Signed-off-by: Chris Leech <cleech@redhat.com>
---
lport.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lport.c b/lport.c
index ae1b13b..bc34078 100644
--- a/lport.c
+++ b/lport.c
@@ -72,7 +72,13 @@ struct sa_nameval port_speeds_table[] = {
{ "Unknown", HBA_PORTSPEED_UNKNOWN },
{ "1 Gbit", HBA_PORTSPEED_1GBIT },
{ "2 Gbit", HBA_PORTSPEED_2GBIT },
+ { "4 Gbit", HBA_PORTSPEED_4GBIT },
{ "10 Gbit", HBA_PORTSPEED_10GBIT },
+ { "8 Gbit", HBA_PORTSPEED_8GBIT },
+ { "16 Gbit", HBA_PORTSPEED_16GBIT },
+ { "32 Gbit", HBA_PORTSPEED_32GBIT },
+ { "20 Gbit", HBA_PORTSPEED_20GBIT },
+ { "40 Gbit", HBA_PORTSPEED_40GBIT },
{ "Not Negotiated", HBA_PORTSPEED_NOT_NEGOTIATED },
{ NULL, 0 }
};
--
1.9.3