From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladislav Bolkhovitin Subject: Re: [RFC-v3 2/3] qla2xxx: Enable 2xxx series LLD target mode support Date: Mon, 11 Apr 2011 22:37:06 +0400 Message-ID: <4DA34A52.6020409@vlnb.net> References: <1301980307-14778-1-git-send-email-nab@linux-iscsi.org> <1301980307-14778-3-git-send-email-nab@linux-iscsi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1301980307-14778-3-git-send-email-nab@linux-iscsi.org> Sender: linux-kernel-owner@vger.kernel.org To: "Nicholas A. Bellinger" Cc: linux-scsi , linux-kernel , James Bottomley , Christoph Hellwig , Hannes Reinecke , Mike Christie , Madhu Iyengar , Andrew Vasquez , Ruediger Oertel , Andy Grover List-Id: linux-scsi@vger.kernel.org Nicholas A. Bellinger, on 04/05/2011 09:11 AM wrote: > From: Nicholas Bellinger > > This patch enables target mode support with the qla2xxx SCSI LLD using > qla_target.c logic introduced in commit f86d9fc734. This includes: > > *) Addition of target mode specific members to existing data > structures in qla_def.h and struct qla_hw_data->qla2x_tmpl using > qla_target.h:struct qla_target_template. > > *) Addition of struct qla_target_template and direct calls into > qla_target.c logic w/ qla_tgt_* prefixed functions. > > *) Addition of qla_iocb:qla2x00_req_pkt() for ring processing, and > qla2x00_issue_marker() for handling request/response queue processing > for target mode operation > > *) Addition of various qla_tgt_mode_enabled() logic checks in > qla24xx_nvram_config(), qla2x00_initialize_adapter(), qla2x00_rff_id(), > qla2x00_abort_isp(), qla24xx_modify_vp_config(), and qla2x00_vp_abort_isp(). > > For the specific checks for qla_hw_data->qla2x_tmpl this includes: > > *) control plane: > > qla_init.c:qla2x00_rport_del() -> qla_tgt_fc_port_deleted() > qla_init.c:qla2x00_reg_remote_port() -> qla_tgt_fc_port_added() > qla_init.c:qla2x00_device_resync() -> qla2x00_mark_device_lost() > > *) I/O path: > > qla_isr.c:qla2x00_async_event() -> qla_tgt_async_event() > qla_isr.c:qla2x00_process_response_queue() -> qla_tgt_response_pkt_all_vps() > qla_isr.c:qla24xx_process_response_queue() -> qla_tgt_response_pkt_all_vps() Most of this code was written by me and other SCST developers. How about to give proper credits to the original authors? Vlad