From: Christoph Hellwig <hch@infradead.org>
To: Andrew Vasquez <andrew.vasquez@qlogic.com>
Cc: Linux-SCSI Mailing List <linux-scsi@vger.kernel.org>,
James Bottomley <james.bottomley@steeleye.com>
Subject: Re: [PATCH 5/8] qla2xxx: Add support for host port state FC transport attribute.
Date: Tue, 10 Oct 2006 10:33:13 +0100 [thread overview]
Message-ID: <20061010093313.GF395@infradead.org> (raw)
In-Reply-To: <11598156512789-git-send-email-andrew.vasquez@qlogic.com>
On Mon, Oct 02, 2006 at 12:00:47PM -0700, Andrew Vasquez wrote:
> Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Ok.
> ---
> drivers/scsi/qla2xxx/qla_attr.c | 15 +++++++++++++++
> 1 files changed, 15 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c
> index d4cf51a..ee75a71 100644
> --- a/drivers/scsi/qla2xxx/qla_attr.c
> +++ b/drivers/scsi/qla2xxx/qla_attr.c
> @@ -879,6 +879,19 @@ qla2x00_get_host_fabric_name(struct Scsi
> fc_host_fabric_name(shost) = node_name;
> }
>
> +static void
> +qla2x00_get_host_port_state(struct Scsi_Host *shost)
> +{
> + scsi_qla_host_t *ha = to_qla_host(shost);
> +
> + if (!ha->flags.online)
> + fc_host_port_state(shost) = FC_PORTSTATE_OFFLINE;
> + else if (atomic_read(&ha->loop_state) == LOOP_TIMEOUT)
> + fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN;
> + else
> + fc_host_port_state(shost) = FC_PORTSTATE_ONLINE;
> +}
> +
> struct fc_function_template qla2xxx_transport_functions = {
>
> .show_host_node_name = 1,
> @@ -897,6 +910,8 @@ struct fc_function_template qla2xxx_tran
> .show_host_system_hostname = 1,
> .get_host_fabric_name = qla2x00_get_host_fabric_name,
> .show_host_fabric_name = 1,
> + .get_host_port_state = qla2x00_get_host_port_state,
> + .show_host_port_state = 1,
>
> .dd_fcrport_size = sizeof(struct fc_port *),
> .show_rport_supported_classes = 1,
> --
> 1.4.2.3.gf59615
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
---end quoted text---
next prev parent reply other threads:[~2006-10-10 9:33 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-02 18:59 [PATCH 0/8] qla2xxx: driver update Andrew Vasquez
2006-10-02 19:00 ` [PATCH 1/8] qla2xxx: Add iIDMA support Andrew Vasquez
2006-10-10 9:29 ` Christoph Hellwig
2006-10-02 19:00 ` [PATCH 2/8] qla2xxx: Add support for symbolic nodename FC transport attribute Andrew Vasquez
2006-10-10 9:30 ` Christoph Hellwig
2006-10-12 16:37 ` Andrew Vasquez
2006-10-02 19:00 ` [PATCH 3/8] qla2xxx: Add support for system hostname " Andrew Vasquez
2006-10-10 9:32 ` Christoph Hellwig
2006-10-02 19:00 ` [PATCH 4/8] qla2xxx: Add support for fabric name " Andrew Vasquez
2006-10-10 9:32 ` Christoph Hellwig
2006-10-02 19:00 ` [PATCH 5/8] qla2xxx: Add support for host port state " Andrew Vasquez
2006-10-10 9:33 ` Christoph Hellwig [this message]
2006-10-02 19:00 ` [PATCH 6/8] qla2xxx: Add MODULE_FIRMWARE tags Andrew Vasquez
2006-10-10 9:33 ` Christoph Hellwig
2006-10-02 19:00 ` [PATCH 7/8] qla2xxx: Stall mid-layer error handlers while rport is blocked Andrew Vasquez
2006-10-02 19:26 ` James Smart
2006-10-02 22:14 ` Matthew Wilcox
2006-10-02 23:05 ` Mike Anderson
2006-10-03 14:24 ` James Smart
2006-10-05 16:09 ` Mike Christie
2006-10-06 15:23 ` James Smart
2006-10-06 17:01 ` Mike Christie
2006-10-06 17:33 ` James Smart
2006-10-10 15:11 ` Patrick Mansfield
2006-10-02 19:00 ` [PATCH 8/8] qla2xxx: Update version number to 8.01.07-k2 Andrew Vasquez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061010093313.GF395@infradead.org \
--to=hch@infradead.org \
--cc=andrew.vasquez@qlogic.com \
--cc=james.bottomley@steeleye.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox