fct.c (61dfa509) | fct.c (a3170057) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 7 unchanged lines hidden (view full) --- 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* 22 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 23 * Copyright 2016 Nexenta Systems, Inc. All rights reserved. | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 7 unchanged lines hidden (view full) --- 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* 22 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 23 * Copyright 2016 Nexenta Systems, Inc. All rights reserved. |
24 * Copyright 2020 RackTop Systems, Inc. |
|
24 */ 25 26#include <sys/conf.h> 27#include <sys/file.h> 28#include <sys/ddi.h> 29#include <sys/sunddi.h> 30#include <sys/modctl.h> 31#include <sys/scsi/scsi.h> --- 453 unchanged lines hidden (view full) --- 485 if (attr->supported_speed & PORT_SPEED_4G) 486 port_attr->PortSupportedSpeed |= FC_HBA_PORTSPEED_4GBIT; 487 if (attr->supported_speed & PORT_SPEED_8G) 488 port_attr->PortSupportedSpeed |= FC_HBA_PORTSPEED_8GBIT; 489 if (attr->supported_speed & PORT_SPEED_10G) 490 port_attr->PortSupportedSpeed |= FC_HBA_PORTSPEED_10GBIT; 491 if (attr->supported_speed & PORT_SPEED_16G) 492 port_attr->PortSupportedSpeed |= FC_HBA_PORTSPEED_16GBIT; | 25 */ 26 27#include <sys/conf.h> 28#include <sys/file.h> 29#include <sys/ddi.h> 30#include <sys/sunddi.h> 31#include <sys/modctl.h> 32#include <sys/scsi/scsi.h> --- 453 unchanged lines hidden (view full) --- 486 if (attr->supported_speed & PORT_SPEED_4G) 487 port_attr->PortSupportedSpeed |= FC_HBA_PORTSPEED_4GBIT; 488 if (attr->supported_speed & PORT_SPEED_8G) 489 port_attr->PortSupportedSpeed |= FC_HBA_PORTSPEED_8GBIT; 490 if (attr->supported_speed & PORT_SPEED_10G) 491 port_attr->PortSupportedSpeed |= FC_HBA_PORTSPEED_10GBIT; 492 if (attr->supported_speed & PORT_SPEED_16G) 493 port_attr->PortSupportedSpeed |= FC_HBA_PORTSPEED_16GBIT; |
494 if (attr->supported_speed & PORT_SPEED_32G) 495 port_attr->PortSupportedSpeed |= FC_HBA_PORTSPEED_32GBIT; |
|
493 switch (iport->iport_link_info.port_speed) { 494 case PORT_SPEED_1G: 495 port_attr->PortSpeed = FC_HBA_PORTSPEED_1GBIT; 496 break; 497 case PORT_SPEED_2G: 498 port_attr->PortSpeed = FC_HBA_PORTSPEED_2GBIT; 499 break; 500 case PORT_SPEED_4G: 501 port_attr->PortSpeed = FC_HBA_PORTSPEED_4GBIT; 502 break; 503 case PORT_SPEED_8G: 504 port_attr->PortSpeed = FC_HBA_PORTSPEED_8GBIT; 505 break; 506 case PORT_SPEED_10G: 507 port_attr->PortSpeed = FC_HBA_PORTSPEED_10GBIT; 508 break; 509 case PORT_SPEED_16G: 510 port_attr->PortSpeed = FC_HBA_PORTSPEED_16GBIT; 511 break; | 496 switch (iport->iport_link_info.port_speed) { 497 case PORT_SPEED_1G: 498 port_attr->PortSpeed = FC_HBA_PORTSPEED_1GBIT; 499 break; 500 case PORT_SPEED_2G: 501 port_attr->PortSpeed = FC_HBA_PORTSPEED_2GBIT; 502 break; 503 case PORT_SPEED_4G: 504 port_attr->PortSpeed = FC_HBA_PORTSPEED_4GBIT; 505 break; 506 case PORT_SPEED_8G: 507 port_attr->PortSpeed = FC_HBA_PORTSPEED_8GBIT; 508 break; 509 case PORT_SPEED_10G: 510 port_attr->PortSpeed = FC_HBA_PORTSPEED_10GBIT; 511 break; 512 case PORT_SPEED_16G: 513 port_attr->PortSpeed = FC_HBA_PORTSPEED_16GBIT; 514 break; |
515 case PORT_SPEED_32G: 516 port_attr->PortSpeed = FC_HBA_PORTSPEED_32GBIT; 517 break; |
|
512 default: 513 port_attr->PortSpeed = FC_HBA_PORTSPEED_UNKNOWN; 514 break; 515 } 516 port_attr->PortMaxFrameSize = attr->max_frame_size; 517 rw_enter(&iport->iport_lock, RW_READER); 518 port_attr->NumberofDiscoveredPorts = iport->iport_nrps_login; 519 for (; i < iport->iport_port->port_max_logins; i++) { --- 3137 unchanged lines hidden --- | 518 default: 519 port_attr->PortSpeed = FC_HBA_PORTSPEED_UNKNOWN; 520 break; 521 } 522 port_attr->PortMaxFrameSize = attr->max_frame_size; 523 rw_enter(&iport->iport_lock, RW_READER); 524 port_attr->NumberofDiscoveredPorts = iport->iport_nrps_login; 525 for (; i < iport->iport_port->port_max_logins; i++) { --- 3137 unchanged lines hidden --- |