Print this page
968 fct driver sets incorrect fc-ct revision

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/comstar/port/fct/fct.c
          +++ new/usr/src/uts/common/io/comstar/port/fct/fct.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2012 Nexenta Systems, Inc. All rights reserved.
  23   24   */
  24   25  
  25   26  #include <sys/conf.h>
  26   27  #include <sys/file.h>
  27   28  #include <sys/ddi.h>
  28   29  #include <sys/sunddi.h>
  29   30  #include <sys/modctl.h>
  30   31  #include <sys/scsi/scsi.h>
  31   32  #include <sys/scsi/impl/scsi_reset_notify.h>
  32   33  #include <sys/disp.h>
↓ open down ↓ 2699 lines elided ↑ open up ↑
2732 2733                      KM_SLEEP);
2733 2734  
2734 2735                  bcopy(query_rp->rp_pwwn, p + 16, 8);
2735 2736                  break;
2736 2737  
2737 2738          default:
2738 2739                  /* CONSTCOND */
2739 2740                  ASSERT(0);
2740 2741          }
2741 2742  
2742      -        FCT_FILL_CTIU_PREAMPLE(p, ctop);
     2743 +        FCT_FILL_CTIU_PREAMBLE(p, ctop);
2743 2744          return (cmd);
2744 2745  }
2745 2746  
2746 2747  /*
2747 2748   * Cmd can only be solicited CT/ELS. They will be dispatched to the discovery
2748 2749   * queue eventually too.
2749 2750   * We queue solicited cmds here to track solicited cmds and to take full use
2750 2751   * of single thread mechanism.
2751 2752   * But in current implmentation, we don't use  this mechanism on SOL_CT, PLOGI.
2752 2753   * To avoid to interrupt current flow, ICMD_IN_SOLCMD_QUEUE is used here.
↓ open down ↓ 874 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX