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

*** 20,29 **** --- 20,30 ---- */ /* * 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,227 **** (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)) { speed[0] = '?'; } else if (s == PORT_SPEED_10G) { speed[0] = '1'; speed[1] = '0'; speed[2] = 'G'; --- 218,228 ---- (void) sprintf(topology, "Invalid %02x", li->port_topology); } else { (void) strcpy(topology, topologies[li->port_topology]); } ! 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';