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.
2 parents cbbdce0 + a01a548 commit 5ec1eedCopy full SHA for 5ec1eed
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