From: Christof Schmitt <christof.schmitt@de.ibm.com>
To: Chad Dupuis <chad.dupuis@qlogic.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: Subject: [RFC 0/3] Add fc_rport attributes to further populate HBAAPIv2 HBAPortAttributes for discovered ports.
Date: Fri, 29 Oct 2010 12:45:15 +0200 [thread overview]
Message-ID: <20101029104515.GA15522@schmichrtp.mainz.de.ibm.com> (raw)
In-Reply-To: <alpine.LFD.2.00.1010281212441.2885@localhost.localdomain>
On Thu, Oct 28, 2010 at 12:14:18PM -0400, Chad Dupuis wrote:
> Hi All,
>
> This small patch set adds 7 new attributes to the fc_rport struct so that application libraries who export HBAAPI v2 discovered port attributes can populate the HBA_PORTATTRIBUTES structure more fully. The new fc_rport attributes,
> which would be exported via the /sys/class/fc_remote_port/rport-x:y-z directory, are:
>
> - supported_fc4s
> - supported_speed
> - port_type
> - speed
> - active_fc4s
> - symbolic_name
> - fabric_name
>
> These attributes would be fixed-attributes which would mean that they would be set before the call to fc_remote_port_rolechg() but then once the role of the port has been established they would not change.
>
> There are two patches in this RFC:
>
> Patch #1 - scsi_transport_fc: Add HBAAPI v2 attributes to fc_rport structure.
>
> This patch adds the definitions for the new fc_rport attributes, sets up the show functions and assigns default nominal values to the attributes.
>
> Patch #2 - qla2xxx: Add name and management server queries to fill in new fc_rport attributes.
>
> This patch adds the necessary name and management server calls to the SAN fabric services to obtain the information needed to fill in the new fc_rport attributes. The patch also assigns the attributes before calling
> fc_remote_port_rolechg().
It looks like this mechanism only queries data from the FC nameserver.
It would be useful to have the same data available for all FC drivers.
The FC BSG interface already allows sending CT requests to the FC
nameserver. Could this be implemented by creating the request in
common code and issue the requests through the FC BSG interface? If
the data is used by the HBAAPI, the userspace HBAAPI could create the
FC requests and issue them through the /dev/bsg/... device files.
--
Christof
next prev parent reply other threads:[~2010-10-29 10:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-28 16:14 Subject: [RFC 0/3] Add fc_rport attributes to further populate HBAAPIv2 HBAPortAttributes for discovered ports Chad Dupuis
2010-10-28 16:22 ` [RFC 0/2] " Chad Dupuis
2010-10-29 10:45 ` Christof Schmitt [this message]
2010-10-29 19:35 ` Subject: [RFC 0/3] " Chad Dupuis
2010-11-02 15:34 ` James Smart
2010-11-02 16:47 ` Christof Schmitt
2010-11-02 18:53 ` Chad Dupuis
2010-11-02 20:46 ` Ravi Anand
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=20101029104515.GA15522@schmichrtp.mainz.de.ibm.com \
--to=christof.schmitt@de.ibm.com \
--cc=chad.dupuis@qlogic.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