From f6bbe706dcdb76d8363a258a83e5f30c3a795d15 Mon Sep 17 00:00:00 2001 From: Marcel Apfelbaum Date: Mon, 3 Oct 2011 18:56:25 +0300 Subject: [PATCH] Add support to ibv_devinfo for displaying extended speeds Add code to ibv_devinfo to display the following new speeds: 8: FDR-10 is a proprietary link speed which is 10.3125 Gbps with 64b/66b encoding rather than 8b/10b encoding. 16: FDR - 14.0625 Gbps 32: EDR - 25.78125 Gbps Signed-off-by: Marcel Apfelbaum Reviewed-by: Hal Rosenstock Signed-off-by: Roland Dreier --- examples/devinfo.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/devinfo.c b/examples/devinfo.c index 1621f33..7dc0463 100644 --- a/examples/devinfo.c +++ b/examples/devinfo.c @@ -139,7 +139,12 @@ static const char *speed_str(uint8_t speed) switch (speed) { case 1: return "2.5 Gbps"; case 2: return "5.0 Gbps"; - case 4: return "10.0 Gbps"; + + case 4: /* fall through */ + case 8: return "10.0 Gbps"; + + case 16: return "14.0 Gbps"; + case 32: return "25.0 Gbps"; default: return "invalid speed"; } } -- 2.41.0