Print this page
5255 uts shouldn't open-code ISP2

@@ -20,10 +20,11 @@
  */
 /*
  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
+#include <sys/sysmacros.h>
 #include <sys/conf.h>
 #include <sys/file.h>
 #include <sys/ddi.h>
 #include <sys/sunddi.h>
 #include <sys/modctl.h>

@@ -217,11 +218,11 @@
                 (void) sprintf(topology, "Invalid %02x", li->port_topology);
         } else {
                 (void) strcpy(topology, topologies[li->port_topology]);
         }
 
-        if ((s == 0) || ((s & 0xf00) != 0) || ((s & (s - 1)) != 0)) {
+        if ((s == 0) || ((s & 0xf00) != 0) || !ISP2(s)) {
                 speed[0] = '?';
         } else if (s == PORT_SPEED_10G) {
                 speed[0] = '1';
                 speed[1] = '0';
                 speed[2] = 'G';