We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99d3c28 commit a01a548Copy full SHA for a01a548
opal/util/ethtool.c
@@ -64,7 +64,9 @@ opal_ethtool_get_speed (const char *if_name)
64
goto out;
65
}
66
67
-#ifdef HAVE_STRUCT_ETHTOOL_CMD_SPEED_HI
+#if HAVE_DECL_ETHTOOL_CMD_SPEED
68
+ speed = ethtool_cmd_speed(&edata);
69
+#elif defined(HAVE_STRUCT_ETHTOOL_CMD_SPEED_HI)
70
speed = (edata.speed_hi << 16) | edata.speed;
71
#else
72
speed = edata.speed;
0 commit comments